public class HttpUtil
extends java.lang.Object
Constructor and Description |
---|
HttpUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
buildQuery(HttpMultiMap<?> queryMap,
java.lang.String encoding)
Builds a query string from given query map.
|
static java.lang.String |
extractContentTypeCharset(java.lang.String contentType) |
static java.lang.String |
extractHeaderParameter(java.lang.String header,
java.lang.String parameter,
char separator)
Extracts header parameter.
|
static java.lang.String |
extractKeepAliveMax(java.lang.String keepAlive) |
static java.lang.String |
extractKeepAliveTimeout(java.lang.String keepAlive)
Extract keep-alive timeout.
|
static java.lang.String |
extractMediaType(java.lang.String contentType)
Extracts media-type from value of "Content Type" header.
|
static HttpMultiMap<java.lang.String> |
parseQuery(java.lang.String query,
boolean decode)
Parses query from give query string.
|
static java.lang.String |
prepareHeaderParameterName(java.lang.String headerName)
Makes nice header names.
|
public static java.lang.String buildQuery(HttpMultiMap<?> queryMap, java.lang.String encoding)
public static HttpMultiMap<java.lang.String> parseQuery(java.lang.String query, boolean decode)
public static java.lang.String prepareHeaderParameterName(java.lang.String headerName)
public static java.lang.String extractMediaType(java.lang.String contentType)
public static java.lang.String extractContentTypeCharset(java.lang.String contentType)
public static java.lang.String extractKeepAliveTimeout(java.lang.String keepAlive)
public static java.lang.String extractKeepAliveMax(java.lang.String keepAlive)
public static java.lang.String extractHeaderParameter(java.lang.String header, java.lang.String parameter, char separator)
null
if parameter not found.Copyright © 2003-present Jodd Team