public interface AtmosphereRequest
extends jakarta.servlet.http.HttpServletRequest
AtmosphereRequest is a two-way communication channel between the
client and the server. If the AtmosphereRequestImpl.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 | Interface and Description |
|---|---|
static interface |
AtmosphereRequest.Builder |
static class |
AtmosphereRequest.LocalAttributes |
boolean destroyed()
AtmosphereRequest destroyable(boolean destroyable)
String getPathInfo()
getPathInfo in interface jakarta.servlet.http.HttpServletRequestString getPathTranslated()
getPathTranslated in interface jakarta.servlet.http.HttpServletRequestString getQueryString()
getQueryString in interface jakarta.servlet.http.HttpServletRequestString getRemoteUser()
getRemoteUser in interface jakarta.servlet.http.HttpServletRequestString getRequestedSessionId()
getRequestedSessionId in interface jakarta.servlet.http.HttpServletRequestString getMethod()
getMethod in interface jakarta.servlet.http.HttpServletRequestjakarta.servlet.http.Part getPart(String name) throws IOException, jakarta.servlet.ServletException
getPart in interface jakarta.servlet.http.HttpServletRequestIOExceptionjakarta.servlet.ServletExceptionCollection<jakarta.servlet.http.Part> getParts() throws IOException, jakarta.servlet.ServletException
getParts in interface jakarta.servlet.http.HttpServletRequestIOExceptionjakarta.servlet.ServletExceptionString getContentType()
getContentType in interface jakarta.servlet.ServletRequestjakarta.servlet.DispatcherType getDispatcherType()
getDispatcherType in interface jakarta.servlet.ServletRequestString getServletPath()
getServletPath in interface jakarta.servlet.http.HttpServletRequestString getRequestURI()
getRequestURI in interface jakarta.servlet.http.HttpServletRequestStringBuffer getRequestURL()
getRequestURL in interface jakarta.servlet.http.HttpServletRequestEnumeration getHeaders(String name)
getHeaders in interface jakarta.servlet.http.HttpServletRequestint getIntHeader(String name)
getIntHeader in interface jakarta.servlet.http.HttpServletRequestEnumeration<String> getHeaderNames()
getHeaderNames in interface jakarta.servlet.http.HttpServletRequestboolean authenticate(jakarta.servlet.http.HttpServletResponse response)
throws IOException,
jakarta.servlet.ServletException
authenticate in interface jakarta.servlet.http.HttpServletRequestIOExceptionjakarta.servlet.ServletExceptionString getAuthType()
getAuthType in interface jakarta.servlet.http.HttpServletRequestString getContextPath()
getContextPath in interface jakarta.servlet.http.HttpServletRequestjakarta.servlet.http.Cookie[] getCookies()
getCookies in interface jakarta.servlet.http.HttpServletRequestlong getDateHeader(String name)
getDateHeader in interface jakarta.servlet.http.HttpServletRequestString getHeader(String s)
getHeader in interface jakarta.servlet.http.HttpServletRequestjakarta.servlet.http.HttpServletRequest wrappedRequest()
String getParameter(String s)
getParameter in interface jakarta.servlet.ServletRequestMap<String,String[]> getParameterMap()
getParameterMap in interface jakarta.servlet.ServletRequestEnumeration<String> getParameterNames()
getParameterNames in interface jakarta.servlet.ServletRequestString[] getParameterValues(String s)
getParameterValues in interface jakarta.servlet.ServletRequestString getProtocol()
getProtocol in interface jakarta.servlet.ServletRequestjakarta.servlet.ServletInputStream getInputStream()
throws IOException
getInputStream in interface jakarta.servlet.ServletRequestIOExceptionBufferedReader getReader() throws IOException
getReader in interface jakarta.servlet.ServletRequestIOExceptionString getRealPath(String path)
getRealPath in interface jakarta.servlet.ServletRequestAtmosphereRequest headers(Map<String,String> headers)
headers - AtmosphereRequest header(String name, String value)
name - value - AtmosphereRequest queryString(String qs)
qs - AtmosphereRequest method(String m)
AtmosphereRequest contentType(String m)
AtmosphereRequest body(String body)
AtmosphereRequest body(byte[] bytes)
AtmosphereRequest body(InputStream body)
AtmosphereRequest body(Reader body)
AtmosphereRequestImpl.Body body()
AtmosphereRequest servletPath(String servletPath)
AtmosphereRequest contextPath(String contextPath)
AtmosphereRequest requestURI(String requestURI)
void setAttribute(String s, Object o)
setAttribute in interface jakarta.servlet.ServletRequestvoid setCharacterEncoding(String env) throws UnsupportedEncodingException
setCharacterEncoding in interface jakarta.servlet.ServletRequestUnsupportedEncodingExceptionjakarta.servlet.AsyncContext startAsync()
startAsync in interface jakarta.servlet.ServletRequestjakarta.servlet.AsyncContext startAsync(jakarta.servlet.ServletRequest request,
jakarta.servlet.ServletResponse response)
startAsync in interface jakarta.servlet.ServletRequestjakarta.servlet.AsyncContext getAsyncContext()
getAsyncContext in interface jakarta.servlet.ServletRequestObject getAttribute(String s)
getAttribute in interface jakarta.servlet.ServletRequestvoid removeAttribute(String name)
removeAttribute in interface jakarta.servlet.ServletRequestAtmosphereRequest.LocalAttributes attributes()
localAttributes()jakarta.servlet.http.HttpSession getSession()
getSession in interface jakarta.servlet.http.HttpServletRequestjakarta.servlet.http.HttpSession getSession(boolean create)
getSession in interface jakarta.servlet.http.HttpServletRequestPrincipal getUserPrincipal()
getUserPrincipal in interface jakarta.servlet.http.HttpServletRequestboolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromCookie in interface jakarta.servlet.http.HttpServletRequestboolean isRequestedSessionIdFromUrl()
isRequestedSessionIdFromUrl in interface jakarta.servlet.http.HttpServletRequestboolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromURL in interface jakarta.servlet.http.HttpServletRequestboolean isRequestedSessionIdValid()
isRequestedSessionIdValid in interface jakarta.servlet.http.HttpServletRequestboolean isUserInRole(String role)
isUserInRole in interface jakarta.servlet.http.HttpServletRequestvoid login(String username, String password) throws jakarta.servlet.ServletException
login in interface jakarta.servlet.http.HttpServletRequestjakarta.servlet.ServletExceptionvoid logout()
throws jakarta.servlet.ServletException
logout in interface jakarta.servlet.http.HttpServletRequestjakarta.servlet.ServletExceptionString getRemoteAddr()
getRemoteAddr in interface jakarta.servlet.ServletRequestString getRemoteHost()
getRemoteHost in interface jakarta.servlet.ServletRequestint getRemotePort()
getRemotePort in interface jakarta.servlet.ServletRequestjakarta.servlet.RequestDispatcher getRequestDispatcher(String path)
getRequestDispatcher in interface jakarta.servlet.ServletRequestString getScheme()
getScheme in interface jakarta.servlet.ServletRequestString getServerName()
getServerName in interface jakarta.servlet.ServletRequestint getServerPort()
getServerPort in interface jakarta.servlet.ServletRequestjakarta.servlet.ServletContext getServletContext()
getServletContext in interface jakarta.servlet.ServletRequestboolean isAsyncStarted()
isAsyncStarted in interface jakarta.servlet.ServletRequestboolean isAsyncSupported()
isAsyncSupported in interface jakarta.servlet.ServletRequestboolean isSecure()
isSecure in interface jakarta.servlet.ServletRequestString getLocalName()
getLocalName in interface jakarta.servlet.ServletRequestint getLocalPort()
getLocalPort in interface jakarta.servlet.ServletRequestString getLocalAddr()
getLocalAddr in interface jakarta.servlet.ServletRequestLocale getLocale()
getLocale in interface jakarta.servlet.ServletRequestAtmosphereResource resource()
AtmosphereResource associated with this request.AtmosphereResourceEnumeration<Locale> getLocales()
getLocales in interface jakarta.servlet.ServletRequestboolean dispatchRequestAsynchronously()
boolean isDestroyable()
AtmosphereRequest pathInfo(String pathInfo)
Enumeration<String> getAttributeNames()
getAttributeNames in interface jakarta.servlet.ServletRequestAtmosphereRequest.LocalAttributes localAttributes()
String getCharacterEncoding()
getCharacterEncoding in interface jakarta.servlet.ServletRequestint getContentLength()
getContentLength in interface jakarta.servlet.ServletRequestString uuid()
AtmosphereResource.uuid(). May return "0" if no AtmosphereResource
is associated with this object.AtmosphereResource.uuid()void destroy()
void destroy(boolean force)
void setRequest(jakarta.servlet.ServletRequest request)
String requestURL()
Copyright © 2024. All rights reserved.