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 ofHttpServletRequestwhich serves as a proxy for the current thread-local servlet request obtained fromHttpServletRequestResponseContext.This should be avoided in place of
ThreadLocalHttpServletRequestSupplierwhich indirects the access to the interface.
-
-
Constructor Summary
Constructors Constructor Description ThreadLocalHttpServletRequestProxy()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanauthenticate(javax.servlet.http.HttpServletResponse response)Deprecated, for removal: This API element is subject to removal in a future version.StringchangeSessionId()Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.AsyncContextgetAsyncContext()Deprecated, for removal: This API element is subject to removal in a future version.ObjectgetAttribute(String name)Deprecated, for removal: This API element is subject to removal in a future version.Enumeration<String>getAttributeNames()Deprecated, for removal: This API element is subject to removal in a future version.StringgetAuthType()Deprecated, for removal: This API element is subject to removal in a future version.StringgetCharacterEncoding()Deprecated, for removal: This API element is subject to removal in a future version.intgetContentLength()Deprecated, for removal: This API element is subject to removal in a future version.longgetContentLengthLong()Deprecated, for removal: This API element is subject to removal in a future version.StringgetContentType()Deprecated, for removal: This API element is subject to removal in a future version.StringgetContextPath()Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.http.Cookie[]getCookies()Deprecated, for removal: This API element is subject to removal in a future version.protected javax.servlet.http.HttpServletRequestgetCurrent()Deprecated, 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.DispatcherTypegetDispatcherType()Deprecated, for removal: This API element is subject to removal in a future version.StringgetHeader(String name)Deprecated, for removal: This API element is subject to removal in a future version.Enumeration<String>getHeaderNames()Deprecated, for removal: This API element is subject to removal in a future version.Enumeration<String>getHeaders(String name)Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.ServletInputStreamgetInputStream()Deprecated, 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.StringgetLocalAddr()Deprecated, for removal: This API element is subject to removal in a future version.LocalegetLocale()Deprecated, for removal: This API element is subject to removal in a future version.Enumeration<Locale>getLocales()Deprecated, for removal: This API element is subject to removal in a future version.StringgetLocalName()Deprecated, for removal: This API element is subject to removal in a future version.intgetLocalPort()Deprecated, for removal: This API element is subject to removal in a future version.StringgetMethod()Deprecated, for removal: This API element is subject to removal in a future version.StringgetParameter(String name)Deprecated, for removal: This API element is subject to removal in a future version.Map<String,String[]>getParameterMap()Deprecated, for removal: This API element is subject to removal in a future version.Enumeration<String>getParameterNames()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.PartgetPart(String name)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.StringgetPathInfo()Deprecated, for removal: This API element is subject to removal in a future version.StringgetPathTranslated()Deprecated, for removal: This API element is subject to removal in a future version.StringgetProtocol()Deprecated, for removal: This API element is subject to removal in a future version.StringgetQueryString()Deprecated, for removal: This API element is subject to removal in a future version.BufferedReadergetReader()Deprecated, for removal: This API element is subject to removal in a future version.StringgetRealPath(String path)Deprecated, for removal: This API element is subject to removal in a future version.StringgetRemoteAddr()Deprecated, for removal: This API element is subject to removal in a future version.StringgetRemoteHost()Deprecated, for removal: This API element is subject to removal in a future version.intgetRemotePort()Deprecated, for removal: This API element is subject to removal in a future version.StringgetRemoteUser()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.StringgetRequestedSessionId()Deprecated, for removal: This API element is subject to removal in a future version.StringgetRequestURI()Deprecated, for removal: This API element is subject to removal in a future version.StringBuffergetRequestURL()Deprecated, for removal: This API element is subject to removal in a future version.StringgetScheme()Deprecated, for removal: This API element is subject to removal in a future version.StringgetServerName()Deprecated, for removal: This API element is subject to removal in a future version.intgetServerPort()Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.ServletContextgetServletContext()Deprecated, for removal: This API element is subject to removal in a future version.StringgetServletPath()Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.http.HttpSessiongetSession()Deprecated, 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.PrincipalgetUserPrincipal()Deprecated, for removal: This API element is subject to removal in a future version.booleanisAsyncStarted()Deprecated, for removal: This API element is subject to removal in a future version.booleanisAsyncSupported()Deprecated, for removal: This API element is subject to removal in a future version.booleanisRequestedSessionIdFromCookie()Deprecated, for removal: This API element is subject to removal in a future version.booleanisRequestedSessionIdFromUrl()Deprecated, for removal: This API element is subject to removal in a future version.booleanisRequestedSessionIdFromURL()Deprecated, for removal: This API element is subject to removal in a future version.booleanisRequestedSessionIdValid()Deprecated, 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.voidlogin(String username, String password)Deprecated, 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.voidsetCharacterEncoding(String env)Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.AsyncContextstartAsync()Deprecated, 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>
Tupgrade(Class<T> handlerClass)Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Method Detail
-
getAttribute
public Object getAttribute(String name)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAttributein interfacejavax.servlet.ServletRequest
-
getAttributeNames
public Enumeration<String> getAttributeNames()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAttributeNamesin interfacejavax.servlet.ServletRequest
-
getCharacterEncoding
public String getCharacterEncoding()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getCharacterEncodingin interfacejavax.servlet.ServletRequest
-
setCharacterEncoding
public void setCharacterEncoding(String env) throws UnsupportedEncodingException
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
public String getContentType()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getContentTypein interfacejavax.servlet.ServletRequest
-
getInputStream
public javax.servlet.ServletInputStream getInputStream() throws IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getInputStreamin interfacejavax.servlet.ServletRequest- Throws:
IOException
-
getParameter
public String getParameter(String name)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getParameterin interfacejavax.servlet.ServletRequest
-
getParameterNames
public Enumeration<String> getParameterNames()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getParameterNamesin interfacejavax.servlet.ServletRequest
-
getParameterValues
public String[] getParameterValues(String name)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getParameterValuesin interfacejavax.servlet.ServletRequest
-
getParameterMap
public Map<String,String[]> getParameterMap()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getParameterMapin interfacejavax.servlet.ServletRequest
-
getProtocol
public String getProtocol()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getProtocolin interfacejavax.servlet.ServletRequest
-
getScheme
public String getScheme()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getSchemein interfacejavax.servlet.ServletRequest
-
getServerName
public String 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
public BufferedReader getReader() throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getReaderin interfacejavax.servlet.ServletRequest- Throws:
IOException
-
getRemoteAddr
public String getRemoteAddr()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRemoteAddrin interfacejavax.servlet.ServletRequest
-
getRemoteHost
public String getRemoteHost()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRemoteHostin interfacejavax.servlet.ServletRequest
-
setAttribute
public void setAttribute(String name, Object o)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setAttributein interfacejavax.servlet.ServletRequest
-
removeAttribute
public void removeAttribute(String name)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
removeAttributein interfacejavax.servlet.ServletRequest
-
getLocale
public Locale getLocale()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLocalein interfacejavax.servlet.ServletRequest
-
getLocales
public Enumeration<Locale> 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
public javax.servlet.RequestDispatcher getRequestDispatcher(String path)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRequestDispatcherin interfacejavax.servlet.ServletRequest
-
getRealPath
public String getRealPath(String path)
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
public String getLocalName()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLocalNamein interfacejavax.servlet.ServletRequest
-
getLocalAddr
public String 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
public String 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
public long getDateHeader(String name)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDateHeaderin interfacejavax.servlet.http.HttpServletRequest
-
getHeader
public String getHeader(String name)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getHeaderin interfacejavax.servlet.http.HttpServletRequest
-
getHeaders
public Enumeration<String> getHeaders(String name)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getHeadersin interfacejavax.servlet.http.HttpServletRequest
-
getHeaderNames
public Enumeration<String> getHeaderNames()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getHeaderNamesin interfacejavax.servlet.http.HttpServletRequest
-
getIntHeader
public int getIntHeader(String name)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getIntHeaderin interfacejavax.servlet.http.HttpServletRequest
-
getMethod
public String getMethod()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getMethodin interfacejavax.servlet.http.HttpServletRequest
-
getPathInfo
public String getPathInfo()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getPathInfoin interfacejavax.servlet.http.HttpServletRequest
-
getPathTranslated
public String getPathTranslated()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getPathTranslatedin interfacejavax.servlet.http.HttpServletRequest
-
getContextPath
public String getContextPath()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getContextPathin interfacejavax.servlet.http.HttpServletRequest
-
getQueryString
public String getQueryString()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getQueryStringin interfacejavax.servlet.http.HttpServletRequest
-
getRemoteUser
public String getRemoteUser()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRemoteUserin interfacejavax.servlet.http.HttpServletRequest
-
isUserInRole
public boolean isUserInRole(String role)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isUserInRolein interfacejavax.servlet.http.HttpServletRequest
-
getUserPrincipal
public Principal getUserPrincipal()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getUserPrincipalin interfacejavax.servlet.http.HttpServletRequest
-
getRequestedSessionId
public String getRequestedSessionId()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRequestedSessionIdin interfacejavax.servlet.http.HttpServletRequest
-
getRequestURI
public String getRequestURI()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRequestURIin interfacejavax.servlet.http.HttpServletRequest
-
getRequestURL
public StringBuffer getRequestURL()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRequestURLin interfacejavax.servlet.http.HttpServletRequest
-
getServletPath
public String 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.ServletExceptionDeprecated, 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
public void login(String username, String password) throws javax.servlet.ServletException
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.ServletException
Deprecated, 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
public String 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
-
-