public interface HttpRequest extends HttpMessage<String>
ACCEPT, ACCEPT_CHARSET, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ACCEPT_RANGES, AGE, ALLOW, AUTHORIZATION, CACHE_CONTROL, CONNECTION, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_LOCATION, CONTENT_RANGE, CONTENT_TYPE, COOKIE, DATE, ETAG, EXPECT, EXPIRES, FROM, HOST, IF_MATCH, IF_MODIFIED_SINCE, IF_NONE_MATCH, IF_RANGE, IF_UNMODIFIED_SINCE, LAST_MODIFIED, LINK, LOCATION, MAX_FORWARDS, ORIGIN, PRAGMA, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, RANGE, REFERER, RETRY_AFTER, SCHEME_BASIC, SCHEME_BEARER, SCHEME_DIGEST, SERVER, SET_COOKIE, TRAILER, TRANSFER_ENCODING, UPGRADE, USER_AGENT, VARY, VIA, WARNING, WWW_AUTHENTICATE
Modifier and Type | Method and Description |
---|---|
InputStream |
getBody()
Get request body input stream
|
HttpMethod |
getMethod()
Get the request method
|
Optional<List<String>> |
getMultiValueRequestParameter(String name)
Get a request URI query parameter by name as multi-value
|
Optional<Cookie> |
getRequestCookie(String name)
Get a request Cookie by name
|
String |
getRequestHost()
Get the fully qualified name of the client host or the last proxy that sent the request.
|
Optional<String> |
getRequestParameter(String name)
Get a request URI query parameter by name.
|
Map<String,List<String>> |
getRequestParameters()
Get all request URI query parameters
|
String |
getRequestPath()
Get the path of the current request relative to the base URI as a string
|
getProtocol
getPayload, getPayloadType
getAuthorizationBasicCredentials, getAuthorizationBearer, getContentLength, getDate, getHeaderValue, getLocale, getLocales, getLocation
getHeader, getHeaders
HttpMethod getMethod()
String getRequestPath()
String getRequestHost()
Optional<String> getRequestParameter(String name)
name
- Parameter nameOptional<List<String>> getMultiValueRequestParameter(String name)
name
- Parameter nameMap<String,List<String>> getRequestParameters()
Optional<Cookie> getRequestCookie(String name)
name
- Cookie name (not null)InputStream getBody() throws IOException, UnsupportedOperationException
IOException
- I/O errorUnsupportedOperationException
- If underlying concrete implementation does not support message content
accessCopyright © 2018 The Holon Platform. All rights reserved.