public final class HttpUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addHeadersToLogContext(java.util.Map<java.lang.String,java.lang.Object> headerMap,
java.lang.String keyPattern)
Add all headers whose key match a particular pattern to Log Context
|
static java.lang.String |
getHeaderValue(java.util.Map aHeaderMap,
java.lang.String aKey,
boolean concatMultiPart)
Retrieve the header value from the provided map.
|
static java.util.Map<java.lang.String,java.lang.Object> |
getMatchingHeaders(javax.servlet.http.HttpServletRequest request,
java.lang.String keyPattern)
Add all headers whose key match a particular pattern to a map and return
the same
|
public static java.util.Map<java.lang.String,java.lang.Object> getMatchingHeaders(javax.servlet.http.HttpServletRequest request,
java.lang.String keyPattern)
request - The http request in which the headers needs to be checkedkeyPattern - The pattern of header key to matchpublic static void addHeadersToLogContext(java.util.Map<java.lang.String,java.lang.Object> headerMap,
java.lang.String keyPattern)
headerMap - The header map to checkkeyPattern - The pattern of header key to matchpublic static java.lang.String getHeaderValue(java.util.Map aHeaderMap,
java.lang.String aKey,
boolean concatMultiPart)
aHeaderMap - The header map to checkaKey - The key whose value needs to be retrieved.concatMultiPart - if value against the key is a list of size greater than 1: On
true the entries are concated with '|'. On false it would be
null.Copyright © 2018 Pegasystems Inc. All Rights Reserved.