public interface HttpRequest extends Serializable, javax.servlet.http.HttpServletRequest
| Modifier and Type | Interface and Description |
|---|---|
static class |
HttpRequest.Method
Request methods
|
| Modifier and Type | Field and Description |
|---|---|
static String |
HEADER_ACCEPT
the Accept header
|
static String |
HEADER_ACCEPT_ENCODING
the Accept-Encoding header
|
static String |
HEADER_ACCEPT_LANGUAGE
the Accept-Language header
|
static String |
HEADER_CACHE_CONTROL
the Cache-Control header
|
static String |
HEADER_CONNECTION
the Connection header
|
static String |
HEADER_CONTENT_LENGTH
the Content-Length header
|
static String |
HEADER_CONTENT_TYPE
the Content-Type header
|
static String |
HEADER_COOKIE
the Cookie header
|
static String |
HEADER_HOST
the Host header
|
static String |
HEADER_SET_COOKIE
the Set-Cookie header
|
static String |
HEADER_USER_AGENT
the User-Agent header
|
static 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 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 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 |
|---|---|
Object |
getAttribute(String name) |
int |
getContentLength() |
String |
getContentType() |
String |
getParameter(String name)
Gets a form or URL query parameter based on the name passed in.
|
Map |
getParameters()
Gets all the form and URL query parameters
|
String |
getRemoteAddr() |
URI |
getURI()
Gets the URI for the current URL page.
|
void |
setAttribute(String name,
Object value) |
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getHttpServletMapping, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getTrailerFields, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgradegetAsyncContext, getAttributeNames, getCharacterEncoding, getContentLengthLong, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setCharacterEncoding, startAsync, startAsyncstatic final String HEADER_ACCEPT
static final String HEADER_ACCEPT_ENCODING
static final String HEADER_ACCEPT_LANGUAGE
static final String HEADER_CONTENT_TYPE
static final String HEADER_CONTENT_LENGTH
static final String HEADER_CONNECTION
static final String HEADER_CACHE_CONTROL
static final String HEADER_HOST
static final String HEADER_USER_AGENT
static final String HEADER_SET_COOKIE
static final String HEADER_COOKIE
static final String SERVLET_REQUEST
static final String SERVLET_RESPONSE
static final String SERVLET_CONTEXT
String getParameter(String name)
getParameter in interface javax.servlet.ServletRequestname - Map getParameters()
URI getURI()
int getContentLength()
getContentLength in interface javax.servlet.ServletRequestString getContentType()
getContentType in interface javax.servlet.ServletRequestObject getAttribute(String name)
getAttribute in interface javax.servlet.ServletRequestvoid setAttribute(String name, Object value)
setAttribute in interface javax.servlet.ServletRequestString getRemoteAddr()
getRemoteAddr in interface javax.servlet.ServletRequestCopyright © 1999–2019 The Apache Software Foundation. All rights reserved.