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 RequestToApplicationMapper
public 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 RequestToApplicationMapper
request
- current HTTP request.public void addSecureMapping(String path, String applicationName)
addSecureMapping
in interface RequestToApplicationMapper
public void removeSecureMapping(String path)
removeSecureMapping
in interface RequestToApplicationMapper
public void removeAllMappings(String applicationName)
removeAllMappings
in interface RequestToApplicationMapper
Copyright © 2021 Atlassian. All rights reserved.