public final class HTTPUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
HEADER_AUTHORIZATION |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
convertQueryStringIntoMap(String queryString)
Convert query string into map.
|
static String |
getAuthType(javax.servlet.http.HttpServletRequest httpServletRequest)
Resolves authentication type from HTTP servlet request.
|
static String |
getCharsetFromContentType(String contentType)
Resolve character set encoding from Content-Type header value.
|
protected static final String HEADER_AUTHORIZATION
public static Map<String,String> convertQueryStringIntoMap(String queryString)
queryString - - Query string to convertpublic static String getAuthType(javax.servlet.http.HttpServletRequest httpServletRequest)
httpServletRequest - - HTTP request object from which authentication type is resolved fromnull if cannot be resolved from request.public static String getCharsetFromContentType(String contentType)
contentType - - Content type header valueUTF-8 if value cannot be resolved.Copyright © 2019. All rights reserved.