com.atlassian.crowd.integration.acegi
Class RequestToApplicationMapper
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestToApplicationMapper
public RequestToApplicationMapper(ClientProperties clientProperties)
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 © 2009 Atlassian Pty Ltd. All Rights Reserved.