public class PostUpgradedHttpServletRequest extends HttpServletRequestWrapper
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
Constructor and Description |
---|
PostUpgradedHttpServletRequest(HttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(HttpServletResponse response) |
String |
changeSessionId() |
AsyncContext |
getAsyncContext() |
String |
getCharacterEncoding() |
int |
getContentLength() |
long |
getContentLengthLong() |
String |
getContentType() |
ServletInputStream |
getInputStream() |
Part |
getPart(String name) |
Collection<Part> |
getParts() |
BufferedReader |
getReader() |
ServletRequest |
getRequest() |
RequestDispatcher |
getRequestDispatcher(String path) |
boolean |
isAsyncStarted() |
boolean |
isAsyncSupported() |
boolean |
isWrapperFor(Class<?> wrappedType) |
boolean |
isWrapperFor(ServletRequest wrapped) |
void |
login(String username,
String password) |
void |
logout() |
void |
setCharacterEncoding(String enc) |
void |
setRequest(ServletRequest request) |
AsyncContext |
startAsync() |
AsyncContext |
startAsync(ServletRequest servletRequest,
ServletResponse servletResponse) |
<T extends HttpUpgradeHandler> |
upgrade(Class<T> handlerClass) |
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
getAttribute, getAttributeNames, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getScheme, getServerName, getServerPort, getServletContext, isSecure, removeAttribute, setAttribute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttribute, getAttributeNames, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getScheme, getServerName, getServerPort, getServletContext, isSecure, removeAttribute, setAttribute
public PostUpgradedHttpServletRequest(HttpServletRequest request)
public boolean authenticate(HttpServletResponse response) throws IOException, ServletException
authenticate
in interface HttpServletRequest
authenticate
in class HttpServletRequestWrapper
IOException
ServletException
public String changeSessionId()
changeSessionId
in interface HttpServletRequest
changeSessionId
in class HttpServletRequestWrapper
public AsyncContext getAsyncContext()
getAsyncContext
in interface ServletRequest
getAsyncContext
in class ServletRequestWrapper
public String getCharacterEncoding()
getCharacterEncoding
in interface ServletRequest
getCharacterEncoding
in class ServletRequestWrapper
public int getContentLength()
getContentLength
in interface ServletRequest
getContentLength
in class ServletRequestWrapper
public long getContentLengthLong()
getContentLengthLong
in interface ServletRequest
getContentLengthLong
in class ServletRequestWrapper
public String getContentType()
getContentType
in interface ServletRequest
getContentType
in class ServletRequestWrapper
public ServletInputStream getInputStream() throws IOException
getInputStream
in interface ServletRequest
getInputStream
in class ServletRequestWrapper
IOException
public Part getPart(String name) throws IOException, ServletException
getPart
in interface HttpServletRequest
getPart
in class HttpServletRequestWrapper
IOException
ServletException
public Collection<Part> getParts() throws IOException, ServletException
getParts
in interface HttpServletRequest
getParts
in class HttpServletRequestWrapper
IOException
ServletException
public BufferedReader getReader() throws IOException
getReader
in interface ServletRequest
getReader
in class ServletRequestWrapper
IOException
public ServletRequest getRequest()
getRequest
in class ServletRequestWrapper
public RequestDispatcher getRequestDispatcher(String path)
getRequestDispatcher
in interface ServletRequest
getRequestDispatcher
in class ServletRequestWrapper
public boolean isAsyncStarted()
isAsyncStarted
in interface ServletRequest
isAsyncStarted
in class ServletRequestWrapper
public boolean isAsyncSupported()
isAsyncSupported
in interface ServletRequest
isAsyncSupported
in class ServletRequestWrapper
public boolean isWrapperFor(Class<?> wrappedType)
isWrapperFor
in class ServletRequestWrapper
public boolean isWrapperFor(ServletRequest wrapped)
isWrapperFor
in class ServletRequestWrapper
public void login(String username, String password) throws ServletException
login
in interface HttpServletRequest
login
in class HttpServletRequestWrapper
ServletException
public void logout() throws ServletException
logout
in interface HttpServletRequest
logout
in class HttpServletRequestWrapper
ServletException
public void setCharacterEncoding(String enc) throws UnsupportedEncodingException
setCharacterEncoding
in interface ServletRequest
setCharacterEncoding
in class ServletRequestWrapper
UnsupportedEncodingException
public void setRequest(ServletRequest request)
setRequest
in class ServletRequestWrapper
public AsyncContext startAsync() throws IllegalStateException
startAsync
in interface ServletRequest
startAsync
in class ServletRequestWrapper
IllegalStateException
public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
startAsync
in interface ServletRequest
startAsync
in class ServletRequestWrapper
IllegalStateException
public <T extends HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, ServletException
upgrade
in interface HttpServletRequest
upgrade
in class HttpServletRequestWrapper
IOException
ServletException
Copyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.