Class RequestToApplicationMapperImpl
java.lang.Object
com.atlassian.crowd.integration.springsecurity.RequestToApplicationMapperImpl
- All Implemented Interfaces:
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSecureMapping(String path, String applicationName) getApplication(String path) getApplication(javax.servlet.http.HttpServletRequest request) Returns the application name for the target request.voidremoveAllMappings(String applicationName) voidremoveSecureMapping(String path)
-
Constructor Details
-
RequestToApplicationMapperImpl
-
-
Method Details
-
getApplication
- Specified by:
getApplicationin interfaceRequestToApplicationMapper
-
getApplication
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:
getApplicationin interfaceRequestToApplicationMapper- Parameters:
request- current HTTP request.- Returns:
- application name.
-
addSecureMapping
- Specified by:
addSecureMappingin interfaceRequestToApplicationMapper
-
removeSecureMapping
- Specified by:
removeSecureMappingin interfaceRequestToApplicationMapper
-
removeAllMappings
- Specified by:
removeAllMappingsin interfaceRequestToApplicationMapper
-