public class AtmosphereRequestImpl extends jakarta.servlet.http.HttpServletRequestWrapper implements AtmosphereRequest
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
AtmosphereRequestImpl.Body |
static class |
AtmosphereRequestImpl.Builder |
static class |
AtmosphereRequestImpl.LazyComputation |
static class |
AtmosphereRequestImpl.NoOpsRequest |
AtmosphereRequest.LocalAttributeschangeSessionId, getHttpServletMapping, getTrailerFields, isTrailerFieldsReady, newPushBuilder, upgradegetContentLengthLong, getRequest, isWrapperFor, isWrapperForclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic boolean destroyed()
destroyed in interface AtmosphereRequestpublic AtmosphereRequest destroyable(boolean destroyable)
destroyable in interface AtmosphereRequestpublic String getPathInfo()
AtmosphereRequestgetPathInfo in interface jakarta.servlet.http.HttpServletRequestgetPathInfo in interface AtmosphereRequestgetPathInfo in class jakarta.servlet.http.HttpServletRequestWrapperpublic String getPathTranslated()
AtmosphereRequestgetPathTranslated in interface jakarta.servlet.http.HttpServletRequestgetPathTranslated in interface AtmosphereRequestgetPathTranslated in class jakarta.servlet.http.HttpServletRequestWrapperpublic String getQueryString()
AtmosphereRequestgetQueryString in interface jakarta.servlet.http.HttpServletRequestgetQueryString in interface AtmosphereRequestgetQueryString in class jakarta.servlet.http.HttpServletRequestWrapperpublic String getRemoteUser()
AtmosphereRequestgetRemoteUser in interface jakarta.servlet.http.HttpServletRequestgetRemoteUser in interface AtmosphereRequestgetRemoteUser in class jakarta.servlet.http.HttpServletRequestWrapperpublic String getRequestedSessionId()
AtmosphereRequestgetRequestedSessionId in interface jakarta.servlet.http.HttpServletRequestgetRequestedSessionId in interface AtmosphereRequestgetRequestedSessionId in class jakarta.servlet.http.HttpServletRequestWrapperpublic String getMethod()
AtmosphereRequestgetMethod in interface jakarta.servlet.http.HttpServletRequestgetMethod in interface AtmosphereRequestgetMethod in class jakarta.servlet.http.HttpServletRequestWrapperpublic jakarta.servlet.http.Part getPart(String name) throws IOException, jakarta.servlet.ServletException
AtmosphereRequestgetPart in interface jakarta.servlet.http.HttpServletRequestgetPart in interface AtmosphereRequestgetPart in class jakarta.servlet.http.HttpServletRequestWrapperIOExceptionjakarta.servlet.ServletExceptionpublic Collection<jakarta.servlet.http.Part> getParts() throws IOException, jakarta.servlet.ServletException
AtmosphereRequestgetParts in interface jakarta.servlet.http.HttpServletRequestgetParts in interface AtmosphereRequestgetParts in class jakarta.servlet.http.HttpServletRequestWrapperIOExceptionjakarta.servlet.ServletExceptionpublic String getContentType()
AtmosphereRequestgetContentType in interface jakarta.servlet.ServletRequestgetContentType in interface AtmosphereRequestgetContentType in class jakarta.servlet.ServletRequestWrapperpublic jakarta.servlet.DispatcherType getDispatcherType()
AtmosphereRequestgetDispatcherType in interface jakarta.servlet.ServletRequestgetDispatcherType in interface AtmosphereRequestgetDispatcherType in class jakarta.servlet.ServletRequestWrapperpublic String getServletPath()
AtmosphereRequestgetServletPath in interface jakarta.servlet.http.HttpServletRequestgetServletPath in interface AtmosphereRequestgetServletPath in class jakarta.servlet.http.HttpServletRequestWrapperpublic String getRequestURI()
AtmosphereRequestgetRequestURI in interface jakarta.servlet.http.HttpServletRequestgetRequestURI in interface AtmosphereRequestgetRequestURI in class jakarta.servlet.http.HttpServletRequestWrapperpublic StringBuffer getRequestURL()
AtmosphereRequestgetRequestURL in interface jakarta.servlet.http.HttpServletRequestgetRequestURL in interface AtmosphereRequestgetRequestURL in class jakarta.servlet.http.HttpServletRequestWrapperpublic Enumeration getHeaders(String name)
AtmosphereRequestgetHeaders in interface jakarta.servlet.http.HttpServletRequestgetHeaders in interface AtmosphereRequestgetHeaders in class jakarta.servlet.http.HttpServletRequestWrapperpublic int getIntHeader(String name)
AtmosphereRequestgetIntHeader in interface jakarta.servlet.http.HttpServletRequestgetIntHeader in interface AtmosphereRequestgetIntHeader in class jakarta.servlet.http.HttpServletRequestWrapperpublic Enumeration<String> getHeaderNames()
AtmosphereRequestgetHeaderNames in interface jakarta.servlet.http.HttpServletRequestgetHeaderNames in interface AtmosphereRequestgetHeaderNames in class jakarta.servlet.http.HttpServletRequestWrapperpublic boolean authenticate(jakarta.servlet.http.HttpServletResponse response)
throws IOException,
jakarta.servlet.ServletException
AtmosphereRequestauthenticate in interface jakarta.servlet.http.HttpServletRequestauthenticate in interface AtmosphereRequestauthenticate in class jakarta.servlet.http.HttpServletRequestWrapperIOExceptionjakarta.servlet.ServletExceptionpublic String getAuthType()
AtmosphereRequestgetAuthType in interface jakarta.servlet.http.HttpServletRequestgetAuthType in interface AtmosphereRequestgetAuthType in class jakarta.servlet.http.HttpServletRequestWrapperpublic String getContextPath()
AtmosphereRequestgetContextPath in interface jakarta.servlet.http.HttpServletRequestgetContextPath in interface AtmosphereRequestgetContextPath in class jakarta.servlet.http.HttpServletRequestWrapperpublic jakarta.servlet.http.Cookie[] getCookies()
AtmosphereRequestgetCookies in interface jakarta.servlet.http.HttpServletRequestgetCookies in interface AtmosphereRequestgetCookies in class jakarta.servlet.http.HttpServletRequestWrapperpublic long getDateHeader(String name)
AtmosphereRequestgetDateHeader in interface jakarta.servlet.http.HttpServletRequestgetDateHeader in interface AtmosphereRequestgetDateHeader in class jakarta.servlet.http.HttpServletRequestWrapperpublic String getHeader(String s)
AtmosphereRequestgetHeader in interface jakarta.servlet.http.HttpServletRequestgetHeader in interface AtmosphereRequestgetHeader in class jakarta.servlet.http.HttpServletRequestWrapperpublic jakarta.servlet.http.HttpServletRequest wrappedRequest()
wrappedRequest in interface AtmosphereRequestpublic String getHeader(String s, boolean checkCase)
getHeader in interface AtmosphereRequestpublic String getParameter(String s)
AtmosphereRequestgetParameter in interface jakarta.servlet.ServletRequestgetParameter in interface AtmosphereRequestgetParameter in class jakarta.servlet.ServletRequestWrapperpublic Map<String,String[]> getParameterMap()
AtmosphereRequestgetParameterMap in interface jakarta.servlet.ServletRequestgetParameterMap in interface AtmosphereRequestgetParameterMap in class jakarta.servlet.ServletRequestWrapperpublic Enumeration<String> getParameterNames()
AtmosphereRequestgetParameterNames in interface jakarta.servlet.ServletRequestgetParameterNames in interface AtmosphereRequestgetParameterNames in class jakarta.servlet.ServletRequestWrapperpublic String[] getParameterValues(String s)
AtmosphereRequestgetParameterValues in interface jakarta.servlet.ServletRequestgetParameterValues in interface AtmosphereRequestgetParameterValues in class jakarta.servlet.ServletRequestWrapperpublic String getProtocol()
AtmosphereRequestgetProtocol in interface jakarta.servlet.ServletRequestgetProtocol in interface AtmosphereRequestgetProtocol in class jakarta.servlet.ServletRequestWrapperpublic jakarta.servlet.ServletInputStream getInputStream()
throws IOException
AtmosphereRequestgetInputStream in interface jakarta.servlet.ServletRequestgetInputStream in interface AtmosphereRequestgetInputStream in class jakarta.servlet.ServletRequestWrapperIOExceptionpublic BufferedReader getReader() throws IOException
AtmosphereRequestgetReader in interface jakarta.servlet.ServletRequestgetReader in interface AtmosphereRequestgetReader in class jakarta.servlet.ServletRequestWrapperIOExceptionpublic String getRealPath(String path)
AtmosphereRequestgetRealPath in interface jakarta.servlet.ServletRequestgetRealPath in interface AtmosphereRequestgetRealPath in class jakarta.servlet.ServletRequestWrapperpublic AtmosphereRequest headers(Map<String,String> headers)
AtmosphereRequestheaders in interface AtmosphereRequestpublic AtmosphereRequest header(String name, String value)
AtmosphereRequestheader in interface AtmosphereRequestpublic AtmosphereRequest queryString(String qs)
AtmosphereRequestqueryString in interface AtmosphereRequestpublic Map<String,String> headersMap()
headersMap in interface AtmosphereRequestpublic Map<String,String[]> queryStringsMap()
queryStringsMap in interface AtmosphereRequestpublic AtmosphereRequest method(String m)
method in interface AtmosphereRequestpublic AtmosphereRequest contentType(String m)
contentType in interface AtmosphereRequestpublic AtmosphereRequest body(String body)
body in interface AtmosphereRequestpublic AtmosphereRequest body(byte[] bytes)
body in interface AtmosphereRequestpublic AtmosphereRequest body(InputStream body)
body in interface AtmosphereRequestpublic AtmosphereRequest body(Reader body)
body in interface AtmosphereRequestpublic AtmosphereRequestImpl.Body body()
AtmosphereRequestbody in interface AtmosphereRequestpublic AtmosphereRequest servletPath(String servletPath)
servletPath in interface AtmosphereRequestpublic AtmosphereRequest contextPath(String contextPath)
contextPath in interface AtmosphereRequestpublic AtmosphereRequest requestURI(String requestURI)
requestURI in interface AtmosphereRequestpublic void setAttribute(String s, Object o)
AtmosphereRequestsetAttribute in interface jakarta.servlet.ServletRequestsetAttribute in interface AtmosphereRequestsetAttribute in class jakarta.servlet.ServletRequestWrapperpublic void setCharacterEncoding(String env) throws UnsupportedEncodingException
AtmosphereRequestsetCharacterEncoding in interface jakarta.servlet.ServletRequestsetCharacterEncoding in interface AtmosphereRequestsetCharacterEncoding in class jakarta.servlet.ServletRequestWrapperUnsupportedEncodingExceptionpublic jakarta.servlet.AsyncContext startAsync()
AtmosphereRequeststartAsync in interface jakarta.servlet.ServletRequeststartAsync in interface AtmosphereRequeststartAsync in class jakarta.servlet.ServletRequestWrapperpublic jakarta.servlet.AsyncContext startAsync(jakarta.servlet.ServletRequest request,
jakarta.servlet.ServletResponse response)
AtmosphereRequeststartAsync in interface jakarta.servlet.ServletRequeststartAsync in interface AtmosphereRequeststartAsync in class jakarta.servlet.ServletRequestWrapperpublic jakarta.servlet.AsyncContext getAsyncContext()
AtmosphereRequestgetAsyncContext in interface jakarta.servlet.ServletRequestgetAsyncContext in interface AtmosphereRequestgetAsyncContext in class jakarta.servlet.ServletRequestWrapperpublic Object getAttribute(String s)
AtmosphereRequestgetAttribute in interface jakarta.servlet.ServletRequestgetAttribute in interface AtmosphereRequestgetAttribute in class jakarta.servlet.ServletRequestWrapperpublic void removeAttribute(String name)
AtmosphereRequestremoveAttribute in interface jakarta.servlet.ServletRequestremoveAttribute in interface AtmosphereRequestremoveAttribute in class jakarta.servlet.ServletRequestWrapperpublic AtmosphereRequest.LocalAttributes attributes()
AtmosphereRequestattributes in interface AtmosphereRequestpublic jakarta.servlet.http.HttpSession getSession()
AtmosphereRequestgetSession in interface jakarta.servlet.http.HttpServletRequestgetSession in interface AtmosphereRequestgetSession in class jakarta.servlet.http.HttpServletRequestWrapperpublic jakarta.servlet.http.HttpSession getSession(boolean create)
AtmosphereRequestgetSession in interface jakarta.servlet.http.HttpServletRequestgetSession in interface AtmosphereRequestgetSession in class jakarta.servlet.http.HttpServletRequestWrapperpublic Principal getUserPrincipal()
AtmosphereRequestgetUserPrincipal in interface jakarta.servlet.http.HttpServletRequestgetUserPrincipal in interface AtmosphereRequestgetUserPrincipal in class jakarta.servlet.http.HttpServletRequestWrapperpublic boolean isRequestedSessionIdFromCookie()
AtmosphereRequestisRequestedSessionIdFromCookie in interface jakarta.servlet.http.HttpServletRequestisRequestedSessionIdFromCookie in interface AtmosphereRequestisRequestedSessionIdFromCookie in class jakarta.servlet.http.HttpServletRequestWrapperpublic boolean isRequestedSessionIdFromUrl()
AtmosphereRequestisRequestedSessionIdFromUrl in interface jakarta.servlet.http.HttpServletRequestisRequestedSessionIdFromUrl in interface AtmosphereRequestisRequestedSessionIdFromUrl in class jakarta.servlet.http.HttpServletRequestWrapperpublic boolean isRequestedSessionIdFromURL()
AtmosphereRequestisRequestedSessionIdFromURL in interface jakarta.servlet.http.HttpServletRequestisRequestedSessionIdFromURL in interface AtmosphereRequestisRequestedSessionIdFromURL in class jakarta.servlet.http.HttpServletRequestWrapperpublic boolean isRequestedSessionIdValid()
AtmosphereRequestisRequestedSessionIdValid in interface jakarta.servlet.http.HttpServletRequestisRequestedSessionIdValid in interface AtmosphereRequestisRequestedSessionIdValid in class jakarta.servlet.http.HttpServletRequestWrapperpublic boolean isUserInRole(String role)
AtmosphereRequestisUserInRole in interface jakarta.servlet.http.HttpServletRequestisUserInRole in interface AtmosphereRequestisUserInRole in class jakarta.servlet.http.HttpServletRequestWrapperpublic void login(String username, String password) throws jakarta.servlet.ServletException
AtmosphereRequestlogin in interface jakarta.servlet.http.HttpServletRequestlogin in interface AtmosphereRequestlogin in class jakarta.servlet.http.HttpServletRequestWrapperjakarta.servlet.ServletExceptionpublic void logout()
throws jakarta.servlet.ServletException
AtmosphereRequestlogout in interface jakarta.servlet.http.HttpServletRequestlogout in interface AtmosphereRequestlogout in class jakarta.servlet.http.HttpServletRequestWrapperjakarta.servlet.ServletExceptionpublic String getRemoteAddr()
AtmosphereRequestgetRemoteAddr in interface jakarta.servlet.ServletRequestgetRemoteAddr in interface AtmosphereRequestgetRemoteAddr in class jakarta.servlet.ServletRequestWrapperpublic String getRemoteHost()
AtmosphereRequestgetRemoteHost in interface jakarta.servlet.ServletRequestgetRemoteHost in interface AtmosphereRequestgetRemoteHost in class jakarta.servlet.ServletRequestWrapperpublic int getRemotePort()
AtmosphereRequestgetRemotePort in interface jakarta.servlet.ServletRequestgetRemotePort in interface AtmosphereRequestgetRemotePort in class jakarta.servlet.ServletRequestWrapperpublic jakarta.servlet.RequestDispatcher getRequestDispatcher(String path)
AtmosphereRequestgetRequestDispatcher in interface jakarta.servlet.ServletRequestgetRequestDispatcher in interface AtmosphereRequestgetRequestDispatcher in class jakarta.servlet.ServletRequestWrapperpublic String getScheme()
AtmosphereRequestgetScheme in interface jakarta.servlet.ServletRequestgetScheme in interface AtmosphereRequestgetScheme in class jakarta.servlet.ServletRequestWrapperpublic String getServerName()
AtmosphereRequestgetServerName in interface jakarta.servlet.ServletRequestgetServerName in interface AtmosphereRequestgetServerName in class jakarta.servlet.ServletRequestWrapperpublic int getServerPort()
AtmosphereRequestgetServerPort in interface jakarta.servlet.ServletRequestgetServerPort in interface AtmosphereRequestgetServerPort in class jakarta.servlet.ServletRequestWrapperpublic jakarta.servlet.ServletContext getServletContext()
AtmosphereRequestgetServletContext in interface jakarta.servlet.ServletRequestgetServletContext in interface AtmosphereRequestgetServletContext in class jakarta.servlet.ServletRequestWrapperpublic boolean isAsyncStarted()
AtmosphereRequestisAsyncStarted in interface jakarta.servlet.ServletRequestisAsyncStarted in interface AtmosphereRequestisAsyncStarted in class jakarta.servlet.ServletRequestWrapperpublic boolean isAsyncSupported()
AtmosphereRequestisAsyncSupported in interface jakarta.servlet.ServletRequestisAsyncSupported in interface AtmosphereRequestisAsyncSupported in class jakarta.servlet.ServletRequestWrapperpublic boolean isSecure()
AtmosphereRequestisSecure in interface jakarta.servlet.ServletRequestisSecure in interface AtmosphereRequestisSecure in class jakarta.servlet.ServletRequestWrapperpublic String getLocalName()
AtmosphereRequestgetLocalName in interface jakarta.servlet.ServletRequestgetLocalName in interface AtmosphereRequestgetLocalName in class jakarta.servlet.ServletRequestWrapperpublic int getLocalPort()
AtmosphereRequestgetLocalPort in interface jakarta.servlet.ServletRequestgetLocalPort in interface AtmosphereRequestgetLocalPort in class jakarta.servlet.ServletRequestWrapperpublic String getLocalAddr()
AtmosphereRequestgetLocalAddr in interface jakarta.servlet.ServletRequestgetLocalAddr in interface AtmosphereRequestgetLocalAddr in class jakarta.servlet.ServletRequestWrapperpublic Locale getLocale()
AtmosphereRequestgetLocale in interface jakarta.servlet.ServletRequestgetLocale in interface AtmosphereRequestgetLocale in class jakarta.servlet.ServletRequestWrapperpublic AtmosphereResource resource()
AtmosphereRequestAtmosphereResource associated with this request.resource in interface AtmosphereRequestAtmosphereResourcepublic Enumeration<Locale> getLocales()
AtmosphereRequestgetLocales in interface jakarta.servlet.ServletRequestgetLocales in interface AtmosphereRequestgetLocales in class jakarta.servlet.ServletRequestWrapperpublic boolean dispatchRequestAsynchronously()
AtmosphereRequestdispatchRequestAsynchronously in interface AtmosphereRequestpublic boolean isDestroyable()
AtmosphereRequestisDestroyable in interface AtmosphereRequestpublic AtmosphereRequest pathInfo(String pathInfo)
pathInfo in interface AtmosphereRequestpublic Enumeration<String> getAttributeNames()
AtmosphereRequestgetAttributeNames in interface jakarta.servlet.ServletRequestgetAttributeNames in interface AtmosphereRequestgetAttributeNames in class jakarta.servlet.ServletRequestWrapperpublic AtmosphereRequest.LocalAttributes localAttributes()
AtmosphereRequestlocalAttributes in interface AtmosphereRequestpublic String getCharacterEncoding()
AtmosphereRequestgetCharacterEncoding in interface jakarta.servlet.ServletRequestgetCharacterEncoding in interface AtmosphereRequestgetCharacterEncoding in class jakarta.servlet.ServletRequestWrapperpublic int getContentLength()
AtmosphereRequestgetContentLength in interface jakarta.servlet.ServletRequestgetContentLength in interface AtmosphereRequestgetContentLength in class jakarta.servlet.ServletRequestWrapperpublic String uuid()
AtmosphereRequestAtmosphereResource.uuid(). May return "0" if no AtmosphereResource
is associated with this object.uuid in interface AtmosphereRequestAtmosphereResource.uuid()public void destroy()
destroy in interface AtmosphereRequestpublic void destroy(boolean force)
destroy in interface AtmosphereRequestpublic void setRequest(jakarta.servlet.ServletRequest request)
AtmosphereRequestsetRequest in interface AtmosphereRequestsetRequest in class jakarta.servlet.ServletRequestWrapperpublic static AtmosphereRequest newInstance()
HttpServletRequest.HttpServletRequestpublic static AtmosphereRequest wrap(jakarta.servlet.http.HttpServletRequest request)
HttpServletRequest.request - HttpServletRequestAtmosphereRequestpublic static AtmosphereRequest cloneRequest(jakarta.servlet.http.HttpServletRequest request, boolean loadInMemory, boolean copySession, boolean isDestroyable, boolean createSession)
request - HttpServletRequestAtmosphereRequestpublic String toString()
toString in interface AtmosphereRequesttoString in class Objectpublic String requestURL()
requestURL in interface AtmosphereRequestCopyright © 2024. All rights reserved.