public abstract class RealtimeHttpServletRequestWrapper extends Object implements javax.servlet.http.HttpServletRequest
| Constructor and Description |
|---|
RealtimeHttpServletRequestWrapper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(javax.servlet.http.HttpServletResponse response)
Authenticate the request.
|
String |
changeSessionId()
Change the session id.
|
javax.servlet.AsyncContext |
getAsyncContext()
Get the async context.
|
Object |
getAttribute(String name)
Get the attribute.
|
Enumeration<String> |
getAttributeNames()
Get the attribute names.
|
String |
getAuthType()
Get the auth type.
|
String |
getCharacterEncoding()
Get the character encoding.
|
int |
getContentLength()
Get the content length.
|
long |
getContentLengthLong()
Get the content length.
|
String |
getContentType()
Get the content type.
|
String |
getContextPath()
Get the context path.
|
javax.servlet.http.Cookie[] |
getCookies()
Get the cookies.
|
long |
getDateHeader(String name)
Get the date header.
|
javax.servlet.DispatcherType |
getDispatcherType()
Get the dispatcher type.
|
String |
getHeader(String name)
Get the header.
|
Enumeration<String> |
getHeaderNames()
Get the header names.
|
Enumeration<String> |
getHeaders(String name)
Get the headers.
|
javax.servlet.ServletInputStream |
getInputStream()
Get the input stream.
|
int |
getIntHeader(String name)
Get the int header.
|
String |
getLocalAddr()
Get the local address.
|
Locale |
getLocale()
Get the locale.
|
Enumeration<Locale> |
getLocales()
Get the locales.
|
String |
getLocalName()
Get the local name.
|
int |
getLocalPort()
Get the local port.
|
String |
getMethod()
Get the method.
|
String |
getParameter(String name)
Get the parameter.
|
Map<String,String[]> |
getParameterMap()
Get the parameter map.
|
Enumeration<String> |
getParameterNames()
Get the parameter names.
|
String[] |
getParameterValues(String name)
Get the parameter values.
|
javax.servlet.http.Part |
getPart(String name)
Get the part.
|
Collection<javax.servlet.http.Part> |
getParts()
Get the parts.
|
String |
getPathInfo()
Get the path info.
|
String |
getPathTranslated()
Get the path translated.
|
String |
getProtocol()
Get the protocol.
|
String |
getQueryString()
Get the query string.
|
BufferedReader |
getReader()
Get the reader.
|
String |
getRealPath(String path)
Deprecated.
|
String |
getRemoteAddr()
Get the remote address.
|
String |
getRemoteHost()
Get the remote host.
|
int |
getRemotePort()
Get the remote port.
|
String |
getRemoteUser()
Get the remote user.
|
javax.servlet.ServletRequest |
getRequest()
Get the wrapped request.
|
javax.servlet.RequestDispatcher |
getRequestDispatcher(String path)
Get the request dispatcher.
|
String |
getRequestedSessionId()
Get the requested session id.
|
String |
getRequestURI()
Get the request URI.
|
StringBuffer |
getRequestURL()
Get the request URL.
|
String |
getScheme()
Get the scheme.
|
String |
getServerName()
Get the server name.
|
int |
getServerPort()
Get the server port.
|
javax.servlet.ServletContext |
getServletContext()
Get the servlet context.
|
String |
getServletPath()
Get the servlet path.
|
javax.servlet.http.HttpSession |
getSession()
Get the HTTP session.
|
javax.servlet.http.HttpSession |
getSession(boolean create)
Get the HTTP session.
|
Principal |
getUserPrincipal()
Get the user principal.
|
protected abstract javax.servlet.http.HttpServletRequest |
getWrapped()
Get the wrapped request.
|
boolean |
isAsyncStarted()
Is async started.
|
boolean |
isAsyncSupported()
Is async supported.
|
boolean |
isRequestedSessionIdFromCookie()
Is the requested session id from a cookie.
|
boolean |
isRequestedSessionIdFromUrl()
Deprecated.
|
boolean |
isRequestedSessionIdFromURL()
Is the requested session id from a URL.
|
boolean |
isRequestedSessionIdValid()
Is the requested session id valid.
|
boolean |
isSecure()
Is secure.
|
boolean |
isUserInRole(String role)
Is the user in the role.
|
boolean |
isWrapperFor(Class<?> wrappedType)
Are we a wrapper for the given type.
|
boolean |
isWrapperFor(javax.servlet.ServletRequest wrapped)
Is this a wrapper for the given request.
|
void |
login(String username,
String password)
Login.
|
void |
logout()
Logout.
|
void |
removeAttribute(String name)
Remove the attribute.
|
void |
setAttribute(String name,
Object object)
Set the attribute.
|
void |
setCharacterEncoding(String characterEncoding)
Set the character encoding.
|
javax.servlet.AsyncContext |
startAsync()
Start async processing.
|
javax.servlet.AsyncContext |
startAsync(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse)
Start async processing.
|
<T extends javax.servlet.http.HttpUpgradeHandler> |
upgrade(Class<T> handlerClass)
Upgrade the request.
|
public javax.servlet.AsyncContext getAsyncContext()
getAsyncContext in interface javax.servlet.ServletRequestpublic Object getAttribute(String name)
getAttribute in interface javax.servlet.ServletRequestname - the name.public Enumeration<String> getAttributeNames()
getAttributeNames in interface javax.servlet.ServletRequestpublic String getCharacterEncoding()
getCharacterEncoding in interface javax.servlet.ServletRequestpublic int getContentLength()
getContentLength in interface javax.servlet.ServletRequestpublic long getContentLengthLong()
getContentLengthLong in interface javax.servlet.ServletRequestpublic String getContentType()
getContentType in interface javax.servlet.ServletRequestpublic javax.servlet.DispatcherType getDispatcherType()
getDispatcherType in interface javax.servlet.ServletRequestpublic javax.servlet.ServletInputStream getInputStream()
throws IOException
getInputStream in interface javax.servlet.ServletRequestIOException - when an I/O error occurs.public String getLocalAddr()
getLocalAddr in interface javax.servlet.ServletRequestpublic String getLocalName()
getLocalName in interface javax.servlet.ServletRequestpublic int getLocalPort()
getLocalPort in interface javax.servlet.ServletRequestpublic Locale getLocale()
getLocale in interface javax.servlet.ServletRequestpublic Enumeration<Locale> getLocales()
getLocales in interface javax.servlet.ServletRequestpublic String getParameter(String name)
getParameter in interface javax.servlet.ServletRequestname - the name.public Map<String,String[]> getParameterMap()
getParameterMap in interface javax.servlet.ServletRequestpublic Enumeration<String> getParameterNames()
getParameterNames in interface javax.servlet.ServletRequestpublic String[] getParameterValues(String name)
getParameterValues in interface javax.servlet.ServletRequestname - the name.public String getProtocol()
getProtocol in interface javax.servlet.ServletRequestpublic BufferedReader getReader() throws IOException
getReader in interface javax.servlet.ServletRequestIOException - when an I/O error occurs.public String getRealPath(String path)
getRealPath in interface javax.servlet.ServletRequestpath - the path.public String getRemoteAddr()
getRemoteAddr in interface javax.servlet.ServletRequestpublic String getRemoteHost()
getRemoteHost in interface javax.servlet.ServletRequestpublic int getRemotePort()
getRemotePort in interface javax.servlet.ServletRequestpublic javax.servlet.ServletRequest getRequest()
public javax.servlet.RequestDispatcher getRequestDispatcher(String path)
getRequestDispatcher in interface javax.servlet.ServletRequestpath - the path.public String getScheme()
getScheme in interface javax.servlet.ServletRequestpublic String getServerName()
getServerName in interface javax.servlet.ServletRequestpublic int getServerPort()
getServerPort in interface javax.servlet.ServletRequestpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.ServletRequestpublic boolean isAsyncStarted()
isAsyncStarted in interface javax.servlet.ServletRequestpublic boolean isAsyncSupported()
isAsyncSupported in interface javax.servlet.ServletRequestpublic boolean isSecure()
isSecure in interface javax.servlet.ServletRequestpublic boolean isWrapperFor(javax.servlet.ServletRequest wrapped)
wrapped - the wrapped request.public boolean isWrapperFor(Class<?> wrappedType)
wrappedType - the wrapped type.public void removeAttribute(String name)
removeAttribute in interface javax.servlet.ServletRequestname - the name.public void setAttribute(String name, Object object)
setAttribute in interface javax.servlet.ServletRequestname - the name.object - the object value.public void setCharacterEncoding(String characterEncoding) throws UnsupportedEncodingException
setCharacterEncoding in interface javax.servlet.ServletRequestcharacterEncoding - the character encoding.UnsupportedEncodingException - when trying to set an unsupported
character encoding.public javax.servlet.AsyncContext startAsync()
throws IllegalStateException
startAsync in interface javax.servlet.ServletRequestIllegalStateException - when not allowed.public javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse)
throws IllegalStateException
startAsync in interface javax.servlet.ServletRequestservletRequest - the servlet request.servletResponse - the servlet response.IllegalStateExceptionpublic boolean authenticate(javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
authenticate in interface javax.servlet.http.HttpServletRequestresponse - the response.IOException - when an I/O error occurs.javax.servlet.ServletException - when a Servlet error occurs.public String changeSessionId()
changeSessionId in interface javax.servlet.http.HttpServletRequestpublic String getAuthType()
getAuthType in interface javax.servlet.http.HttpServletRequestpublic String getContextPath()
getContextPath in interface javax.servlet.http.HttpServletRequestpublic javax.servlet.http.Cookie[] getCookies()
getCookies in interface javax.servlet.http.HttpServletRequestpublic long getDateHeader(String name)
getDateHeader in interface javax.servlet.http.HttpServletRequestname - the name.public String getHeader(String name)
getHeader in interface javax.servlet.http.HttpServletRequestname - the name.public Enumeration<String> getHeaderNames()
getHeaderNames in interface javax.servlet.http.HttpServletRequestpublic Enumeration<String> getHeaders(String name)
getHeaders in interface javax.servlet.http.HttpServletRequestname - the name.public int getIntHeader(String name)
getIntHeader in interface javax.servlet.http.HttpServletRequestname - the name.public String getMethod()
getMethod in interface javax.servlet.http.HttpServletRequestpublic javax.servlet.http.Part getPart(String name) throws IOException, javax.servlet.ServletException
getPart in interface javax.servlet.http.HttpServletRequestname - the name.IOException - when an I/O error occurs.javax.servlet.ServletException - when a Servlet error occurs.public Collection<javax.servlet.http.Part> getParts() throws IOException, javax.servlet.ServletException
getParts in interface javax.servlet.http.HttpServletRequestIOException - when an I/O error occurs.javax.servlet.ServletException - when a Servlet error occurs.public String getPathInfo()
getPathInfo in interface javax.servlet.http.HttpServletRequestpublic String getPathTranslated()
getPathTranslated in interface javax.servlet.http.HttpServletRequestpublic String getQueryString()
getQueryString in interface javax.servlet.http.HttpServletRequestpublic String getRemoteUser()
getRemoteUser in interface javax.servlet.http.HttpServletRequestpublic String getRequestURI()
getRequestURI in interface javax.servlet.http.HttpServletRequestpublic StringBuffer getRequestURL()
getRequestURL in interface javax.servlet.http.HttpServletRequestpublic String getRequestedSessionId()
getRequestedSessionId in interface javax.servlet.http.HttpServletRequestpublic String getServletPath()
getServletPath in interface javax.servlet.http.HttpServletRequestpublic javax.servlet.http.HttpSession getSession()
getSession in interface javax.servlet.http.HttpServletRequestpublic javax.servlet.http.HttpSession getSession(boolean create)
getSession in interface javax.servlet.http.HttpServletRequestcreate - the create flag.public Principal getUserPrincipal()
getUserPrincipal in interface javax.servlet.http.HttpServletRequestprotected abstract javax.servlet.http.HttpServletRequest getWrapped()
public boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromCookie in interface javax.servlet.http.HttpServletRequestpublic boolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromURL in interface javax.servlet.http.HttpServletRequestpublic boolean isRequestedSessionIdFromUrl()
isRequestedSessionIdFromUrl in interface javax.servlet.http.HttpServletRequestpublic boolean isRequestedSessionIdValid()
isRequestedSessionIdValid in interface javax.servlet.http.HttpServletRequestpublic boolean isUserInRole(String role)
isUserInRole in interface javax.servlet.http.HttpServletRequestrole - the role.public void login(String username, String password) throws javax.servlet.ServletException
login in interface javax.servlet.http.HttpServletRequestusername - the username.password - the password.javax.servlet.ServletException - when a Servlet error occurs.public void logout()
throws javax.servlet.ServletException
logout in interface javax.servlet.http.HttpServletRequestjavax.servlet.ServletException - when a Servlet error occurs.public <T extends javax.servlet.http.HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, javax.servlet.ServletException
upgrade in interface javax.servlet.http.HttpServletRequestT - the type of HTTP upgrade handler class.handlerClass - the handler class.IOException - when an I/O error occurs.javax.servlet.ServletException - when a Servlet error occurs.Copyright © 2020. All rights reserved.