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 TypeMethodDescriptionvoid
addSecureMapping
(String path, String applicationName) getApplication
(String path) getApplication
(javax.servlet.http.HttpServletRequest request) Returns the application name for the target request.void
removeAllMappings
(String applicationName) void
removeSecureMapping
(String path)
-
Constructor Details
-
RequestToApplicationMapperImpl
-
-
Method Details
-
getApplication
- Specified by:
getApplication
in 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:
getApplication
in interfaceRequestToApplicationMapper
- Parameters:
request
- current HTTP request.- Returns:
- application name.
-
addSecureMapping
- Specified by:
addSecureMapping
in interfaceRequestToApplicationMapper
-
removeSecureMapping
- Specified by:
removeSecureMapping
in interfaceRequestToApplicationMapper
-
removeAllMappings
- Specified by:
removeAllMappings
in interfaceRequestToApplicationMapper
-