org.springframework.security.web.access.channel
Class AbstractRetryEntryPoint

java.lang.Object
  extended by org.springframework.security.web.access.channel.AbstractRetryEntryPoint
All Implemented Interfaces:
ChannelEntryPoint
Direct Known Subclasses:
RetryWithHttpEntryPoint, RetryWithHttpsEntryPoint

public abstract class AbstractRetryEntryPoint
extends Object
implements ChannelEntryPoint


Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
AbstractRetryEntryPoint(String scheme, int standardPort)
           
 
Method Summary
 void commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Commences a secure channel.
protected abstract  Integer getMappedPort(Integer mapFromPort)
           
protected  PortMapper getPortMapper()
           
protected  PortResolver getPortResolver()
           
protected  RedirectStrategy getRedirectStrategy()
           
 void setPortMapper(PortMapper portMapper)
           
 void setPortResolver(PortResolver portResolver)
           
 void setRedirectStrategy(RedirectStrategy redirectStrategy)
          Sets the strategy to be used for redirecting to the required channel URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

AbstractRetryEntryPoint

public AbstractRetryEntryPoint(String scheme,
                               int standardPort)
Method Detail

commence

public void commence(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws IOException,
                     javax.servlet.ServletException
Description copied from interface: ChannelEntryPoint
Commences a secure channel.

Implementations should modify the headers on the ServletResponse as necessary to commence the user agent using the implementation's supported channel type.

Specified by:
commence in interface ChannelEntryPoint
Parameters:
request - that a ChannelProcessor has rejected
response - so that the user agent can begin using a new channel
Throws:
IOException
javax.servlet.ServletException

getMappedPort

protected abstract Integer getMappedPort(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. A DefaultRedirectStrategy instance will be used if not set.

Parameters:
redirectStrategy - the strategy instance to which the URL will be passed.

getRedirectStrategy

protected final RedirectStrategy getRedirectStrategy()