public interface HttpRequest
Modifier and Type | Method and Description |
---|---|
HttpInputStream |
getBody()
Access the possible body of the request message.
|
long |
getContentLength()
Access the possible content-length header of this message.
|
HttpCookie |
getCookie(java.lang.String name)
Access the first cookie instance in the message with the provided name.
|
java.util.List<HttpCookie> |
getCookies()
Access the list of all cookies found in this message.
|
java.util.List<HttpCookie> |
getCookies(java.lang.String name)
Access the list of all cookies matching the provided name.
|
java.lang.String |
getHeader(java.lang.String name)
Access the first instance found for the given header name.
|
java.util.List<java.lang.String> |
getHeaderNames()
Access a list of all header names found in this message.
|
java.util.List<java.lang.String> |
getHeaders(java.lang.String name)
Access a list of all header values found for the given header name.
|
java.lang.String |
getMethod()
Query the request method of this message, such as POST or GET.
|
java.lang.String |
getQuery()
Query the URL query string information.
|
java.lang.String |
getScheme()
Query the protocol scheme of this message.
|
java.lang.String |
getTrailer(java.lang.String name) |
java.util.List<java.lang.String> |
getTrailerNames() |
java.lang.String |
getURI()
Query the URI of this message, which is only /uri with no query string.
|
java.lang.String |
getURL()
Query the full URL of this message, in the form of scheme://host:port/uri<?query>.
|
java.lang.String |
getVersion()
Query the protocol version of this message.
|
java.lang.String |
getVirtualHost()
Query the virtual host target of this message.
|
int |
getVirtualPort()
Query the virtual port of this request message.
|
boolean |
isTrailersReady() |
java.lang.String getMethod()
java.lang.String getURI()
java.lang.String getURL()
java.lang.String getVersion()
java.lang.String getScheme()
java.lang.String getQuery()
java.lang.String getVirtualHost()
int getVirtualPort()
long getContentLength()
java.lang.String getHeader(java.lang.String name)
name
- java.util.List<java.lang.String> getHeaders(java.lang.String name)
name
- java.util.List<java.lang.String> getHeaderNames()
HttpCookie getCookie(java.lang.String name)
name
- java.util.List<HttpCookie> getCookies(java.lang.String name)
name
- java.util.List<HttpCookie> getCookies()
HttpInputStream getBody()
java.util.List<java.lang.String> getTrailerNames()
java.lang.String getTrailer(java.lang.String name)
boolean isTrailersReady()