org.loom.interceptor
Class DefaultSSLRedirectDataFactory
java.lang.Object
org.loom.interceptor.DefaultSSLRedirectDataFactory
- All Implemented Interfaces:
- SSLRedirectDataFactory
@Singleton
public class DefaultSSLRedirectDataFactory
- extends java.lang.Object
- implements SSLRedirectDataFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSSLRedirectDataFactory
public DefaultSSLRedirectDataFactory()
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)