Class ThreadLocalHttpServletRequestProxy
java.lang.Object
net.shibboleth.utilities.java.support.net.ThreadLocalHttpServletRequestProxy
- All Implemented Interfaces:
javax.servlet.http.HttpServletRequest,javax.servlet.ServletRequest
@Deprecated(since="8.4.0",
forRemoval=true)
public class ThreadLocalHttpServletRequestProxy
extends Object
implements javax.servlet.http.HttpServletRequest
Deprecated, for removal: This API element is subject to removal in a future version.
An implementation of
HttpServletRequest which serves as a proxy for the
current thread-local servlet request obtained from HttpServletRequestResponseContext.
This should be avoided in place of ThreadLocalHttpServletRequestSupplier which
indirects the access to the interface.
-
Field Summary
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(javax.servlet.http.HttpServletResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.AsyncContextDeprecated, for removal: This API element is subject to removal in a future version.getAttribute(String name) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.longDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.http.Cookie[]Deprecated, for removal: This API element is subject to removal in a future version.protected javax.servlet.http.HttpServletRequestDeprecated, for removal: This API element is subject to removal in a future version.Get the current HttpServletRequest from ThreadLocal storage.longgetDateHeader(String name) Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.DispatcherTypeDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getHeaders(String name) Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.ServletInputStreamDeprecated, for removal: This API element is subject to removal in a future version.intgetIntHeader(String name) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getParameter(String name) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.String[]getParameterValues(String name) Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.http.PartDeprecated, for removal: This API element is subject to removal in a future version.Collection<javax.servlet.http.Part>getParts()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getRealPath(String path) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.RequestDispatchergetRequestDispatcher(String path) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.javax.servlet.ServletContextDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.http.HttpSessionDeprecated, for removal: This API element is subject to removal in a future version.javax.servlet.http.HttpSessiongetSession(boolean create) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanisSecure()Deprecated, for removal: This API element is subject to removal in a future version.booleanisUserInRole(String role) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidlogout()Deprecated, for removal: This API element is subject to removal in a future version.voidremoveAttribute(String name) Deprecated, for removal: This API element is subject to removal in a future version.voidsetAttribute(String name, Object o) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.javax.servlet.AsyncContextDeprecated, for removal: This API element is subject to removal in a future version.javax.servlet.AsyncContextstartAsync(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) Deprecated, for removal: This API element is subject to removal in a future version.<T extends javax.servlet.http.HttpUpgradeHandler>
TDeprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
ThreadLocalHttpServletRequestProxy
public ThreadLocalHttpServletRequestProxy()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getAttribute
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAttributein interfacejavax.servlet.ServletRequest
-
getAttributeNames
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAttributeNamesin interfacejavax.servlet.ServletRequest
-
getCharacterEncoding
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getCharacterEncodingin interfacejavax.servlet.ServletRequest
-
setCharacterEncoding
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setCharacterEncodingin interfacejavax.servlet.ServletRequest- Throws:
UnsupportedEncodingException
-
getContentLength
public int getContentLength()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getContentLengthin interfacejavax.servlet.ServletRequest
-
getContentType
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getContentTypein interfacejavax.servlet.ServletRequest
-
getInputStream
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getInputStreamin interfacejavax.servlet.ServletRequest- Throws:
IOException
-
getParameter
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getParameterin interfacejavax.servlet.ServletRequest
-
getParameterNames
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getParameterNamesin interfacejavax.servlet.ServletRequest
-
getParameterValues
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getParameterValuesin interfacejavax.servlet.ServletRequest
-
getParameterMap
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getParameterMapin interfacejavax.servlet.ServletRequest
-
getProtocol
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getProtocolin interfacejavax.servlet.ServletRequest
-
getScheme
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getSchemein interfacejavax.servlet.ServletRequest
-
getServerName
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getServerNamein interfacejavax.servlet.ServletRequest
-
getServerPort
public int getServerPort()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getServerPortin interfacejavax.servlet.ServletRequest
-
getReader
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getReaderin interfacejavax.servlet.ServletRequest- Throws:
IOException
-
getRemoteAddr
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRemoteAddrin interfacejavax.servlet.ServletRequest
-
getRemoteHost
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRemoteHostin interfacejavax.servlet.ServletRequest
-
setAttribute
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setAttributein interfacejavax.servlet.ServletRequest
-
removeAttribute
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
removeAttributein interfacejavax.servlet.ServletRequest
-
getLocale
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLocalein interfacejavax.servlet.ServletRequest
-
getLocales
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLocalesin interfacejavax.servlet.ServletRequest
-
isSecure
public boolean isSecure()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isSecurein interfacejavax.servlet.ServletRequest
-
getRequestDispatcher
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRequestDispatcherin interfacejavax.servlet.ServletRequest
-
getRealPath
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRealPathin interfacejavax.servlet.ServletRequest
-
getRemotePort
public int getRemotePort()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRemotePortin interfacejavax.servlet.ServletRequest
-
getLocalName
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLocalNamein interfacejavax.servlet.ServletRequest
-
getLocalAddr
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLocalAddrin interfacejavax.servlet.ServletRequest
-
getLocalPort
public int getLocalPort()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLocalPortin interfacejavax.servlet.ServletRequest
-
getAuthType
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAuthTypein interfacejavax.servlet.http.HttpServletRequest
-
getCookies
public javax.servlet.http.Cookie[] getCookies()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getCookiesin interfacejavax.servlet.http.HttpServletRequest
-
getDateHeader
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDateHeaderin interfacejavax.servlet.http.HttpServletRequest
-
getHeader
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getHeaderin interfacejavax.servlet.http.HttpServletRequest
-
getHeaders
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getHeadersin interfacejavax.servlet.http.HttpServletRequest
-
getHeaderNames
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getHeaderNamesin interfacejavax.servlet.http.HttpServletRequest
-
getIntHeader
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getIntHeaderin interfacejavax.servlet.http.HttpServletRequest
-
getMethod
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getMethodin interfacejavax.servlet.http.HttpServletRequest
-
getPathInfo
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getPathInfoin interfacejavax.servlet.http.HttpServletRequest
-
getPathTranslated
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getPathTranslatedin interfacejavax.servlet.http.HttpServletRequest
-
getContextPath
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getContextPathin interfacejavax.servlet.http.HttpServletRequest
-
getQueryString
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getQueryStringin interfacejavax.servlet.http.HttpServletRequest
-
getRemoteUser
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRemoteUserin interfacejavax.servlet.http.HttpServletRequest
-
isUserInRole
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isUserInRolein interfacejavax.servlet.http.HttpServletRequest
-
getUserPrincipal
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getUserPrincipalin interfacejavax.servlet.http.HttpServletRequest
-
getRequestedSessionId
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRequestedSessionIdin interfacejavax.servlet.http.HttpServletRequest
-
getRequestURI
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRequestURIin interfacejavax.servlet.http.HttpServletRequest
-
getRequestURL
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRequestURLin interfacejavax.servlet.http.HttpServletRequest
-
getServletPath
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getServletPathin interfacejavax.servlet.http.HttpServletRequest
-
getSession
public javax.servlet.http.HttpSession getSession(boolean create) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getSessionin interfacejavax.servlet.http.HttpServletRequest
-
getSession
public javax.servlet.http.HttpSession getSession()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getSessionin interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isRequestedSessionIdValidin interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isRequestedSessionIdFromCookiein interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isRequestedSessionIdFromURLin interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isRequestedSessionIdFromUrlin interfacejavax.servlet.http.HttpServletRequest
-
getServletContext
public javax.servlet.ServletContext getServletContext()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getServletContextin interfacejavax.servlet.ServletRequest
-
startAsync
public javax.servlet.AsyncContext startAsync()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
startAsyncin interfacejavax.servlet.ServletRequest
-
startAsync
public javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
startAsyncin interfacejavax.servlet.ServletRequest
-
isAsyncStarted
public boolean isAsyncStarted()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isAsyncStartedin interfacejavax.servlet.ServletRequest
-
isAsyncSupported
public boolean isAsyncSupported()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isAsyncSupportedin interfacejavax.servlet.ServletRequest
-
getAsyncContext
public javax.servlet.AsyncContext getAsyncContext()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAsyncContextin interfacejavax.servlet.ServletRequest
-
getDispatcherType
public javax.servlet.DispatcherType getDispatcherType()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDispatcherTypein interfacejavax.servlet.ServletRequest
-
authenticate
public boolean authenticate(javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
authenticatein interfacejavax.servlet.http.HttpServletRequest- Throws:
IOExceptionjavax.servlet.ServletException
-
login
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
loginin interfacejavax.servlet.http.HttpServletRequest- Throws:
javax.servlet.ServletException
-
logout
public void logout() throws javax.servlet.ServletExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
logoutin interfacejavax.servlet.http.HttpServletRequest- Throws:
javax.servlet.ServletException
-
getParts
public Collection<javax.servlet.http.Part> getParts() throws IOException, javax.servlet.ServletExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getPartsin interfacejavax.servlet.http.HttpServletRequest- Throws:
IOExceptionjavax.servlet.ServletException
-
getPart
public javax.servlet.http.Part getPart(String name) throws IOException, javax.servlet.ServletException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getPartin interfacejavax.servlet.http.HttpServletRequest- Throws:
IOExceptionjavax.servlet.ServletException
-
getContentLengthLong
public long getContentLengthLong()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getContentLengthLongin interfacejavax.servlet.ServletRequest
-
changeSessionId
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
changeSessionIdin interfacejavax.servlet.http.HttpServletRequest
-
upgrade
public <T extends javax.servlet.http.HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, javax.servlet.ServletException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
upgradein interfacejavax.servlet.http.HttpServletRequest- Throws:
IOExceptionjavax.servlet.ServletException
-
getCurrent
protected javax.servlet.http.HttpServletRequest getCurrent()Deprecated, for removal: This API element is subject to removal in a future version.Get the current HttpServletRequest from ThreadLocal storage.- Returns:
- the current request
-