Package org.atmosphere.cpr
Class AtmosphereRequestImpl
java.lang.Object
jakarta.servlet.ServletRequestWrapper
jakarta.servlet.http.HttpServletRequestWrapper
org.atmosphere.cpr.AtmosphereRequestImpl
- All Implemented Interfaces:
jakarta.servlet.http.HttpServletRequest,jakarta.servlet.ServletRequest,AtmosphereRequest
public class AtmosphereRequestImpl
extends jakarta.servlet.http.HttpServletRequestWrapper
implements AtmosphereRequest
An Atmosphere request representation. An
AtmosphereRequest is a two-way communication channel between the
client and the server. If the isDestroyable() is set to false, or if its
associated AtmosphereResource has been suspended, this object can be re-used at any moment between requests.
You can use its associated AtmosphereResponse to write bytes at any moment, making this object bi-directional.
- Author:
- Jeanfrancois Arcand
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic final classNested classes/interfaces inherited from interface org.atmosphere.cpr.AtmosphereRequest
AtmosphereRequest.LocalAttributes -
Field Summary
Fields inherited from interface jakarta.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH -
Method Summary
Modifier and TypeMethodDescriptionReturn the locally added attributes.booleanauthenticate(jakarta.servlet.http.HttpServletResponse response) body()Return the request's body.body(byte[] bytes) body(InputStream body) static AtmosphereRequestcloneRequest(jakarta.servlet.http.HttpServletRequest request, boolean loadInMemory, boolean copySession, boolean isDestroyable, boolean createSession) Copy the HttpServletRequest content inside an AtmosphereRequest.contextPath(String contextPath) voiddestroy()voiddestroy(boolean force) destroyable(boolean destroyable) booleanbooleanDispatch the request asynchronously to container.jakarta.servlet.AsyncContextintjakarta.servlet.http.Cookie[]longgetDateHeader(String name) jakarta.servlet.DispatcherTypegetHeaders(String name) jakarta.servlet.ServletInputStreamintgetIntHeader(String name) intString[]jakarta.servlet.http.PartCollection<jakarta.servlet.http.Part> getParts()getRealPath(String path) intjakarta.servlet.RequestDispatchergetRequestDispatcher(String path) intjakarta.servlet.ServletContextjakarta.servlet.http.HttpSessionjakarta.servlet.http.HttpSessiongetSession(boolean create) Add a header.Add all headers contained within the Map.booleanbooleanbooleanCjeck if this object can be destroyed.booleanbooleanbooleanbooleanbooleanisSecure()booleanisUserInRole(String role) Return a subset of the attributes set on this AtmosphereRequest, set locally by the framework or by an application.voidvoidlogout()static AtmosphereRequestCreate an instance of this class without an associatedHttpServletRequest.queryString(String qs) Set the query string.voidremoveAttribute(String name) requestURI(String requestURI) resource()TheAtmosphereResourceassociated with this request.servletPath(String servletPath) voidsetAttribute(String s, Object o) voidvoidsetRequest(jakarta.servlet.ServletRequest request) jakarta.servlet.AsyncContextjakarta.servlet.AsyncContextstartAsync(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response) toString()uuid()Return the underlyingAtmosphereResource.uuid().static AtmosphereRequestwrap(jakarta.servlet.http.HttpServletRequest request) Wrap anHttpServletRequest.jakarta.servlet.http.HttpServletRequestMethods inherited from class jakarta.servlet.http.HttpServletRequestWrapper
changeSessionId, getHttpServletMapping, getTrailerFields, isTrailerFieldsReady, newPushBuilder, upgradeMethods inherited from class jakarta.servlet.ServletRequestWrapper
getContentLengthLong, getRequest, isWrapperFor, isWrapperForMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.servlet.http.HttpServletRequest
changeSessionId, getHttpServletMapping, getTrailerFields, isTrailerFieldsReady, newPushBuilder, upgradeMethods inherited from interface jakarta.servlet.ServletRequest
getContentLengthLong
-
Method Details
-
destroyed
public boolean destroyed()- Specified by:
destroyedin interfaceAtmosphereRequest
-
destroyable
- Specified by:
destroyablein interfaceAtmosphereRequest
-
getPathInfo
Description copied from interface:AtmosphereRequest- Specified by:
getPathInfoin interfaceAtmosphereRequest- Specified by:
getPathInfoin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getPathInfoin classjakarta.servlet.http.HttpServletRequestWrapper
-
getPathTranslated
Description copied from interface:AtmosphereRequest- Specified by:
getPathTranslatedin interfaceAtmosphereRequest- Specified by:
getPathTranslatedin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getPathTranslatedin classjakarta.servlet.http.HttpServletRequestWrapper
-
getQueryString
Description copied from interface:AtmosphereRequest- Specified by:
getQueryStringin interfaceAtmosphereRequest- Specified by:
getQueryStringin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getQueryStringin classjakarta.servlet.http.HttpServletRequestWrapper
-
getRemoteUser
Description copied from interface:AtmosphereRequest- Specified by:
getRemoteUserin interfaceAtmosphereRequest- Specified by:
getRemoteUserin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getRemoteUserin classjakarta.servlet.http.HttpServletRequestWrapper
-
getRequestedSessionId
Description copied from interface:AtmosphereRequest- Specified by:
getRequestedSessionIdin interfaceAtmosphereRequest- Specified by:
getRequestedSessionIdin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getRequestedSessionIdin classjakarta.servlet.http.HttpServletRequestWrapper
-
getMethod
Description copied from interface:AtmosphereRequest- Specified by:
getMethodin interfaceAtmosphereRequest- Specified by:
getMethodin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getMethodin classjakarta.servlet.http.HttpServletRequestWrapper
-
getPart
public jakarta.servlet.http.Part getPart(String name) throws IOException, jakarta.servlet.ServletException Description copied from interface:AtmosphereRequest- Specified by:
getPartin interfaceAtmosphereRequest- Specified by:
getPartin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getPartin classjakarta.servlet.http.HttpServletRequestWrapper- Throws:
IOExceptionjakarta.servlet.ServletException
-
getParts
public Collection<jakarta.servlet.http.Part> getParts() throws IOException, jakarta.servlet.ServletExceptionDescription copied from interface:AtmosphereRequest- Specified by:
getPartsin interfaceAtmosphereRequest- Specified by:
getPartsin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getPartsin classjakarta.servlet.http.HttpServletRequestWrapper- Throws:
IOExceptionjakarta.servlet.ServletException
-
getContentType
Description copied from interface:AtmosphereRequest- Specified by:
getContentTypein interfaceAtmosphereRequest- Specified by:
getContentTypein interfacejakarta.servlet.ServletRequest- Overrides:
getContentTypein classjakarta.servlet.ServletRequestWrapper
-
getDispatcherType
public jakarta.servlet.DispatcherType getDispatcherType()Description copied from interface:AtmosphereRequest- Specified by:
getDispatcherTypein interfaceAtmosphereRequest- Specified by:
getDispatcherTypein interfacejakarta.servlet.ServletRequest- Overrides:
getDispatcherTypein classjakarta.servlet.ServletRequestWrapper
-
getServletPath
Description copied from interface:AtmosphereRequest- Specified by:
getServletPathin interfaceAtmosphereRequest- Specified by:
getServletPathin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getServletPathin classjakarta.servlet.http.HttpServletRequestWrapper
-
getRequestURI
Description copied from interface:AtmosphereRequest- Specified by:
getRequestURIin interfaceAtmosphereRequest- Specified by:
getRequestURIin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getRequestURIin classjakarta.servlet.http.HttpServletRequestWrapper
-
getRequestURL
Description copied from interface:AtmosphereRequest- Specified by:
getRequestURLin interfaceAtmosphereRequest- Specified by:
getRequestURLin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getRequestURLin classjakarta.servlet.http.HttpServletRequestWrapper
-
getHeaders
Description copied from interface:AtmosphereRequest- Specified by:
getHeadersin interfaceAtmosphereRequest- Specified by:
getHeadersin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getHeadersin classjakarta.servlet.http.HttpServletRequestWrapper
-
getIntHeader
Description copied from interface:AtmosphereRequest- Specified by:
getIntHeaderin interfaceAtmosphereRequest- Specified by:
getIntHeaderin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getIntHeaderin classjakarta.servlet.http.HttpServletRequestWrapper
-
getHeaderNames
Description copied from interface:AtmosphereRequest- Specified by:
getHeaderNamesin interfaceAtmosphereRequest- Specified by:
getHeaderNamesin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getHeaderNamesin classjakarta.servlet.http.HttpServletRequestWrapper
-
authenticate
public boolean authenticate(jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException Description copied from interface:AtmosphereRequest- Specified by:
authenticatein interfaceAtmosphereRequest- Specified by:
authenticatein interfacejakarta.servlet.http.HttpServletRequest- Overrides:
authenticatein classjakarta.servlet.http.HttpServletRequestWrapper- Throws:
IOExceptionjakarta.servlet.ServletException
-
getAuthType
Description copied from interface:AtmosphereRequest- Specified by:
getAuthTypein interfaceAtmosphereRequest- Specified by:
getAuthTypein interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getAuthTypein classjakarta.servlet.http.HttpServletRequestWrapper
-
getContextPath
Description copied from interface:AtmosphereRequest- Specified by:
getContextPathin interfaceAtmosphereRequest- Specified by:
getContextPathin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getContextPathin classjakarta.servlet.http.HttpServletRequestWrapper
-
getCookies
public jakarta.servlet.http.Cookie[] getCookies()Description copied from interface:AtmosphereRequest- Specified by:
getCookiesin interfaceAtmosphereRequest- Specified by:
getCookiesin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getCookiesin classjakarta.servlet.http.HttpServletRequestWrapper
-
getDateHeader
Description copied from interface:AtmosphereRequest- Specified by:
getDateHeaderin interfaceAtmosphereRequest- Specified by:
getDateHeaderin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getDateHeaderin classjakarta.servlet.http.HttpServletRequestWrapper
-
getHeader
Description copied from interface:AtmosphereRequest- Specified by:
getHeaderin interfaceAtmosphereRequest- Specified by:
getHeaderin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getHeaderin classjakarta.servlet.http.HttpServletRequestWrapper
-
wrappedRequest
public jakarta.servlet.http.HttpServletRequest wrappedRequest()- Specified by:
wrappedRequestin interfaceAtmosphereRequest
-
getHeader
- Specified by:
getHeaderin interfaceAtmosphereRequest
-
getParameter
Description copied from interface:AtmosphereRequest- Specified by:
getParameterin interfaceAtmosphereRequest- Specified by:
getParameterin interfacejakarta.servlet.ServletRequest- Overrides:
getParameterin classjakarta.servlet.ServletRequestWrapper
-
getParameterMap
Description copied from interface:AtmosphereRequest- Specified by:
getParameterMapin interfaceAtmosphereRequest- Specified by:
getParameterMapin interfacejakarta.servlet.ServletRequest- Overrides:
getParameterMapin classjakarta.servlet.ServletRequestWrapper
-
getParameterNames
Description copied from interface:AtmosphereRequest- Specified by:
getParameterNamesin interfaceAtmosphereRequest- Specified by:
getParameterNamesin interfacejakarta.servlet.ServletRequest- Overrides:
getParameterNamesin classjakarta.servlet.ServletRequestWrapper
-
getParameterValues
Description copied from interface:AtmosphereRequest- Specified by:
getParameterValuesin interfaceAtmosphereRequest- Specified by:
getParameterValuesin interfacejakarta.servlet.ServletRequest- Overrides:
getParameterValuesin classjakarta.servlet.ServletRequestWrapper
-
getProtocol
Description copied from interface:AtmosphereRequest- Specified by:
getProtocolin interfaceAtmosphereRequest- Specified by:
getProtocolin interfacejakarta.servlet.ServletRequest- Overrides:
getProtocolin classjakarta.servlet.ServletRequestWrapper
-
getInputStream
Description copied from interface:AtmosphereRequest- Specified by:
getInputStreamin interfaceAtmosphereRequest- Specified by:
getInputStreamin interfacejakarta.servlet.ServletRequest- Overrides:
getInputStreamin classjakarta.servlet.ServletRequestWrapper- Throws:
IOException
-
getReader
Description copied from interface:AtmosphereRequest- Specified by:
getReaderin interfaceAtmosphereRequest- Specified by:
getReaderin interfacejakarta.servlet.ServletRequest- Overrides:
getReaderin classjakarta.servlet.ServletRequestWrapper- Throws:
IOException
-
getRealPath
Description copied from interface:AtmosphereRequest- Specified by:
getRealPathin interfaceAtmosphereRequest- Specified by:
getRealPathin interfacejakarta.servlet.ServletRequest- Overrides:
getRealPathin classjakarta.servlet.ServletRequestWrapper
-
headers
Description copied from interface:AtmosphereRequestAdd all headers contained within the Map.- Specified by:
headersin interfaceAtmosphereRequest- Parameters:
headers-- Returns:
- this;
-
header
Description copied from interface:AtmosphereRequestAdd a header.- Specified by:
headerin interfaceAtmosphereRequest- Parameters:
name-value-- Returns:
- this
-
queryString
Description copied from interface:AtmosphereRequestSet the query string.- Specified by:
queryStringin interfaceAtmosphereRequest- Parameters:
qs-- Returns:
- this
-
headersMap
- Specified by:
headersMapin interfaceAtmosphereRequest
-
queryStringsMap
- Specified by:
queryStringsMapin interfaceAtmosphereRequest
-
method
- Specified by:
methodin interfaceAtmosphereRequest
-
contentType
- Specified by:
contentTypein interfaceAtmosphereRequest
-
body
- Specified by:
bodyin interfaceAtmosphereRequest
-
body
- Specified by:
bodyin interfaceAtmosphereRequest
-
body
- Specified by:
bodyin interfaceAtmosphereRequest
-
body
- Specified by:
bodyin interfaceAtmosphereRequest
-
body
Description copied from interface:AtmosphereRequestReturn the request's body. This method will return an empty Body if the underlying container or framework is using InputStream or Reader.- Specified by:
bodyin interfaceAtmosphereRequest- Returns:
- the request body;
-
servletPath
- Specified by:
servletPathin interfaceAtmosphereRequest
-
contextPath
- Specified by:
contextPathin interfaceAtmosphereRequest
-
requestURI
- Specified by:
requestURIin interfaceAtmosphereRequest
-
setAttribute
Description copied from interface:AtmosphereRequest- Specified by:
setAttributein interfaceAtmosphereRequest- Specified by:
setAttributein interfacejakarta.servlet.ServletRequest- Overrides:
setAttributein classjakarta.servlet.ServletRequestWrapper
-
setCharacterEncoding
Description copied from interface:AtmosphereRequest- Specified by:
setCharacterEncodingin interfaceAtmosphereRequest- Specified by:
setCharacterEncodingin interfacejakarta.servlet.ServletRequest- Overrides:
setCharacterEncodingin classjakarta.servlet.ServletRequestWrapper- Throws:
UnsupportedEncodingException
-
startAsync
public jakarta.servlet.AsyncContext startAsync()Description copied from interface:AtmosphereRequest- Specified by:
startAsyncin interfaceAtmosphereRequest- Specified by:
startAsyncin interfacejakarta.servlet.ServletRequest- Overrides:
startAsyncin classjakarta.servlet.ServletRequestWrapper
-
startAsync
public jakarta.servlet.AsyncContext startAsync(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response) Description copied from interface:AtmosphereRequest- Specified by:
startAsyncin interfaceAtmosphereRequest- Specified by:
startAsyncin interfacejakarta.servlet.ServletRequest- Overrides:
startAsyncin classjakarta.servlet.ServletRequestWrapper
-
getAsyncContext
public jakarta.servlet.AsyncContext getAsyncContext()Description copied from interface:AtmosphereRequest- Specified by:
getAsyncContextin interfaceAtmosphereRequest- Specified by:
getAsyncContextin interfacejakarta.servlet.ServletRequest- Overrides:
getAsyncContextin classjakarta.servlet.ServletRequestWrapper
-
getAttribute
Description copied from interface:AtmosphereRequest- Specified by:
getAttributein interfaceAtmosphereRequest- Specified by:
getAttributein interfacejakarta.servlet.ServletRequest- Overrides:
getAttributein classjakarta.servlet.ServletRequestWrapper
-
removeAttribute
Description copied from interface:AtmosphereRequest- Specified by:
removeAttributein interfaceAtmosphereRequest- Specified by:
removeAttributein interfacejakarta.servlet.ServletRequest- Overrides:
removeAttributein classjakarta.servlet.ServletRequestWrapper
-
attributes
Description copied from interface:AtmosphereRequestReturn the locally added attributes.- Specified by:
attributesin interfaceAtmosphereRequest- Returns:
- the locally added attributes
-
getSession
public jakarta.servlet.http.HttpSession getSession()Description copied from interface:AtmosphereRequest- Specified by:
getSessionin interfaceAtmosphereRequest- Specified by:
getSessionin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getSessionin classjakarta.servlet.http.HttpServletRequestWrapper
-
getSession
public jakarta.servlet.http.HttpSession getSession(boolean create) Description copied from interface:AtmosphereRequest- Specified by:
getSessionin interfaceAtmosphereRequest- Specified by:
getSessionin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getSessionin classjakarta.servlet.http.HttpServletRequestWrapper
-
getUserPrincipal
Description copied from interface:AtmosphereRequest- Specified by:
getUserPrincipalin interfaceAtmosphereRequest- Specified by:
getUserPrincipalin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getUserPrincipalin classjakarta.servlet.http.HttpServletRequestWrapper
-
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()Description copied from interface:AtmosphereRequest- Specified by:
isRequestedSessionIdFromCookiein interfaceAtmosphereRequest- Specified by:
isRequestedSessionIdFromCookiein interfacejakarta.servlet.http.HttpServletRequest- Overrides:
isRequestedSessionIdFromCookiein classjakarta.servlet.http.HttpServletRequestWrapper
-
isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()Description copied from interface:AtmosphereRequest- Specified by:
isRequestedSessionIdFromUrlin interfaceAtmosphereRequest- Specified by:
isRequestedSessionIdFromUrlin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
isRequestedSessionIdFromUrlin classjakarta.servlet.http.HttpServletRequestWrapper
-
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()Description copied from interface:AtmosphereRequest- Specified by:
isRequestedSessionIdFromURLin interfaceAtmosphereRequest- Specified by:
isRequestedSessionIdFromURLin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
isRequestedSessionIdFromURLin classjakarta.servlet.http.HttpServletRequestWrapper
-
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()Description copied from interface:AtmosphereRequest- Specified by:
isRequestedSessionIdValidin interfaceAtmosphereRequest- Specified by:
isRequestedSessionIdValidin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
isRequestedSessionIdValidin classjakarta.servlet.http.HttpServletRequestWrapper
-
isUserInRole
Description copied from interface:AtmosphereRequest- Specified by:
isUserInRolein interfaceAtmosphereRequest- Specified by:
isUserInRolein interfacejakarta.servlet.http.HttpServletRequest- Overrides:
isUserInRolein classjakarta.servlet.http.HttpServletRequestWrapper
-
login
Description copied from interface:AtmosphereRequest- Specified by:
loginin interfaceAtmosphereRequest- Specified by:
loginin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
loginin classjakarta.servlet.http.HttpServletRequestWrapper- Throws:
jakarta.servlet.ServletException
-
logout
public void logout() throws jakarta.servlet.ServletExceptionDescription copied from interface:AtmosphereRequest- Specified by:
logoutin interfaceAtmosphereRequest- Specified by:
logoutin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
logoutin classjakarta.servlet.http.HttpServletRequestWrapper- Throws:
jakarta.servlet.ServletException
-
getRemoteAddr
Description copied from interface:AtmosphereRequest- Specified by:
getRemoteAddrin interfaceAtmosphereRequest- Specified by:
getRemoteAddrin interfacejakarta.servlet.ServletRequest- Overrides:
getRemoteAddrin classjakarta.servlet.ServletRequestWrapper
-
getRemoteHost
Description copied from interface:AtmosphereRequest- Specified by:
getRemoteHostin interfaceAtmosphereRequest- Specified by:
getRemoteHostin interfacejakarta.servlet.ServletRequest- Overrides:
getRemoteHostin classjakarta.servlet.ServletRequestWrapper
-
getRemotePort
public int getRemotePort()Description copied from interface:AtmosphereRequest- Specified by:
getRemotePortin interfaceAtmosphereRequest- Specified by:
getRemotePortin interfacejakarta.servlet.ServletRequest- Overrides:
getRemotePortin classjakarta.servlet.ServletRequestWrapper
-
getRequestDispatcher
Description copied from interface:AtmosphereRequest- Specified by:
getRequestDispatcherin interfaceAtmosphereRequest- Specified by:
getRequestDispatcherin interfacejakarta.servlet.ServletRequest- Overrides:
getRequestDispatcherin classjakarta.servlet.ServletRequestWrapper
-
getScheme
Description copied from interface:AtmosphereRequest- Specified by:
getSchemein interfaceAtmosphereRequest- Specified by:
getSchemein interfacejakarta.servlet.ServletRequest- Overrides:
getSchemein classjakarta.servlet.ServletRequestWrapper
-
getServerName
Description copied from interface:AtmosphereRequest- Specified by:
getServerNamein interfaceAtmosphereRequest- Specified by:
getServerNamein interfacejakarta.servlet.ServletRequest- Overrides:
getServerNamein classjakarta.servlet.ServletRequestWrapper
-
getServerPort
public int getServerPort()Description copied from interface:AtmosphereRequest- Specified by:
getServerPortin interfaceAtmosphereRequest- Specified by:
getServerPortin interfacejakarta.servlet.ServletRequest- Overrides:
getServerPortin classjakarta.servlet.ServletRequestWrapper
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()Description copied from interface:AtmosphereRequest- Specified by:
getServletContextin interfaceAtmosphereRequest- Specified by:
getServletContextin interfacejakarta.servlet.ServletRequest- Overrides:
getServletContextin classjakarta.servlet.ServletRequestWrapper
-
isAsyncStarted
public boolean isAsyncStarted()Description copied from interface:AtmosphereRequest- Specified by:
isAsyncStartedin interfaceAtmosphereRequest- Specified by:
isAsyncStartedin interfacejakarta.servlet.ServletRequest- Overrides:
isAsyncStartedin classjakarta.servlet.ServletRequestWrapper
-
isAsyncSupported
public boolean isAsyncSupported()Description copied from interface:AtmosphereRequest- Specified by:
isAsyncSupportedin interfaceAtmosphereRequest- Specified by:
isAsyncSupportedin interfacejakarta.servlet.ServletRequest- Overrides:
isAsyncSupportedin classjakarta.servlet.ServletRequestWrapper
-
isSecure
public boolean isSecure()Description copied from interface:AtmosphereRequest- Specified by:
isSecurein interfaceAtmosphereRequest- Specified by:
isSecurein interfacejakarta.servlet.ServletRequest- Overrides:
isSecurein classjakarta.servlet.ServletRequestWrapper
-
getLocalName
Description copied from interface:AtmosphereRequest- Specified by:
getLocalNamein interfaceAtmosphereRequest- Specified by:
getLocalNamein interfacejakarta.servlet.ServletRequest- Overrides:
getLocalNamein classjakarta.servlet.ServletRequestWrapper
-
getLocalPort
public int getLocalPort()Description copied from interface:AtmosphereRequest- Specified by:
getLocalPortin interfaceAtmosphereRequest- Specified by:
getLocalPortin interfacejakarta.servlet.ServletRequest- Overrides:
getLocalPortin classjakarta.servlet.ServletRequestWrapper
-
getLocalAddr
Description copied from interface:AtmosphereRequest- Specified by:
getLocalAddrin interfaceAtmosphereRequest- Specified by:
getLocalAddrin interfacejakarta.servlet.ServletRequest- Overrides:
getLocalAddrin classjakarta.servlet.ServletRequestWrapper
-
getLocale
Description copied from interface:AtmosphereRequest- Specified by:
getLocalein interfaceAtmosphereRequest- Specified by:
getLocalein interfacejakarta.servlet.ServletRequest- Overrides:
getLocalein classjakarta.servlet.ServletRequestWrapper
-
resource
Description copied from interface:AtmosphereRequestTheAtmosphereResourceassociated with this request.- Specified by:
resourcein interfaceAtmosphereRequest- Returns:
- an
AtmosphereResource
-
getLocales
Description copied from interface:AtmosphereRequest- Specified by:
getLocalesin interfaceAtmosphereRequest- Specified by:
getLocalesin interfacejakarta.servlet.ServletRequest- Overrides:
getLocalesin classjakarta.servlet.ServletRequestWrapper
-
dispatchRequestAsynchronously
public boolean dispatchRequestAsynchronously()Description copied from interface:AtmosphereRequestDispatch the request asynchronously to container. The default is false.- Specified by:
dispatchRequestAsynchronouslyin interfaceAtmosphereRequest- Returns:
- true to dispatch the request asynchronously to container.
-
isDestroyable
public boolean isDestroyable()Description copied from interface:AtmosphereRequestCjeck if this object can be destroyed. Default is true.- Specified by:
isDestroyablein interfaceAtmosphereRequest
-
pathInfo
- Specified by:
pathInfoin interfaceAtmosphereRequest
-
getAttributeNames
Description copied from interface:AtmosphereRequest- Specified by:
getAttributeNamesin interfaceAtmosphereRequest- Specified by:
getAttributeNamesin interfacejakarta.servlet.ServletRequest- Overrides:
getAttributeNamesin classjakarta.servlet.ServletRequestWrapper
-
localAttributes
Description copied from interface:AtmosphereRequestReturn a subset of the attributes set on this AtmosphereRequest, set locally by the framework or by an application. Attributes added using this method won't be propagated to the original, container-only, native request object.- Specified by:
localAttributesin interfaceAtmosphereRequest- Returns:
- a
-
getCharacterEncoding
Description copied from interface:AtmosphereRequest- Specified by:
getCharacterEncodingin interfaceAtmosphereRequest- Specified by:
getCharacterEncodingin interfacejakarta.servlet.ServletRequest- Overrides:
getCharacterEncodingin classjakarta.servlet.ServletRequestWrapper
-
getContentLength
public int getContentLength()Description copied from interface:AtmosphereRequest- Specified by:
getContentLengthin interfaceAtmosphereRequest- Specified by:
getContentLengthin interfacejakarta.servlet.ServletRequest- Overrides:
getContentLengthin classjakarta.servlet.ServletRequestWrapper
-
uuid
Description copied from interface:AtmosphereRequestReturn the underlyingAtmosphereResource.uuid(). May return "0" if noAtmosphereResourceis associated with this object.- Specified by:
uuidin interfaceAtmosphereRequest- Returns:
- the underlying
AtmosphereResource.uuid()
-
destroy
public void destroy()- Specified by:
destroyin interfaceAtmosphereRequest
-
destroy
public void destroy(boolean force) - Specified by:
destroyin interfaceAtmosphereRequest
-
setRequest
public void setRequest(jakarta.servlet.ServletRequest request) Description copied from interface:AtmosphereRequest- Specified by:
setRequestin interfaceAtmosphereRequest- Overrides:
setRequestin classjakarta.servlet.ServletRequestWrapper
-
newInstance
Create an instance of this class without an associatedHttpServletRequest.- Returns:
- an instance of this class without an associated
HttpServletRequest
-
wrap
Wrap anHttpServletRequest.- Parameters:
request-HttpServletRequest- Returns:
- an
AtmosphereRequest
-
cloneRequest
public static AtmosphereRequest cloneRequest(jakarta.servlet.http.HttpServletRequest request, boolean loadInMemory, boolean copySession, boolean isDestroyable, boolean createSession) Copy the HttpServletRequest content inside an AtmosphereRequest. By default the returned AtmosphereRequest is not destroyable.- Parameters:
request-HttpServletRequest- Returns:
- an
AtmosphereRequest
-
toString
- Specified by:
toStringin interfaceAtmosphereRequest- Overrides:
toStringin classObject
-
requestURL
- Specified by:
requestURLin interfaceAtmosphereRequest
-