com.atlassian.crowd.integration.springsecurity
Class RequestToApplicationMapperImpl

java.lang.Object
  extended by com.atlassian.crowd.integration.springsecurity.RequestToApplicationMapperImpl
All Implemented Interfaces:
RequestToApplicationMapper

public class RequestToApplicationMapperImpl
extends Object
implements RequestToApplicationMapper

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


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

Constructor Detail

RequestToApplicationMapperImpl

public RequestToApplicationMapperImpl(ClientProperties clientProperties)
Method Detail

getApplication

public String getApplication(String path)
Specified by:
getApplication in interface RequestToApplicationMapper

getApplication

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

Specified by:
getApplication in interface RequestToApplicationMapper
Parameters:
request - current HTTP request.
Returns:
application name.

addSecureMapping

public void addSecureMapping(String path,
                             String applicationName)
Specified by:
addSecureMapping in interface RequestToApplicationMapper

removeSecureMapping

public void removeSecureMapping(String path)
Specified by:
removeSecureMapping in interface RequestToApplicationMapper

removeAllMappings

public void removeAllMappings(String applicationName)
Specified by:
removeAllMappings in interface RequestToApplicationMapper


Copyright © 2013 Atlassian. All Rights Reserved.