Class AbstractRetryEntryPoint
- java.lang.Object
-
- org.springframework.security.web.access.channel.AbstractRetryEntryPoint
-
- All Implemented Interfaces:
ChannelEntryPoint
- Direct Known Subclasses:
RetryWithHttpEntryPoint,RetryWithHttpsEntryPoint
public abstract class AbstractRetryEntryPoint extends java.lang.Object implements ChannelEntryPoint
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.logging.Loglogger
-
Constructor Summary
Constructors Constructor Description AbstractRetryEntryPoint(java.lang.String scheme, int standardPort)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcommence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Commences a secure channel.protected abstract java.lang.IntegergetMappedPort(java.lang.Integer mapFromPort)protected PortMappergetPortMapper()protected PortResolvergetPortResolver()protected RedirectStrategygetRedirectStrategy()voidsetPortMapper(PortMapper portMapper)voidsetPortResolver(PortResolver portResolver)voidsetRedirectStrategy(RedirectStrategy redirectStrategy)Sets the strategy to be used for redirecting to the required channel URL.
-
-
-
Method Detail
-
commence
public void commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOExceptionDescription copied from interface:ChannelEntryPointCommences a secure channel.Implementations should modify the headers on the
ServletResponseas necessary to commence the user agent using the implementation's supported channel type.- Specified by:
commencein interfaceChannelEntryPoint- Parameters:
request- that aChannelProcessorhas rejectedresponse- so that the user agent can begin using a new channel- Throws:
java.io.IOException
-
getMappedPort
protected abstract java.lang.Integer getMappedPort(java.lang.Integer mapFromPort)
-
getPortMapper
protected final PortMapper getPortMapper()
-
setPortMapper
public void setPortMapper(PortMapper portMapper)
-
setPortResolver
public void setPortResolver(PortResolver portResolver)
-
getPortResolver
protected final PortResolver getPortResolver()
-
setRedirectStrategy
public void setRedirectStrategy(RedirectStrategy redirectStrategy)
Sets the strategy to be used for redirecting to the required channel URL. ADefaultRedirectStrategyinstance will be used if not set.- Parameters:
redirectStrategy- the strategy instance to which the URL will be passed.
-
getRedirectStrategy
protected final RedirectStrategy getRedirectStrategy()
-
-