Spring Extensions

com.myjeeva.spring.security.securechannel
Class AbstractCrossDomainRetryEntryPoint

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

public abstract class AbstractCrossDomainRetryEntryPoint
extends Object
implements org.springframework.security.securechannel.ChannelEntryPoint

AbstractCrossDomainRetryEntryPoint provides provision to locate the cross domain name in the application context for respective ports defined in the PortMapper while resolving server name before HttpServletResponse#sendRedirect() CrossDomainMapper provides the respective cross domain name.

Author:
Jeevanandam ([email protected])

Constructor Summary
AbstractCrossDomainRetryEntryPoint(String scheme, int standardPort)
          Constructor
 
Method Summary
 void commence(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res)
          
protected  CrossDomainMapper getCrossDomainMapper()
           
protected abstract  String getMappedDomain(String mapFromDomainName)
          gets the mapped domain name with respect to ports defined
protected abstract  Integer getMappedPort(Integer mapFromPort)
          gets the mapped port in application context
protected  org.springframework.security.util.PortMapper getPortMapper()
           
protected  org.springframework.security.util.PortResolver getPortResolver()
           
 void setCrossDomainMapper(CrossDomainMapper crossDomainMapper)
           
 void setPortMapper(org.springframework.security.util.PortMapper portMapper)
           
 void setPortResolver(org.springframework.security.util.PortResolver portResolver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCrossDomainRetryEntryPoint

public AbstractCrossDomainRetryEntryPoint(String scheme,
                                          int standardPort)
Constructor

Parameters:
scheme - a String object.
standardPort - int - port #
Method Detail

commence

public void commence(javax.servlet.ServletRequest req,
                     javax.servlet.ServletResponse res)
              throws IOException,
                     javax.servlet.ServletException

Specified by:
commence in interface org.springframework.security.securechannel.ChannelEntryPoint
Throws:
IOException
javax.servlet.ServletException

getMappedPort

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

Parameters:
mapFromPort - a Integer object.
Returns:
port a Integer object.

getMappedDomain

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

Parameters:
mapFromDomainName - a String object.
Returns:
domain name a String object.

getPortMapper

protected org.springframework.security.util.PortMapper getPortMapper()
Returns:
the portMapper

getPortResolver

protected org.springframework.security.util.PortResolver getPortResolver()
Returns:
the portResolver

getCrossDomainMapper

protected CrossDomainMapper getCrossDomainMapper()
Returns:
the crossDomainMapper

setCrossDomainMapper

public void setCrossDomainMapper(CrossDomainMapper crossDomainMapper)
Parameters:
crossDomainMapper - the crossDomainMapper to set

setPortMapper

public void setPortMapper(org.springframework.security.util.PortMapper portMapper)
Parameters:
portMapper - the portMapper to set

setPortResolver

public void setPortResolver(org.springframework.security.util.PortResolver portResolver)
Parameters:
portResolver - the portResolver to set

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.