org.loom.interceptor
Class DefaultSSLRedirectDataFactory

java.lang.Object
  extended by org.loom.interceptor.DefaultSSLRedirectDataFactory
All Implemented Interfaces:
SSLRedirectDataFactory

@Singleton
public class DefaultSSLRedirectDataFactory
extends java.lang.Object
implements SSLRedirectDataFactory


Constructor Summary
DefaultSSLRedirectDataFactory()
           
 
Method Summary
 void afterPropertiesSet()
           
 SSLRedirectData getRedirectData(LoomServletRequest request, SSLPolicyType policy)
          Return null if the request should not be redirect, the scheme and port otherwise
protected  int lookupHttpPort(int httpsPort)
           
protected  int lookupHttpsPort(int httpPort)
           
 void setPortMapper(org.springframework.security.web.PortMapper portMapper)
           
 void setPortResolver(org.springframework.security.web.PortResolver portResolver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSSLRedirectDataFactory

public DefaultSSLRedirectDataFactory()
Method Detail

afterPropertiesSet

@PostConstruct
public void afterPropertiesSet()

getRedirectData

public SSLRedirectData getRedirectData(LoomServletRequest request,
                                       SSLPolicyType policy)
Description copied from interface: SSLRedirectDataFactory
Return null if the request should not be redirect, the scheme and port otherwise

Specified by:
getRedirectData in interface SSLRedirectDataFactory

lookupHttpPort

protected int lookupHttpPort(int httpsPort)

lookupHttpsPort

protected int lookupHttpsPort(int httpPort)

setPortMapper

public void setPortMapper(org.springframework.security.web.PortMapper portMapper)

setPortResolver

public void setPortResolver(org.springframework.security.web.PortResolver portResolver)