com.atlassian.crowd.integration.acegi
Class RequestToApplicationMapper

java.lang.Object
  extended by com.atlassian.crowd.integration.acegi.RequestToApplicationMapper

public class RequestToApplicationMapper
extends java.lang.Object

Maps request paths (Ant format) to application names. This class is only required if you are using multiple Crowd "applications" from the single Acegi context.


Constructor Summary
RequestToApplicationMapper(ClientProperties clientProperties)
           
 
Method Summary
 void addSecureMapping(java.lang.String path, java.lang.String applicationName)
           
 java.lang.String getApplication(javax.servlet.http.HttpServletRequest request)
          Returns the application name for the target request.
 java.lang.String getApplication(java.lang.String path)
           
 void removeAllMappings(java.lang.String applicationName)
           
 void removeSecureMapping(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestToApplicationMapper

public RequestToApplicationMapper(ClientProperties clientProperties)
Method Detail

getApplication

public java.lang.String getApplication(java.lang.String path)

getApplication

public java.lang.String getApplication(javax.servlet.http.HttpServletRequest request)
Returns the application name for the target request. This corresponds to the application mapped for: 1. The path of the target request saved in session (if any), or 2. The path of the provided request (otherwise).

Parameters:
request - current HTTP request.
Returns:
application name.

addSecureMapping

public void addSecureMapping(java.lang.String path,
                             java.lang.String applicationName)

removeSecureMapping

public void removeSecureMapping(java.lang.String path)

removeAllMappings

public void removeAllMappings(java.lang.String applicationName)


Copyright © 2010 Atlassian. All Rights Reserved.