public class XPFHttpTagSetContext extends XPFEntity
Modifier and Type | Field and Description |
---|---|
private static char |
COMMA |
private @NonNull javax.servlet.http.HttpServletRequest |
httpRequest
The HTTP request.
|
private XPFStore |
store
The store.
|
private @NonNull Map<String,String> |
userTraitValues
The user trait values.
|
Constructor and Description |
---|
XPFHttpTagSetContext() |
Modifier and Type | Method and Description |
---|---|
private String |
getHeaderFromRequest(String header) |
private Iterable<String> |
getHeadersFromRequest(String header) |
Map<String,String> |
getKeyValuePairsHeader(String... headers)
Get the key/value pairs for a particular HttpServletRequest header.
|
Collection<String> |
getMultipleValuesHeader(String... headers)
Get multiple values header from HttpServletRequest.
|
String |
getUserIdFromRequest()
Get User Id from HttpServletRequest.
|
Collection<String> |
getUserRolesFromRequest()
Get the User Roles from the HttpServletRequest.
|
Collection<String> |
getUserScopesFromRequest()
Get User Scopes from the HttpServletRequest.
|
Collection<String> |
getUserTraitsFromRequest()
Get the User Traits from the HttpServletRequest.
|
private void |
putKeyValueIntoMap(String keyVal,
Map<String,String> keyValuePairs) |
private List<String> |
tokenize(String value) |
private List<String> |
tokensFor(String value) |
private static final char COMMA
@NonNull private final @NonNull javax.servlet.http.HttpServletRequest httpRequest
private final XPFStore store
public String getUserIdFromRequest()
public Collection<String> getUserScopesFromRequest()
public Collection<String> getUserRolesFromRequest()
public Collection<String> getUserTraitsFromRequest()
public Collection<String> getMultipleValuesHeader(String... headers)
headers
- the headerspublic Map<String,String> getKeyValuePairsHeader(String... headers)
headers
- the headersCopyright © 2023. All rights reserved.