Interface HttpRequest
-
- All Superinterfaces:
Cloneable
,HttpMessage
public interface HttpRequest extends HttpMessage
An HTTP request.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONNECT
Constant value of the CONNECT methodstatic String
DELETE
Constant value of the DELETE methodstatic String
GET
Constant value of the GET methodstatic String
HEAD
Constant value of the HEAD methodstatic String
OPTIONS
Constant value of the OPTIONS methodstatic String
POST
Constant value of the POST methodstatic String
PUT
Constant value of the PUT methodstatic String
TRACE
Constant value of the TRACE method
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getCipherSuite()
Return the cipher suite being used for this connection.
Only set for secure connections.InetAddress
getClientAddress()
Returns the address of the HTTP client.
Only set for incoming requests.
Convenience method equivalent togetClientDetails().getAddress()
ClientDetails
getClientDetails()
Returns a ClientDetails instance containing details about the client.
Only set for incoming requests.InetAddress
getLocalAddress()
Return the local address of the HTTP server that the client is connected to.
Only set for incoming requests.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.-
Methods inherited from interface com.opencloud.slee.resources.http.HttpMessage
clone, getContent, getContentAsString, getContentBuffer, getContentLength, getContentType, getHeader, getHeaderNames, getVersion, removeHeader, setContent, setContent, setContent, setContent, setContentAsString, setContentType, setHeader, setImmutable, setVersion, unshare
-
-
-
-
Field Detail
-
OPTIONS
static final String OPTIONS
Constant value of the OPTIONS method- See Also:
- Constant Field Values
-
HEAD
static final String HEAD
Constant value of the HEAD method- See Also:
- Constant Field Values
-
GET
static final String GET
Constant value of the GET method- See Also:
- Constant Field Values
-
POST
static final String POST
Constant value of the POST method- See Also:
- Constant Field Values
-
PUT
static final String PUT
Constant value of the PUT method- See Also:
- Constant Field Values
-
DELETE
static final String DELETE
Constant value of the DELETE method- See Also:
- Constant Field Values
-
TRACE
static final String TRACE
Constant value of the TRACE method- See Also:
- Constant Field Values
-
CONNECT
static final String CONNECT
Constant value of the CONNECT method- See Also:
- Constant Field Values
-
-
Method Detail
-
getMethod
String getMethod()
Get the HTTP request method of this request.
-
getRequestURL
URL getRequestURL()
Get the request URL of this request, including the host. To get the raw Request-URI as specified in the Request-Line of the request, usegetRequestURI()
instead.- Returns:
- the request URL, including host
-
getRequestURI
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. Note that this may be an absolute URI, or just a path. Only set for incoming requests. To get the URL form which includes the host, usegetRequestURL()
instead.- Returns:
- The Request-URI of the request
-
getClientAddress
InetAddress getClientAddress()
Returns the address of the HTTP client.
Only set for incoming requests.
Convenience method equivalent togetClientDetails().getAddress()
-
getClientDetails
ClientDetails getClientDetails()
Returns a ClientDetails instance containing details about the client.
Only set for incoming requests.
-
getLocalAddress
InetAddress getLocalAddress()
Return the local address of the HTTP server that the client is connected to.
Only set for incoming requests.
-
getCipherSuite
String getCipherSuite()
Return the cipher suite being used for this connection.
Only set for secure connections.- Returns:
- the name of the cipher suite.
-
-