public class RequestToApplicationMapperImpl extends Object implements RequestToApplicationMapper
This class is only required if you are using multiple Crowd "applications" from the single Spring Security context.
| Constructor and Description |
|---|
RequestToApplicationMapperImpl(ClientProperties clientProperties) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public RequestToApplicationMapperImpl(ClientProperties clientProperties)
public String getApplication(String path)
getApplication in interface RequestToApplicationMapperpublic String getApplication(javax.servlet.http.HttpServletRequest 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).
getApplication in interface RequestToApplicationMapperrequest - current HTTP request.public void addSecureMapping(String path, String applicationName)
addSecureMapping in interface RequestToApplicationMapperpublic void removeSecureMapping(String path)
removeSecureMapping in interface RequestToApplicationMapperpublic void removeAllMappings(String applicationName)
removeAllMappings in interface RequestToApplicationMapperCopyright © 2019 Atlassian. All rights reserved.