Request request object. All methods are delegated to the wrapped request.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private static class | |
| pack-priv static class | HttpServletRequestImpl.
The static factory is required to avoid NoClassDefFoundError when running w/ Servlet 3.0 API and JDK6 |
| Modifier and Type | Field and Description |
|---|---|
| private AsyncContextImpl | |
| private final AtomicBoolean | |
| private Thread | |
| private static final ThreadCache. | |
| private WebappContext | |
| private String | |
| private HttpServletMapping | httpServletMapping
Mapping that invoked this request. |
| private HttpSessionImpl | |
| private HttpUpgradeHandler | |
| private final ServletInputStreamImpl | |
| private boolean | |
| private boolean | isAsyncSupported
Async operation |
| private static final Logger | |
| private String | |
| private ServletReaderImpl | |
| protected Request | request
The wrapped request. |
| private String | |
| protected HttpServletResponseImpl | servletResponse
The corresponding servlet response |
| private boolean | |
| protected boolean | usingInputStream
Using stream flag. |
| protected boolean | usingReader
Using writer flag. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| public boolean | authenticate(HttpServletResponse hsr)
Implements jakarta. Use the container login mechanism configured for the |
| public String | changeSessionId()
Implements jakarta. Change the session id of the current session associated with this request and return the new session id. |
| protected Object | |
| public static HttpServletRequestImpl | |
| public void | |
| pack-priv void | |
| public AsyncContext | getAsyncContext()
Implements jakarta. Gets the AsyncContext that was created or reinitialized by the most recent invocation of |
| public Object | getAttribute(String name)
Implements jakarta. Returns the value of the named attribute as an |
| public Enumeration | getAttributeNames()
Implements jakarta. Returns an |
| public String | getAuthType()
Implements jakarta. Returns the name of the authentication scheme used to protect the servlet. |
| public String | getCharacterEncoding()
Implements jakarta. Returns the name of the character encoding used in the body of this request. |
| public int | getContentLength()
Implements jakarta. Returns the length, in bytes, of the request body and made available by the input stream, or -1 if the length is not known or is greater than Integer.MAX_VALUE. |
| public long | getContentLengthLong()
Implements jakarta. Returns the length, in bytes, of the request body and made available by the input stream, or -1 if the length is not known. |
| public String | getContentType()
Implements jakarta. Returns the MIME type of the body of the request, or |
| protected WebappContext | |
| public String | getContextPath()
Implements jakarta. Returns the portion of the request URI that indicates the context of the request. |
| public Cookie[] | getCookies()
Implements jakarta. Returns an array containing all of the |
| public long | getDateHeader(String name)
Implements jakarta. Returns the value of the specified request header as a |
| public DispatcherType | getDispatcherType()
Implements jakarta. Gets the dispatcher type of this request. |
| public Cookie[] | |
| public String | getHeader(String name)
Implements jakarta. Returns the value of the specified request header as a |
| public Enumeration | getHeaderNames()
Implements jakarta. Returns an enumeration of all the header names this request contains. |
| public Enumeration | getHeaders(String name)
Implements jakarta. Returns all the values of the specified request header as an |
| public HttpServletMapping | getHttpServletMapping()
Overrides default jakarta. Return the HttpServletMapping of the request. |
| public HttpUpgradeHandler | |
| public ServletInputStream | getInputStream()
Implements jakarta. Retrieves the body of the request as binary data using a |
| public Request | getInternalRequest()
Implements org. Returns internal Grizzly |
| public int | getIntHeader(String name)
Implements jakarta. Returns the value of the specified request header as an |
| public String | getLocalAddr()
Implements jakarta. Returns the Internet Protocol (IP) address representing the interface on which the request was received. |
| public Locale | getLocale()
Implements jakarta. Returns the preferred |
| public Enumeration | getLocales()
Implements jakarta. Returns an |
| public String | getLocalName()
Implements jakarta. Returns the fully qualified name of the address returned by |
| public int | getLocalPort()
Implements jakarta. Returns the Internet Protocol (IP) port number representing the interface on which the request was received. |
| public String | getMethod()
Implements jakarta. Returns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT. |
| public String | getParameter(String name)
Implements jakarta. Returns the value of a request parameter as a |
| public Map | getParameterMap()
Implements jakarta. Returns a java.util.Map of the parameters of this request. |
| public Enumeration | getParameterNames()
Implements jakarta. Returns an |
| public String[] | getParameterValues(String name)
Implements jakarta. Returns an array of |
| public Part | getPart(String string)
Implements jakarta. Gets the |
| public Collection | getParts()
Implements jakarta. Gets all the |
| public String | getPathInfo()
Implements jakarta. Returns any extra path information associated with the URL the client sent when it made this request. |
| public String | getPathTranslated()
Implements jakarta. Returns any extra path information after the servlet name but before the query string, and translates it to a real path. |
| public String | getProtocol()
Implements jakarta. Returns the name and version of the protocol the request uses in the form protocol/majorVersion.minorVersion, for example, HTTP/1.1. |
| public String | getProtocolRequestId()
Implements jakarta. Obtain the request identifier for this request as defined by the protocol in use. |
| public String | getQueryString()
Implements jakarta. Returns the query string that is contained in the request URL after the path. |
| public BufferedReader | getReader()
Implements jakarta. Retrieves the body of the request as character data using a |
| public String | getRemoteAddr()
Implements jakarta. Returns the Internet Protocol (IP) of the remote end of the connection on which the request was received. |
| public String | getRemoteHost()
Implements jakarta. Returns the fully qualified name of the address returned by |
| public int | getRemotePort()
Implements jakarta. Returns the Internet Protocol (IP) source port the remote end of the connection on which the request was received. |
| public String | getRemoteUser()
Implements jakarta. Returns the login of the user making this request, if the user has been authenticated, or |
| public Request | |
| public RequestDispatcher | getRequestDispatcher(String path)
Implements jakarta. Returns a |
| private RequestDispatcher | |
| public String | getRequestedSessionId()
Implements jakarta. Returns the session ID specified by the client. |
| public String | getRequestId()
Implements jakarta. Obtain a unique (within the lifetime of the Servlet container) identifier string for this request. |
| public String | getRequestURI()
Implements jakarta. Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request. |
| public StringBuffer | getRequestURL()
Implements jakarta. Reconstructs the URL the client used to make the request. |
| public String | getScheme()
Implements jakarta. Returns the name of the scheme used to make this request, for example, |
| public String | getServerName()
Implements jakarta. Returns the host name of the server to which the request was sent. |
| public int | getServerPort()
Implements jakarta. Returns the port number to which the request was sent. |
| public ServletConnection | getServletConnection()
Implements jakarta. Obtain details of the network connection to the Servlet container that is being used by this request. |
| public ServletContext | getServletContext()
Implements jakarta. Gets the servlet context to which this ServletRequest was last dispatched. |
| public String | getServletPath()
Implements jakarta. Returns the part of this request's URL that calls the servlet. |
| public HttpSession | getSession(boolean create)
Implements jakarta. Returns the current |
| public HttpSession | getSession()
Implements jakarta. Returns the current session associated with this request, or if the request does not have a session, creates one. |
| public Map | getTrailerFields()
Overrides default jakarta. Get the request trailer fields. |
| public Principal | getUserPrincipal()
Implements jakarta. Returns a |
| public void | initialize(final Request request, final HttpServletResponseImpl servletResponse, final WebappContext context)
|
| public boolean | isAsyncStarted()
Implements jakarta. Checks if this request has been put into asynchronous mode. |
| public boolean | isAsyncSupported()
Implements jakarta. Checks if this request supports asynchronous operation. |
| 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. Checks whether the requested session ID is still valid. |
| public boolean | isSecure()
Implements jakarta. Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS. |
| public boolean | isTrailerFieldsReady()
Overrides default jakarta. Return a boolean indicating whether trailer fields are ready to read using |
| public boolean | |
| public boolean | isUserInRole(String role)
Implements jakarta. Returns a boolean indicating whether the authenticated user is included in the specified logical "role". |
| public void | login(String string, String string1)
Implements jakarta. Validate the provided username and password in the password validation realm used by the web container login
mechanism configured for the |
| public void | logout()
Implements jakarta. Establish |
| public PushBuilder | newPushBuilder()
Overrides default jakarta.
References Deprecated
PushBuilder is deprecated or references (maybe indirectly) at least one deprecated element.
Instantiates a new instance of |
| pack-priv void | onAfterService()
Notifies this Request that the container-initiated dispatch during which ServletRequest#startAsync was called is about to return to the container |
| private boolean | |
| pack-priv void | |
| public void | removeAttribute(String name)
Implements jakarta. Removes an attribute from this request. |
| pack-priv void | |
| pack-priv void | |
| public void | setAttribute(String name, Object value)
Implements jakarta. Stores an attribute in this request. |
| public void | setCharacterEncoding(String env)
Implements jakarta. Overrides the name of the character encoding used in the body of this request. |
| protected void | setContextImpl(WebappContext
the underlying contextImpl)WebappContextSet the underlying |
| protected void | |
| protected void | |
| public void | setServletPath(final String
Servlet path to set. servletPath)Programmatically set the servlet path value. |
| public AsyncContext | startAsync()
Implements jakarta. Puts this request into asynchronous mode, and initializes its |
| public AsyncContext | startAsync(final ServletRequest servletRequest, final ServletResponse servletResponse)
Implements jakarta. Puts this request into asynchronous mode, and initializes its |
| private AsyncContext | startAsync(ServletRequest
the ServletRequest with which to initialize the AsyncContext servletRequest, ServletResponse the ServletResponse with which to initialize the AsyncContext servletResponse, boolean true if the zero-arg version of startAsync was called, false otherwise isStartAsyncWithZeroArg)Starts async processing on this request. |
| public <T extends HttpUpgradeHandler> T | Returns: an instance of theHttpUpgradeHandlerThe handlerClass)ProtocolHandler class used for the upgrade.Implements jakarta. Create an instance of |