org.acegisecurity.securechannel
Class RetryWithHttpsEntryPoint

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

public class RetryWithHttpsEntryPoint
extends Object
implements org.springframework.beans.factory.InitializingBean, ChannelEntryPoint

Commences a secure channel by retrying the original request using HTTPS.

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: RetryWithHttpsEntryPoint.java 1496 2006-05-23 13:38:33Z benalex $
Author:
Ben Alex

Constructor Summary
RetryWithHttpsEntryPoint()
           
 
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

RetryWithHttpsEntryPoint

public RetryWithHttpsEntryPoint()
Method Detail

afterPropertiesSet

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

commence

public void commence(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse 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 - 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-2010 Interface21, Inc. All Rights Reserved.