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
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionboolean
authenticate
(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.AsyncContext
Deprecated, 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.int
Deprecated, for removal: This API element is subject to removal in a future version.long
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.javax.servlet.http.Cookie[]
Deprecated, for removal: This API element is subject to removal in a future version.protected javax.servlet.http.HttpServletRequest
Deprecated, for removal: This API element is subject to removal in a future version.Get the current HttpServletRequest from ThreadLocal storage.long
getDateHeader
(String name) Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.DispatcherType
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.getHeaders
(String name) Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.ServletInputStream
Deprecated, for removal: This API element is subject to removal in a future version.int
getIntHeader
(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.int
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.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.Part
Deprecated, 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.int
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.RequestDispatcher
getRequestDispatcher
(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.int
Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.ServletContext
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.HttpSession
Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.http.HttpSession
getSession
(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.boolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isSecure()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isUserInRole
(String role) Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.void
logout()
Deprecated, for removal: This API element is subject to removal in a future version.void
removeAttribute
(String name) Deprecated, for removal: This API element is subject to removal in a future version.void
setAttribute
(String name, Object o) Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.AsyncContext
Deprecated, for removal: This API element is subject to removal in a future version.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.<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:
getAttribute
in interfacejavax.servlet.ServletRequest
-
getAttributeNames
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAttributeNames
in interfacejavax.servlet.ServletRequest
-
getCharacterEncoding
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getCharacterEncoding
in interfacejavax.servlet.ServletRequest
-
setCharacterEncoding
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setCharacterEncoding
in 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:
getContentLength
in interfacejavax.servlet.ServletRequest
-
getContentType
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getContentType
in interfacejavax.servlet.ServletRequest
-
getInputStream
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getInputStream
in interfacejavax.servlet.ServletRequest
- Throws:
IOException
-
getParameter
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getParameter
in interfacejavax.servlet.ServletRequest
-
getParameterNames
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getParameterNames
in interfacejavax.servlet.ServletRequest
-
getParameterValues
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getParameterValues
in interfacejavax.servlet.ServletRequest
-
getParameterMap
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getParameterMap
in interfacejavax.servlet.ServletRequest
-
getProtocol
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getProtocol
in interfacejavax.servlet.ServletRequest
-
getScheme
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getScheme
in interfacejavax.servlet.ServletRequest
-
getServerName
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getServerName
in interfacejavax.servlet.ServletRequest
-
getServerPort
public int getServerPort()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getServerPort
in interfacejavax.servlet.ServletRequest
-
getReader
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getReader
in interfacejavax.servlet.ServletRequest
- Throws:
IOException
-
getRemoteAddr
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRemoteAddr
in interfacejavax.servlet.ServletRequest
-
getRemoteHost
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRemoteHost
in interfacejavax.servlet.ServletRequest
-
setAttribute
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setAttribute
in interfacejavax.servlet.ServletRequest
-
removeAttribute
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
removeAttribute
in interfacejavax.servlet.ServletRequest
-
getLocale
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLocale
in interfacejavax.servlet.ServletRequest
-
getLocales
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLocales
in interfacejavax.servlet.ServletRequest
-
isSecure
public boolean isSecure()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isSecure
in interfacejavax.servlet.ServletRequest
-
getRequestDispatcher
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRequestDispatcher
in interfacejavax.servlet.ServletRequest
-
getRealPath
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRealPath
in interfacejavax.servlet.ServletRequest
-
getRemotePort
public int getRemotePort()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRemotePort
in interfacejavax.servlet.ServletRequest
-
getLocalName
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLocalName
in interfacejavax.servlet.ServletRequest
-
getLocalAddr
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLocalAddr
in interfacejavax.servlet.ServletRequest
-
getLocalPort
public int getLocalPort()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLocalPort
in interfacejavax.servlet.ServletRequest
-
getAuthType
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAuthType
in 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:
getCookies
in interfacejavax.servlet.http.HttpServletRequest
-
getDateHeader
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDateHeader
in interfacejavax.servlet.http.HttpServletRequest
-
getHeader
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getHeader
in interfacejavax.servlet.http.HttpServletRequest
-
getHeaders
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getHeaders
in interfacejavax.servlet.http.HttpServletRequest
-
getHeaderNames
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getHeaderNames
in interfacejavax.servlet.http.HttpServletRequest
-
getIntHeader
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getIntHeader
in interfacejavax.servlet.http.HttpServletRequest
-
getMethod
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getMethod
in interfacejavax.servlet.http.HttpServletRequest
-
getPathInfo
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getPathInfo
in interfacejavax.servlet.http.HttpServletRequest
-
getPathTranslated
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getPathTranslated
in interfacejavax.servlet.http.HttpServletRequest
-
getContextPath
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getContextPath
in interfacejavax.servlet.http.HttpServletRequest
-
getQueryString
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getQueryString
in interfacejavax.servlet.http.HttpServletRequest
-
getRemoteUser
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRemoteUser
in interfacejavax.servlet.http.HttpServletRequest
-
isUserInRole
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isUserInRole
in interfacejavax.servlet.http.HttpServletRequest
-
getUserPrincipal
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getUserPrincipal
in interfacejavax.servlet.http.HttpServletRequest
-
getRequestedSessionId
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRequestedSessionId
in interfacejavax.servlet.http.HttpServletRequest
-
getRequestURI
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRequestURI
in interfacejavax.servlet.http.HttpServletRequest
-
getRequestURL
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRequestURL
in interfacejavax.servlet.http.HttpServletRequest
-
getServletPath
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getServletPath
in 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:
getSession
in 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:
getSession
in interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isRequestedSessionIdValid
in interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isRequestedSessionIdFromCookie
in interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isRequestedSessionIdFromURL
in interfacejavax.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isRequestedSessionIdFromUrl
in 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:
getServletContext
in 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:
startAsync
in 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:
startAsync
in interfacejavax.servlet.ServletRequest
-
isAsyncStarted
public boolean isAsyncStarted()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isAsyncStarted
in interfacejavax.servlet.ServletRequest
-
isAsyncSupported
public boolean isAsyncSupported()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isAsyncSupported
in 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:
getAsyncContext
in 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:
getDispatcherType
in 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:
authenticate
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
IOException
javax.servlet.ServletException
-
login
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
login
in 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:
logout
in 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:
getParts
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
IOException
javax.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:
getPart
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
IOException
javax.servlet.ServletException
-
getContentLengthLong
public long getContentLengthLong()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getContentLengthLong
in interfacejavax.servlet.ServletRequest
-
changeSessionId
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
changeSessionId
in 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:
upgrade
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
IOException
javax.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
-