com.atlassian.crowd.integration.springsecurity
Class RequestToApplicationMapperImpl
java.lang.Object
com.atlassian.crowd.integration.springsecurity.RequestToApplicationMapperImpl
- All Implemented Interfaces:
- RequestToApplicationMapper
public class RequestToApplicationMapperImpl
- extends java.lang.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestToApplicationMapperImpl
public RequestToApplicationMapperImpl(ClientProperties clientProperties)
getApplication
public java.lang.String getApplication(java.lang.String path)
- Specified by:
getApplication in interface RequestToApplicationMapper
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).
- Specified by:
getApplication in interface RequestToApplicationMapper
- Parameters:
request - current HTTP request.
- Returns:
- application name.
addSecureMapping
public void addSecureMapping(java.lang.String path,
java.lang.String applicationName)
- Specified by:
addSecureMapping in interface RequestToApplicationMapper
removeSecureMapping
public void removeSecureMapping(java.lang.String path)
- Specified by:
removeSecureMapping in interface RequestToApplicationMapper
removeAllMappings
public void removeAllMappings(java.lang.String applicationName)
- Specified by:
removeAllMappings in interface RequestToApplicationMapper
Copyright © 2011 Atlassian. All Rights Reserved.