org.acegisecurity.securechannel
Class RetryWithHttpEntryPoint

java.lang.Object
  extended by org.acegisecurity.securechannel.RetryWithHttpEntryPoint
All Implemented Interfaces:
ChannelEntryPoint, org.springframework.beans.factory.InitializingBean

public class RetryWithHttpEntryPoint
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, ChannelEntryPoint

Commences an insecure channel by retrying the original request using HTTP.

This entry point should suffice in most circumstances. However, it is not intended to properly handle HTTP POSTs or other usage where a standard redirect would cause an issue.

Version:
$Id: RetryWithHttpEntryPoint.java 1496 2006-05-23 13:38:33Z benalex $
Author:
Ben Alex

Constructor Summary
RetryWithHttpEntryPoint()
           
 
Method Summary
 void afterPropertiesSet()
           
 void commence(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
          Commences a secure channel.
 PortMapper getPortMapper()
           
 PortResolver getPortResolver()
           
 void setPortMapper(PortMapper portMapper)
           
 void setPortResolver(PortResolver portResolver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetryWithHttpEntryPoint

public RetryWithHttpEntryPoint()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

commence

public void commence(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response)
              throws java.io.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:
java.io.IOException - DOCUMENT ME!
javax.servlet.ServletException - DOCUMENT ME!

getPortMapper

public PortMapper getPortMapper()

getPortResolver

public PortResolver getPortResolver()

setPortMapper

public void setPortMapper(PortMapper portMapper)

setPortResolver

public void setPortResolver(PortResolver portResolver)


Copyright © 2004-2011 Interface21, Inc. All Rights Reserved.