public interface HttpRequest
extends java.io.Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
HttpRequest.Method
Request methods
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HEADER_ACCEPT
the Accept header
|
static java.lang.String |
HEADER_ACCEPT_ENCODING
the Accept-Encoding header
|
static java.lang.String |
HEADER_ACCEPT_LANGUAGE
the Accept-Language header
|
static java.lang.String |
HEADER_CACHE_CONTROL
the Cache-Control header
|
static java.lang.String |
HEADER_CONNECTION
the Connection header
|
static java.lang.String |
HEADER_CONTENT_LENGTH
the Content-Length header
|
static java.lang.String |
HEADER_CONTENT_TYPE
the Content-Type header
|
static java.lang.String |
HEADER_COOKIE
the Cookie header
|
static java.lang.String |
HEADER_HOST
the Host header
|
static java.lang.String |
HEADER_SET_COOKIE
the Set-Cookie header
|
static java.lang.String |
HEADER_USER_AGENT
the User-Agent header
|
static java.lang.String |
SERVLET_CONTEXT
If the https server implementation is based on Servlets, the real ServletContext
will be registered in the request attributes using this name.
|
static java.lang.String |
SERVLET_REQUEST
If the https server implementation is based on Servlets, the real HttpServletRequest
will be registered in the request attributes using this name.
|
static java.lang.String |
SERVLET_RESPONSE
If the https server implementation is based on Servlets, the real HttpServletResponse
will be registered in the request attributes using this name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String name) |
int |
getContentLength() |
java.lang.String |
getContentType() |
java.lang.String |
getParameter(java.lang.String name)
Gets a form or URL query parameter based on the name passed in.
|
java.util.Map |
getParameters()
Gets all the form and URL query parameters
|
java.lang.String |
getRemoteAddr() |
java.net.URI |
getURI()
Gets the URI for the current URL page.
|
void |
setAttribute(java.lang.String name,
java.lang.Object value) |
static final java.lang.String HEADER_ACCEPT
static final java.lang.String HEADER_ACCEPT_ENCODING
static final java.lang.String HEADER_ACCEPT_LANGUAGE
static final java.lang.String HEADER_CONTENT_TYPE
static final java.lang.String HEADER_CONTENT_LENGTH
static final java.lang.String HEADER_CONNECTION
static final java.lang.String HEADER_CACHE_CONTROL
static final java.lang.String HEADER_HOST
static final java.lang.String HEADER_USER_AGENT
static final java.lang.String HEADER_SET_COOKIE
static final java.lang.String HEADER_COOKIE
static final java.lang.String SERVLET_REQUEST
static final java.lang.String SERVLET_RESPONSE
static final java.lang.String SERVLET_CONTEXT
java.lang.String getParameter(java.lang.String name)
name
- java.util.Map getParameters()
java.net.URI getURI()
int getContentLength()
java.lang.String getContentType()
java.lang.Object getAttribute(java.lang.String name)
void setAttribute(java.lang.String name, java.lang.Object value)
java.lang.String getRemoteAddr()