Spring Extensions

com.myjeeva.spring.security.securechannel
Class CrossDomainRetryWithHttpsEntryPoint

java.lang.Object
  extended by com.myjeeva.spring.security.securechannel.AbstractCrossDomainRetryEntryPoint
      extended by com.myjeeva.spring.security.securechannel.CrossDomainRetryWithHttpsEntryPoint
All Implemented Interfaces:
org.springframework.security.securechannel.ChannelEntryPoint

public class CrossDomainRetryWithHttpsEntryPoint
extends AbstractCrossDomainRetryEntryPoint

Commences a secure channel by retrying the original request using HTTPS with mapped Cross domain name.

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.

Author:
Jeevanandam ([email protected])

Field Summary
protected static int httpsPort
           
protected static String httpsScheme
           
 
Constructor Summary
CrossDomainRetryWithHttpsEntryPoint()
          Constructor
 
Method Summary
protected  String getMappedDomain(String mapFromDomainName)
          gets the mapped domain name with respect to ports defined
protected  Integer getMappedPort(Integer mapFromPort)
          gets the mapped port in application context
 
Methods inherited from class com.myjeeva.spring.security.securechannel.AbstractCrossDomainRetryEntryPoint
commence, getCrossDomainMapper, getPortMapper, getPortResolver, setCrossDomainMapper, setPortMapper, setPortResolver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

httpsScheme

protected static final String httpsScheme
See Also:
Constant Field Values

httpsPort

protected static final int httpsPort
See Also:
Constant Field Values
Constructor Detail

CrossDomainRetryWithHttpsEntryPoint

public CrossDomainRetryWithHttpsEntryPoint()
Constructor

Method Detail

getMappedPort

protected Integer getMappedPort(Integer mapFromPort)
gets the mapped port in application context

Specified by:
getMappedPort in class AbstractCrossDomainRetryEntryPoint
Parameters:
mapFromPort - a Integer object.
Returns:
port a Integer object.

getMappedDomain

protected String getMappedDomain(String mapFromDomainName)
gets the mapped domain name with respect to ports defined

Specified by:
getMappedDomain in class AbstractCrossDomainRetryEntryPoint
Parameters:
mapFromDomainName - a String object.
Returns:
domain name a String object.

Spring Extensions

Copyright © 2010-2012 www.myjeeva.com, All rights reserved.

The copyright of the pages and contents on this website is with myjeeva.com and the content is licensed under Creative Commons Attribution-Share Alike 3.0 Unported License. Libraries and code snippets on myjeeva.com has license information.