Class Request
- All Implemented Interfaces:
javax.servlet.http.HttpServletRequest
,javax.servlet.ServletRequest
Implements HttpServletRequest
from the javax.servlet.http
package.
The standard interface of mostly getters, is extended with setters so that the request is mutable by the handlers that it is passed to. This allows the request object to be as lightweight as possible and not actually implement any significant behavior. For example
- The
getContextPath()
method will return null, until the request has been passed to aContextHandler
which matches thegetPathInfo()
with a context path and callssetContextPath(String)
as a result. - the HTTP session methods will all return null sessions until such time as a request has been passed to a
SessionHandler
which checks for session cookies and enables the ability to create new sessions. - The
getServletPath()
method will return null until the request has been passed to aorg.eclipse.jetty.servlet.ServletHandler
and the pathInfo matched against the servlet URL patterns andsetServletPath(String)
called as a result.
A request instance is created for each connection accepted by the server and recycled for each HTTP request received via that connection. An effort is made to avoid reparsing headers and cookies that are likely to be the same for requests from the same connection.
Request instances are recycled, which combined with badly written asynchronous applications can result in calls on requests that have been reset. The code is written in a style to avoid NPE and ISE when such calls are made, as this has often proved generate exceptions that distraction from debugging such bad asynchronous applications. Instead, request methods attempt to not fail when called in an illegal state, so that hopefully the bad application will proceed to a major state event (eg calling AsyncContext.onComplete) which has better asynchronous guards, true atomic state and better failure behaviour that will assist in debugging.
The form content that a request can process is limited to protect from Denial of Service attacks. The size in bytes is limited by
ContextHandler.getMaxFormContentSize()
or if there is no context then the "org.eclipse.jetty.server.Request.maxFormContentSize" Server
attribute. The number of parameters keys is limited by ContextHandler.getMaxFormKeys()
or if there is no context then the
"org.eclipse.jetty.server.Request.maxFormKeys" Server
attribute.
If IOExceptions or timeouts occur while reading form parameters, these are thrown as unchecked Exceptions: ether RuntimeIOException
,
BadMessageException
or RuntimeException
as appropriate.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<Locale>
private AsyncContextState
private Object
private Attributes
private Authentication
private final HttpChannel
private String
private boolean
private String
private ContextHandler.Context
private String
private CookieCutter
private boolean
private javax.servlet.DispatcherType
private ContextHandler.Context
private boolean
private final HttpInput
private int
private MetaData.Request
private MultiParts
private boolean
private String
private String
private String
private BufferedReader
private String
private InetSocketAddress
private final List<javax.servlet.ServletRequestAttributeListener>
private String
private boolean
private UserIdentity.Scope
private boolean
private String
private javax.servlet.http.HttpSession
private SessionHandler
private long
private static final int
private static final int
private static final int
private static final Logger
static final String
static final String
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEventListener
(EventListener listener) boolean
authenticate
(javax.servlet.http.HttpServletResponse response) private void
commitSession
(Session session) A response is being committed for a session, potentially write the session out before the client receives the response.void
enterSession
(javax.servlet.http.HttpSession s) Remember a session that this request has just entered.private void
void
extractFormParameters
(MultiMap<String> params) private void
private String
private int
javax.servlet.AsyncContext
getAttribute
(String name) Get Request Attribute.Get the authentication.static Request
getBaseRequest
(javax.servlet.ServletRequest request) Obtain the baseRequest
instance of aServletRequest
, by coercion, unwrapping or special attribute.int
long
long
javax.servlet.http.Cookie[]
long
getDateHeader
(String name) javax.servlet.DispatcherType
getHeaders
(String name) int
javax.servlet.ServletInputStream
int
getIntHeader
(String name) int
getParameter
(String name) String[]
getParameterValues
(String name) javax.servlet.http.Part
Collection<javax.servlet.http.Part>
getParts()
private Collection<javax.servlet.http.Part>
Get a PushBuilder associated with this request initialized as follows: The method is initialized to "GET" The headers from this request are copied to the Builder, except for: Conditional headers (eg.getRealPath
(String path) Access the underlying RemoteInetSocketAddress
for this request.int
javax.servlet.RequestDispatcher
getRequestDispatcher
(String path) Reconstructs the URL the client used to make the request.int
javax.servlet.ServletContext
javax.servlet.ServletResponse
javax.servlet.http.HttpSession
javax.servlet.http.HttpSession
getSession
(boolean create) javax.servlet.http.HttpSession
getSession
(SessionHandler sessionHandler) Find a session that this request has already entered for the given SessionHandlerlong
Get Request TimeStampboolean
boolean
boolean
private boolean
boolean
boolean
isHead()
private static boolean
isNoParams
(MultiMap<String> inputParameters) Compare inputParameters to NO_PARAMS by Referenceboolean
isPush()
boolean
boolean
boolean
boolean
boolean
boolean
isSecure()
boolean
isUserInRole
(String role) private void
leaveSession
(Session session) Complete this request's access to a session.void
void
logout()
private int
lookupServerAttribute
(String key, int dftValue) void
mergeQueryParameters
(String oldQuery, String newQuery, boolean updateQueryString) private MultiParts
newMultiParts
(javax.servlet.MultipartConfigElement config) void
Called when the request is fully finished being handled.void
Called when a response is about to be committed, ie sent back to the clientprotected void
recycle()
void
removeAttribute
(String name) void
removeEventListener
(EventListener listener) void
void
void
setAsyncSupported
(boolean supported, Object source) void
setAttribute
(String name, Object value) void
setAttributes
(Attributes attributes) void
setAuthentication
(Authentication authentication) Set the authentication.void
setAuthority
(String host, int port) void
setCharacterEncoding
(String encoding) void
setCharacterEncodingUnchecked
(String encoding) void
setContentParameters
(MultiMap<String> contentParameters) void
setContentType
(String contentType) void
setContext
(ContextHandler.Context context) Set request contextvoid
setContextPath
(String contextPath) Sets the "context path" for this requestvoid
setCookies
(javax.servlet.http.Cookie[] cookies) void
setDispatcherType
(javax.servlet.DispatcherType type) void
setHandled
(boolean h) void
setHttpURI
(HttpURI uri) void
setHttpVersion
(HttpVersion version) void
setMetaData
(MetaData.Request request) void
void
setPathInfo
(String pathInfo) void
setQueryEncoding
(String queryEncoding) Set the character encoding used for the query string.void
setQueryParameters
(MultiMap<String> queryParameters) void
setQueryString
(String queryString) void
void
setRequestedSessionId
(String requestedSessionId) void
setRequestedSessionIdFromCookie
(boolean requestedSessionIdCookie) void
void
setSecure
(boolean secure) void
setServletPath
(String servletPath) void
setSession
(javax.servlet.http.HttpSession session) void
setSessionHandler
(SessionHandler sessionHandler) void
setTimeStamp
(long ts) void
setURIPathQuery
(String requestURI) void
javax.servlet.AsyncContext
javax.servlet.AsyncContext
startAsync
(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) boolean
toString()
static javax.servlet.http.HttpServletRequest
unwrap
(javax.servlet.ServletRequest servletRequest) <T extends javax.servlet.http.HttpUpgradeHandler>
TMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.servlet.http.HttpServletRequest
getHttpServletMapping, getTrailerFields, isTrailerFieldsReady, newPushBuilder
-
Field Details
-
MULTIPART_CONFIG_ELEMENT
- See Also:
-
MULTIPARTS
- See Also:
-
LOG
-
__defaultLocale
-
INPUT_NONE
private static final int INPUT_NONE- See Also:
-
INPUT_STREAM
private static final int INPUT_STREAM- See Also:
-
INPUT_READER
private static final int INPUT_READER- See Also:
-
NO_PARAMS
-
_channel
-
_requestAttributeListeners
-
_input
-
_metaData
-
_originalURI
-
_contextPath
-
_servletPath
-
_pathInfo
-
_asyncNotSupportedSource
-
_secure
private boolean _secure -
_newContext
private boolean _newContext -
_cookiesExtracted
private boolean _cookiesExtracted -
_handled
private boolean _handled -
_contentParamsExtracted
private boolean _contentParamsExtracted -
_requestedSessionIdFromCookie
private boolean _requestedSessionIdFromCookie -
_attributes
-
_authentication
-
_contentType
-
_characterEncoding
-
_context
-
_errorContext
-
_cookies
-
_dispatcherType
private javax.servlet.DispatcherType _dispatcherType -
_inputState
private int _inputState -
_reader
-
_readerEncoding
-
_queryParameters
-
_contentParameters
-
_parameters
-
_queryEncoding
-
_remote
-
_requestedSessionId
-
_scope
-
_session
private javax.servlet.http.HttpSession _session -
_sessionHandler
-
_timeStamp
private long _timeStamp -
_multiParts
-
_async
-
_sessions
-
-
Constructor Details
-
Request
-
-
Method Details
-
isNoParams
Compare inputParameters to NO_PARAMS by Reference- Parameters:
inputParameters
- The parameters to compare to NO_PARAMS- Returns:
- True if the inputParameters reference is equal to NO_PARAMS otherwise False
-
getBaseRequest
Obtain the baseRequest
instance of aServletRequest
, by coercion, unwrapping or special attribute.- Parameters:
request
- The request- Returns:
- the base
Request
instance of aServletRequest
.
-
getHttpFields
-
getTrailers
-
getHttpInput
-
isPush
public boolean isPush() -
isPushSupported
public boolean isPushSupported() -
getPushBuilder
Get a PushBuilder associated with this request initialized as follows:- The method is initialized to "GET"
- The headers from this request are copied to the Builder, except for:
- Conditional headers (eg. If-Modified-Since)
- Range headers
- Expect headers
- Authorization headers
- Referrer headers
- If the request was Authenticated, an Authorization header will be set with a container generated token that will result in equivalent Authorization
- The query string from
getQueryString()
- The
getRequestedSessionId()
value, unless at the time of the callgetSession(boolean)
has previously been called to create a newHttpSession
, in which case the new session ID will be used as the PushBuilders requested session ID. - The source of the requested session id will be the same as for this request
- The builders Referer header will be set to
getRequestURL()
plus anygetQueryString()
- If
HttpServletResponse.addCookie(Cookie)
has been called on the associated response, then a corresponding Cookie header will be added to the PushBuilder, unless theCookie.getMaxAge()
is <=0, in which case the Cookie will be removed from the builder. - If this request has has the conditional headers If-Modified-Since or
If-None-Match then the
PushBuilderImpl.isConditional()
header is set to true.
Each call to getPushBuilder() will return a new instance of a PushBuilder based off this Request. Any mutations to the returned PushBuilder are not reflected on future returns.
- Returns:
- A new PushBuilder or null if push is not supported
-
addEventListener
-
enterSession
public void enterSession(javax.servlet.http.HttpSession s) Remember a session that this request has just entered.- Parameters:
s
- the session
-
leaveSession
Complete this request's access to a session.- Parameters:
session
- the session
-
commitSession
A response is being committed for a session, potentially write the session out before the client receives the response.- Parameters:
session
- the session
-
getParameters
-
extractQueryParameters
private void extractQueryParameters() -
isContentEncodingSupported
private boolean isContentEncodingSupported() -
extractContentParameters
private void extractContentParameters() -
extractFormParameters
-
lookupServerAttribute
-
getAsyncContext
public javax.servlet.AsyncContext getAsyncContext()- Specified by:
getAsyncContext
in interfacejavax.servlet.ServletRequest
-
getHttpChannelState
-
getAttribute
Get Request Attribute.Also supports jetty specific attributes to gain access to Jetty APIs:
- org.eclipse.jetty.server.Server
- The Jetty Server instance
- org.eclipse.jetty.server.HttpChannel
- The HttpChannel for this request
- org.eclipse.jetty.server.HttpConnection
- The HttpConnection or null if another transport is used
- Specified by:
getAttribute
in interfacejavax.servlet.ServletRequest
- See Also:
-
ServletRequest.getAttribute(java.lang.String)
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacejavax.servlet.ServletRequest
-
getAttributes
-
getAuthentication
Get the authentication.- Returns:
- the authentication
-
getAuthType
- Specified by:
getAuthType
in interfacejavax.servlet.http.HttpServletRequest
-
getCharacterEncoding
- Specified by:
getCharacterEncoding
in interfacejavax.servlet.ServletRequest
-
getHttpChannel
- Returns:
- Returns the connection.
-
getContentLength
public int getContentLength()- Specified by:
getContentLength
in interfacejavax.servlet.ServletRequest
-
getContentLengthLong
public long getContentLengthLong()- Specified by:
getContentLengthLong
in interfacejavax.servlet.ServletRequest
-
getContentRead
public long getContentRead() -
getContentType
- Specified by:
getContentType
in interfacejavax.servlet.ServletRequest
-
getContext
- Returns:
- The current
context
used for this request, ornull
ifsetContext(org.eclipse.jetty.server.handler.ContextHandler.Context)
has not yet been called.
-
getErrorContext
- Returns:
- The current
context
used for this error handling for this request. If the request is asynchronous, then it is the context that called async. Otherwise it is the last non-null context passed to #setContext
-
getContextPath
- Specified by:
getContextPath
in interfacejavax.servlet.http.HttpServletRequest
-
getCookies
public javax.servlet.http.Cookie[] getCookies()- Specified by:
getCookies
in interfacejavax.servlet.http.HttpServletRequest
-
getDateHeader
- Specified by:
getDateHeader
in interfacejavax.servlet.http.HttpServletRequest
-
getDispatcherType
public javax.servlet.DispatcherType getDispatcherType()- Specified by:
getDispatcherType
in interfacejavax.servlet.ServletRequest
-
getHeader
- Specified by:
getHeader
in interfacejavax.servlet.http.HttpServletRequest
-
getHeaderNames
- Specified by:
getHeaderNames
in interfacejavax.servlet.http.HttpServletRequest
-
getHeaders
- Specified by:
getHeaders
in interfacejavax.servlet.http.HttpServletRequest
-
getInputState
public int getInputState()- Returns:
- Returns the inputState.
-
getInputStream
- Specified by:
getInputStream
in interfacejavax.servlet.ServletRequest
- Throws:
IOException
-
getIntHeader
- Specified by:
getIntHeader
in interfacejavax.servlet.http.HttpServletRequest
-
getLocale
- Specified by:
getLocale
in interfacejavax.servlet.ServletRequest
-
getLocales
- Specified by:
getLocales
in interfacejavax.servlet.ServletRequest
-
getLocalAddr
- Specified by:
getLocalAddr
in interfacejavax.servlet.ServletRequest
-
getLocalName
- Specified by:
getLocalName
in interfacejavax.servlet.ServletRequest
-
getLocalPort
public int getLocalPort()- Specified by:
getLocalPort
in interfacejavax.servlet.ServletRequest
-
getMethod
- Specified by:
getMethod
in interfacejavax.servlet.http.HttpServletRequest
-
getParameter
- Specified by:
getParameter
in interfacejavax.servlet.ServletRequest
-
getParameterMap
- Specified by:
getParameterMap
in interfacejavax.servlet.ServletRequest
-
getParameterNames
- Specified by:
getParameterNames
in interfacejavax.servlet.ServletRequest
-
getParameterValues
- Specified by:
getParameterValues
in interfacejavax.servlet.ServletRequest
-
getQueryParameters
-
setQueryParameters
-
setContentParameters
-
resetParameters
public void resetParameters() -
getPathInfo
- Specified by:
getPathInfo
in interfacejavax.servlet.http.HttpServletRequest
-
getPathTranslated
- Specified by:
getPathTranslated
in interfacejavax.servlet.http.HttpServletRequest
-
getProtocol
- Specified by:
getProtocol
in interfacejavax.servlet.ServletRequest
-
getHttpVersion
-
getQueryEncoding
-
getQueryString
- Specified by:
getQueryString
in interfacejavax.servlet.http.HttpServletRequest
-
getReader
- Specified by:
getReader
in interfacejavax.servlet.ServletRequest
- Throws:
IOException
-
getRealPath
- Specified by:
getRealPath
in interfacejavax.servlet.ServletRequest
-
getRemoteInetSocketAddress
Access the underlying RemoteInetSocketAddress
for this request.- Returns:
- the remote
InetSocketAddress
for this request, or null if the request has no remote (seeServletRequest.getRemoteAddr()
for conditions that result in no remote address)
-
getRemoteAddr
- Specified by:
getRemoteAddr
in interfacejavax.servlet.ServletRequest
-
getRemoteHost
- Specified by:
getRemoteHost
in interfacejavax.servlet.ServletRequest
-
getRemotePort
public int getRemotePort()- Specified by:
getRemotePort
in interfacejavax.servlet.ServletRequest
-
getRemoteUser
- Specified by:
getRemoteUser
in interfacejavax.servlet.http.HttpServletRequest
-
getRequestDispatcher
- Specified by:
getRequestDispatcher
in interfacejavax.servlet.ServletRequest
-
getRequestedSessionId
- Specified by:
getRequestedSessionId
in interfacejavax.servlet.http.HttpServletRequest
-
getRequestURI
- Specified by:
getRequestURI
in interfacejavax.servlet.http.HttpServletRequest
-
getRequestURL
- Specified by:
getRequestURL
in interfacejavax.servlet.http.HttpServletRequest
-
getResponse
-
getRootURL
Reconstructs the URL the client used to make the request. The returned URL contains a protocol, server name, port number, and, but it does not include a path.Because this method returns a
StringBuffer
, not a string, you can modify the URL easily, for example, to append path and query parameters. This method is useful for creating redirect messages and for reporting errors.- Returns:
- "scheme://host:port"
-
getScheme
- Specified by:
getScheme
in interfacejavax.servlet.ServletRequest
-
getServerName
- Specified by:
getServerName
in interfacejavax.servlet.ServletRequest
-
findServerName
-
getServerPort
public int getServerPort()- Specified by:
getServerPort
in interfacejavax.servlet.ServletRequest
-
findServerPort
private int findServerPort() -
getServletContext
public javax.servlet.ServletContext getServletContext()- Specified by:
getServletContext
in interfacejavax.servlet.ServletRequest
-
getServletName
-
getServletPath
- Specified by:
getServletPath
in interfacejavax.servlet.http.HttpServletRequest
-
getServletResponse
public javax.servlet.ServletResponse getServletResponse() -
changeSessionId
- Specified by:
changeSessionId
in interfacejavax.servlet.http.HttpServletRequest
-
onCompleted
public void onCompleted()Called when the request is fully finished being handled. For every session in any context that the session has accessed, ensure that the session is completed. -
onResponseCommit
public void onResponseCommit()Called when a response is about to be committed, ie sent back to the client -
getSession
Find a session that this request has already entered for the given SessionHandler- Parameters:
sessionHandler
- the SessionHandler (ie context) to check- Returns:
-
getSession
public javax.servlet.http.HttpSession getSession()- Specified by:
getSession
in interfacejavax.servlet.http.HttpServletRequest
-
getSession
public javax.servlet.http.HttpSession getSession(boolean create) - Specified by:
getSession
in interfacejavax.servlet.http.HttpServletRequest
-
getSessionHandler
- Returns:
- Returns the sessionManager.
-
getTimeStamp
public long getTimeStamp()Get Request TimeStamp- Returns:
- The time that the request was received.
-
getHttpURI
- Returns:
- Returns the uri.
-
getOriginalURI
- Returns:
- Returns the original uri passed in metadata before customization/rewrite
-
setHttpURI
- Parameters:
uri
- the URI to set
-
getUserIdentity
-
getResolvedUserIdentity
- Returns:
- The resolved user Identity, which may be null if the
Authentication
is notAuthentication.User
(eg.Authentication.Deferred
).
-
getUserIdentityScope
-
getUserPrincipal
- Specified by:
getUserPrincipal
in interfacejavax.servlet.http.HttpServletRequest
-
isHandled
public boolean isHandled() -
isAsyncStarted
public boolean isAsyncStarted()- Specified by:
isAsyncStarted
in interfacejavax.servlet.ServletRequest
-
isAsyncSupported
public boolean isAsyncSupported()- Specified by:
isAsyncSupported
in interfacejavax.servlet.ServletRequest
-
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()- Specified by:
isRequestedSessionIdFromCookie
in interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()- Specified by:
isRequestedSessionIdFromUrl
in interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()- Specified by:
isRequestedSessionIdFromURL
in interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()- Specified by:
isRequestedSessionIdValid
in interfacejavax.servlet.http.HttpServletRequest
-
isSecure
public boolean isSecure()- Specified by:
isSecure
in interfacejavax.servlet.ServletRequest
-
setSecure
public void setSecure(boolean secure) -
isUserInRole
- Specified by:
isUserInRole
in interfacejavax.servlet.http.HttpServletRequest
-
setMetaData
- Parameters:
request
- the Request metadata
-
getMetaData
-
hasMetaData
public boolean hasMetaData() -
recycle
protected void recycle() -
removeAttribute
- Specified by:
removeAttribute
in interfacejavax.servlet.ServletRequest
-
removeEventListener
-
setAsyncSupported
-
setAttribute
- Specified by:
setAttribute
in interfacejavax.servlet.ServletRequest
-
setAttributes
-
setAsyncAttributes
public void setAsyncAttributes() -
setAuthentication
Set the authentication.- Parameters:
authentication
- the authentication to set
-
setCharacterEncoding
- Specified by:
setCharacterEncoding
in interfacejavax.servlet.ServletRequest
- Throws:
UnsupportedEncodingException
-
setCharacterEncodingUnchecked
-
setContentType
-
setContext
Set request context- Parameters:
context
- context object
-
takeNewContext
public boolean takeNewContext()- Returns:
- True if this is the first call of
takeNewContext()
since the lastsetContext(org.eclipse.jetty.server.handler.ContextHandler.Context)
call.
-
setContextPath
Sets the "context path" for this request- Parameters:
contextPath
- the context path for this request- See Also:
-
HttpServletRequest.getContextPath()
-
setCookies
public void setCookies(javax.servlet.http.Cookie[] cookies) - Parameters:
cookies
- The cookies to set.
-
setDispatcherType
public void setDispatcherType(javax.servlet.DispatcherType type) -
setHandled
public void setHandled(boolean h) -
setMethod
- Parameters:
method
- The method to set.
-
setHttpVersion
-
isHead
public boolean isHead() -
setPathInfo
- Parameters:
pathInfo
- The pathInfo to set.
-
setQueryEncoding
Set the character encoding used for the query string. This call will effect the return of getQueryString and getParamaters. It must be called before any getParameter methods. The request attribute "org.eclipse.jetty.server.Request.queryEncoding" may be set as an alternate method of calling setQueryEncoding.- Parameters:
queryEncoding
- the URI query character encoding
-
setQueryString
- Parameters:
queryString
- The queryString to set.
-
setRemoteAddr
- Parameters:
addr
- The address to set.
-
setRequestedSessionId
- Parameters:
requestedSessionId
- The requestedSessionId to set.
-
setRequestedSessionIdFromCookie
public void setRequestedSessionIdFromCookie(boolean requestedSessionIdCookie) - Parameters:
requestedSessionIdCookie
- The requestedSessionIdCookie to set.
-
setURIPathQuery
-
setScheme
- Parameters:
scheme
- The scheme to set.
-
setAuthority
- Parameters:
host
- The host to set.port
- the port to set
-
setServletPath
- Parameters:
servletPath
- The servletPath to set.
-
setSession
public void setSession(javax.servlet.http.HttpSession session) - Parameters:
session
- The session to set.
-
setSessionHandler
- Parameters:
sessionHandler
- The SessionHandler to set.
-
setTimeStamp
public void setTimeStamp(long ts) -
setUserIdentityScope
-
startAsync
- Specified by:
startAsync
in interfacejavax.servlet.ServletRequest
- Throws:
IllegalStateException
-
startAsync
public javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws IllegalStateException - Specified by:
startAsync
in interfacejavax.servlet.ServletRequest
- Throws:
IllegalStateException
-
unwrap
public static javax.servlet.http.HttpServletRequest unwrap(javax.servlet.ServletRequest servletRequest) -
toString
-
authenticate
public boolean authenticate(javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException - Specified by:
authenticate
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
IOException
javax.servlet.ServletException
-
getPart
public javax.servlet.http.Part getPart(String name) throws IOException, javax.servlet.ServletException - Specified by:
getPart
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
IOException
javax.servlet.ServletException
-
getParts
public Collection<javax.servlet.http.Part> getParts() throws IOException, javax.servlet.ServletException- Specified by:
getParts
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
IOException
javax.servlet.ServletException
-
getParts
- Throws:
IOException
-
newMultiParts
- Throws:
IOException
-
login
- Specified by:
login
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
javax.servlet.ServletException
-
logout
public void logout() throws javax.servlet.ServletException- Specified by:
logout
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
javax.servlet.ServletException
-
mergeQueryParameters
-
upgrade
public <T extends javax.servlet.http.HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, javax.servlet.ServletException - Specified by:
upgrade
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
IOException
javax.servlet.ServletException
- See Also:
-
HttpServletRequest.upgrade(java.lang.Class)
-