Package com.aoapps.servlet.subrequest
Class HttpServletSubRequest
java.lang.Object
com.aoapps.servlet.subrequest.ServletSubRequest
com.aoapps.servlet.subrequest.HttpServletSubRequest
- All Implemented Interfaces:
IHttpServletSubRequest
,IServletSubRequest
,HttpServletRequest
,ServletRequest
-
Field Summary
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
authenticate
(HttpServletResponse response) Cookie[]
long
getDateHeader
(String name) getHeaders
(String name) int
getIntHeader
(String name) getParts()
getSession
(boolean create) boolean
Checks ifHttpServletRequest.logout()
was called during the subrequest.boolean
boolean
Deprecated.boolean
boolean
boolean
isUserInRole
(String role) void
void
logout()
void
Overrides the method for the subrequest.<T extends HttpUpgradeHandler>
TMethods inherited from class com.aoapps.servlet.subrequest.ServletSubRequest
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.servlet.ServletRequest
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
-
Constructor Details
-
HttpServletSubRequest
-
-
Method Details
-
getAuthType
- Specified by:
getAuthType
in interfaceHttpServletRequest
-
getCookies
- Specified by:
getCookies
in interfaceHttpServletRequest
-
getDateHeader
- Specified by:
getDateHeader
in interfaceHttpServletRequest
-
getHeader
- Specified by:
getHeader
in interfaceHttpServletRequest
-
getHeaders
- Specified by:
getHeaders
in interfaceHttpServletRequest
-
getHeaderNames
- Specified by:
getHeaderNames
in interfaceHttpServletRequest
-
getIntHeader
- Specified by:
getIntHeader
in interfaceHttpServletRequest
-
getMethod
- Specified by:
getMethod
in interfaceHttpServletRequest
-
setMethod
Description copied from interface:IHttpServletSubRequest
Overrides the method for the subrequest.- Specified by:
setMethod
in interfaceIHttpServletSubRequest
-
getPathInfo
- Specified by:
getPathInfo
in interfaceHttpServletRequest
-
getPathTranslated
- Specified by:
getPathTranslated
in interfaceHttpServletRequest
-
getContextPath
- Specified by:
getContextPath
in interfaceHttpServletRequest
-
getQueryString
- Specified by:
getQueryString
in interfaceHttpServletRequest
-
getRemoteUser
- Specified by:
getRemoteUser
in interfaceHttpServletRequest
-
isUserInRole
- Specified by:
isUserInRole
in interfaceHttpServletRequest
-
getUserPrincipal
- Specified by:
getUserPrincipal
in interfaceHttpServletRequest
-
getRequestedSessionId
- Specified by:
getRequestedSessionId
in interfaceHttpServletRequest
-
getRequestURI
- Specified by:
getRequestURI
in interfaceHttpServletRequest
-
getRequestURL
- Specified by:
getRequestURL
in interfaceHttpServletRequest
-
getServletPath
- Specified by:
getServletPath
in interfaceHttpServletRequest
-
getSession
- Specified by:
getSession
in interfaceHttpServletRequest
-
getSession
- Specified by:
getSession
in interfaceHttpServletRequest
-
changeSessionId
- Specified by:
changeSessionId
in interfaceHttpServletRequest
-
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()- Specified by:
isRequestedSessionIdValid
in interfaceHttpServletRequest
-
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()- Specified by:
isRequestedSessionIdFromCookie
in interfaceHttpServletRequest
-
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()- Specified by:
isRequestedSessionIdFromURL
in interfaceHttpServletRequest
-
isRequestedSessionIdFromUrl
Deprecated.- Specified by:
isRequestedSessionIdFromUrl
in interfaceHttpServletRequest
-
authenticate
- Specified by:
authenticate
in interfaceHttpServletRequest
- Throws:
IOException
ServletException
-
login
- Specified by:
login
in interfaceHttpServletRequest
- Throws:
ServletException
-
logout
- Specified by:
logout
in interfaceHttpServletRequest
- Throws:
ServletException
-
isLoggedOut
public boolean isLoggedOut()Description copied from interface:IHttpServletSubRequest
Checks ifHttpServletRequest.logout()
was called during the subrequest.- Specified by:
isLoggedOut
in interfaceIHttpServletSubRequest
-
getParts
- Specified by:
getParts
in interfaceHttpServletRequest
- Throws:
IOException
ServletException
-
getPart
- Specified by:
getPart
in interfaceHttpServletRequest
- Throws:
IOException
ServletException
-
upgrade
- Specified by:
upgrade
in interfaceHttpServletRequest
- Throws:
IOException
ServletException
-