HttpServletRequest object.
This provides the bridge from Servlet HttpServletRequest to the Jetty Core Request
via the ServletContextRequest.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private static class | ServletApiRequest.ServletCookieList
Extended list of HttpCookies that converts and caches a servlet Cookie array. |
| Modifier and Type | Field and Description |
|---|---|
| private AsyncContextState | |
| private boolean | |
| private Charset | |
| private Fields | |
| private boolean | |
| private String | |
| private int | |
| private Fields | |
| private ServletMultiPartFormData. | |
| private Fields | |
| private BufferedReader | |
| private Charset | |
| private final ServletChannel | |
| private final ServletContextRequest | |
| private static final Logger | |
| private static final SetCookieParser |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | authenticate(HttpServletResponse
The response)HttpServletResponse associated with this HttpServletRequestImplements jakarta. ServletContext to authenticate the user making this
request.
|
| public String | changeSessionId()
Implements jakarta. |
| private void | |
| private void | |
| private String | |
| private int | |
| private String | |
| public AsyncContext | getAsyncContext()
Implements jakarta. startAsync or
startAsync(ServletRequest, ServletResponse) on this request.
|
| public Object | getAttribute(String
a name)String specifying the name of the attributeImplements jakarta. Object, or null if no attribute of the given
name exists.
|
| public Enumeration | getAttributeNames()
Implements jakarta. Enumeration containing the names of the attributes available to this request.
|
| public AuthenticationState | |
| public String | getAuthType()
Implements jakarta. |
| public String | getCharacterEncoding()
Implements jakarta. |
| public int | getContentLength()
Implements jakarta. |
| public long | getContentLengthLong()
Implements jakarta. |
| public String | getContentType()
Implements jakarta. null if the type is not known.
|
| public String | getContextPath()
Implements jakarta. |
| public Cookie[] | getCookies()
Implements jakarta. Cookie objects the client sent with this request.
|
| public long | getDateHeader(String
a name)String specifying the name of the headerImplements jakarta. long value that represents a Date
object.
|
| public DispatcherType | getDispatcherType()
Implements jakarta. |
| public HttpFields | |
| public String | getHeader(String
a name)String specifying the header nameImplements jakarta. String.
|
| public Enumeration | getHeaderNames()
Implements jakarta. |
| public Enumeration | getHeaders(String
a name)String specifying the header nameImplements jakarta. Enumeration of String objects.
|
| public HttpServletMapping | getHttpServletMapping()
Overrides default jakarta. |
| public ServletInputStream | getInputStream()
Implements jakarta. ServletInputStream.
|
| public int | getIntHeader(String
a name)String specifying the name of a request headerImplements jakarta. int.
|
| public String | getLocalAddr()
Implements jakarta. |
| public Locale | getLocale()
Implements jakarta. Locale that the client will accept content in, based on the Accept-Language
header.
|
| public Enumeration | getLocales()
Implements jakarta. Enumeration of Locale objects indicating, in decreasing order starting with the
preferred locale, the locales that are acceptable to the client based on the Accept-Language header.
|
| public String | getLocalName()
Implements jakarta. getLocalAddr().
|
| public int | getLocalPort()
Implements jakarta. |
| public String | getMethod()
Implements jakarta. |
| public String | getParameter(String
a name)String specifying the name of the parameterImplements jakarta. String, or null if the parameter does not
exist.
|
| public Map | getParameterMap()
Implements jakarta. |
| public Enumeration | getParameterNames()
Implements jakarta. Enumeration of String objects containing the names of the parameters contained
in this request.
|
| private Fields | |
| public String[] | getParameterValues(String
a name)String containing the name of the parameter whose value is requestedImplements jakarta. String objects containing all of the values the given request parameter has, or
null if the parameter does not exist.
|
| public Part | getPart(String
the name of the requested name)PartImplements jakarta. Part with the given name.
|
| public Collection | getParts()
Implements jakarta. Part components of this request, provided that it is of type multipart/form-data.
|
| public String | getPathInfo()
Implements jakarta. |
| public String | getPathTranslated()
Implements jakarta. |
| public String | getProtocol()
Implements jakarta. |
| public String | getProtocolRequestId()
Implements jakarta. |
| public String | getQueryString()
Implements jakarta. |
| public BufferedReader | getReader()
Implements jakarta. BufferedReader.
|
| public String | getRemoteAddr()
Implements jakarta. |
| public String | getRemoteHost()
Implements jakarta. getRemoteAddr().
|
| public int | getRemotePort()
Implements jakarta. |
| public String | getRemoteUser()
Implements jakarta. null if the
user has not been authenticated.
|
| public Request | Returns: The coreRequest associated with the servlet API request. This may differ
from ServletContextRequest as wrapped by the ServletContextHandler as it
may have been further wrapped before being passed
to ServletChannel#associate(Request, Response, Callback).
|
| public RequestDispatcher | getRequestDispatcher(String
a path)String specifying the pathname to the resource. If it is relative, it must be relative
against the current servlet.Implements jakarta. RequestDispatcher object that acts as a wrapper for the resource located at the given path.
|
| public String | getRequestedSessionId()
Implements jakarta. |
| public String | getRequestId()
Implements jakarta. |
| public String | getRequestURI()
Implements jakarta. |
| public StringBuffer | getRequestURL()
Implements jakarta. |
| public String | getScheme()
Implements jakarta. http, https, or
ftp.
|
| public String | getServerName()
Implements jakarta. |
| public int | getServerPort()
Implements jakarta. |
| public ServletConnection | getServletConnection()
Implements jakarta. |
| public ServletContext | getServletContext()
Implements jakarta. |
| public String | getServletPath()
Implements jakarta. |
| public ServletContextHandler. | Returns: TheServletRequestInfo view of the ServletContextRequest as wrapped
by the ServletContextHandler.
|
| public HttpSession | getSession(boolean
true to create a new session for this request if necessary; false to return
null if there's no current sessionImplements jakarta. HttpSession associated with this request or, if there is no current session and
create is true, returns a new session.
|
| public HttpSession | getSession()
Implements jakarta. |
| public Map | getTrailerFields()
Overrides default jakarta. |
| private AuthenticationState | |
| public Principal | getUserPrincipal()
Implements jakarta. java.security.Principal object containing the name of the current authenticated user.
|
| public boolean | isAsyncStarted()
Implements jakarta. |
| public boolean | isAsyncSupported()
Implements jakarta. |
| public boolean | isRequestedSessionIdFromCookie()
Implements jakarta. Checks whether the requested session ID was conveyed to the server as an HTTP cookie. |
| public boolean | isRequestedSessionIdFromURL()
Implements jakarta. Checks whether the requested session ID was conveyed to the server as part of the request URL. |
| public boolean | isRequestedSessionIdValid()
Implements jakarta. |
| public boolean | isSecure()
Implements jakarta. |
| public boolean | isUserInRole(String
a role)String specifying the name of the roleImplements jakarta. |
| public void | login(String
The username, String String value corresponding to the login identifier of the user.The password password)String corresponding to the identified user.Implements jakarta. ServletContext.
|
| public void | logout()
Implements jakarta. null as the value returned when getUserPrincipal, getRemoteUser, and
getAuthType is called on the request.
|
| public PushBuilder | newPushBuilder()
Overrides default jakarta. PushBuilder for issuing server push responses from the current request.
|
| public void | removeAttribute(String
a name)String specifying the name of the attribute to removeImplements jakarta. |
| public void | |
| public void | setAttribute(String
a name, Object String specifying the name of the attributethe attribute)Object to be storedImplements jakarta. |
| public void | setCharacterEncoding(String
String containing the name of the character encoding.Implements jakarta. |
| public AsyncContext | startAsync()
Implements jakarta. AsyncContext with the original (unwrapped)
ServletRequest and ServletResponse objects.
|
| public AsyncContext | startAsync(ServletRequest
the ServletRequest used to initialize the AsyncContext servletRequest, ServletResponse the ServletResponse used to initialize the AsyncContext servletResponse)Implements jakarta. AsyncContext with the given request and
response objects.
|
| public <T extends HttpUpgradeHandler> T | upgrade(Class<T>
The handlerClass)HttpUpgradeHandler class used for the upgrade.Implements jakarta. HttpUpgradeHandler for a given class and uses it for the http protocol upgrade
processing.
|