public class DataApiRequestTypeIdentifier extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BYPASS_HEADER_NAME |
static String |
BYPASS_HEADER_VALUE |
static String |
CLIENT_HEADER_NAME |
static String |
CLIENT_HEADER_VALUE |
Constructor and Description |
---|
DataApiRequestTypeIdentifier() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isBypass(javax.ws.rs.core.MultivaluedMap<String,String> headers)
Check if the request header is a bypass header.
|
static boolean |
isCorsPreflight(String requestMethod,
javax.ws.rs.core.SecurityContext securityContext)
Check if the request is a CORS preflight request.
|
static boolean |
isUi(javax.ws.rs.core.MultivaluedMap<String,String> headers)
Check if the request header is a UI header.
|
public static final String BYPASS_HEADER_NAME
public static final String BYPASS_HEADER_VALUE
public static final String CLIENT_HEADER_NAME
public static final String CLIENT_HEADER_VALUE
public static boolean isUi(javax.ws.rs.core.MultivaluedMap<String,String> headers)
headers
- headers to checkpublic static boolean isBypass(javax.ws.rs.core.MultivaluedMap<String,String> headers)
headers
- headers to checkpublic static boolean isCorsPreflight(String requestMethod, javax.ws.rs.core.SecurityContext securityContext)
requestMethod
- Request methodsecurityContext
- Request security contextCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.