public interface HttpRequest extends HttpMessage
Modifier and Type | Field and Description |
---|---|
static String |
CONNECT
Constant value of the CONNECT method
|
static String |
DELETE
Constant value of the DELETE method
|
static String |
GET
Constant value of the GET method
|
static String |
HEAD
Constant value of the HEAD method
|
static String |
OPTIONS
Constant value of the OPTIONS method
|
static String |
POST
Constant value of the POST method
|
static String |
PUT
Constant value of the PUT method
|
static String |
TRACE
Constant value of the TRACE method
|
Modifier and Type | Method and Description |
---|---|
InetAddress |
getClientAddress()
Returns the address of the HTTP client.
|
ClientDetails |
getClientDetails()
Returns a ClientDetails instance containing details about the client.
|
String |
getMethod()
Get the HTTP request method of this request.
|
URI |
getRequestURI()
Get the Request-URI specified in the Request-Line of the HTTP request,
as defined in section 5.1.2 of RFC 2616.
|
URL |
getRequestURL()
Get the request URL of this request, including the host.
|
clone, getContent, getContentAsString, getContentBuffer, getContentLength, getContentType, getHeader, getHeaderNames, getVersion, removeHeader, setContent, setContent, setContent, setContent, setContentAsString, setContentType, setHeader, setImmutable, setVersion, unshare
static final String OPTIONS
static final String HEAD
static final String GET
static final String POST
static final String PUT
static final String DELETE
static final String TRACE
static final String CONNECT
String getMethod()
URL getRequestURL()
getRequestURI()
instead.URI getRequestURI()
getRequestURL()
instead.InetAddress getClientAddress()
getClientDetails().getAddress()
ClientDetails getClientDetails()