Spring Extensions

com.myjeeva.spring.security.securechannel
Class CrossDomainRetryWithHttpEntryPoint

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

public class CrossDomainRetryWithHttpEntryPoint
extends AbstractCrossDomainRetryEntryPoint

Commences an insecure channel by retrying the original request using HTTP with 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 httpPort
           
protected static String httpScheme
           
 
Constructor Summary
CrossDomainRetryWithHttpEntryPoint()
          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

httpScheme

protected static final String httpScheme
See Also:
Constant Field Values

httpPort

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

CrossDomainRetryWithHttpEntryPoint

public CrossDomainRetryWithHttpEntryPoint()
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.