Class ThreadLocalHttpServletResponseProxy
- java.lang.Object
-
- net.shibboleth.utilities.java.support.net.impl.ThreadLocalHttpServletResponseProxy
-
- All Implemented Interfaces:
javax.servlet.http.HttpServletResponse,javax.servlet.ServletResponse
@Deprecated(since="8.4.0", forRemoval=true) public class ThreadLocalHttpServletResponseProxy extends Object implements javax.servlet.http.HttpServletResponse
Deprecated, for removal: This API element is subject to removal in a future version.An implementation ofHttpServletResponsewhich serves as a proxy for the current thread-local servlet response obtained fromHttpServletRequestResponseContext.This should be avoided in place of
ThreadLocalHttpServletResponseSupplierwhich indirects the access to the interface.This copy of the class contains the deprecation warning and will be used within Shibboleth software so deployers note it. The original classes do not warn and prevent any of our deployed code using the original classes from emitting the warnings.
-
-
Field Summary
-
Fields inherited from interface javax.servlet.http.HttpServletResponse
SC_ACCEPTED, SC_BAD_GATEWAY, SC_BAD_REQUEST, SC_CONFLICT, SC_CONTINUE, SC_CREATED, SC_EXPECTATION_FAILED, SC_FORBIDDEN, SC_FOUND, SC_GATEWAY_TIMEOUT, SC_GONE, SC_HTTP_VERSION_NOT_SUPPORTED, SC_INTERNAL_SERVER_ERROR, SC_LENGTH_REQUIRED, SC_METHOD_NOT_ALLOWED, SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_MULTIPLE_CHOICES, SC_NO_CONTENT, SC_NON_AUTHORITATIVE_INFORMATION, SC_NOT_ACCEPTABLE, SC_NOT_FOUND, SC_NOT_IMPLEMENTED, SC_NOT_MODIFIED, SC_OK, SC_PARTIAL_CONTENT, SC_PAYMENT_REQUIRED, SC_PRECONDITION_FAILED, SC_PROXY_AUTHENTICATION_REQUIRED, SC_REQUEST_ENTITY_TOO_LARGE, SC_REQUEST_TIMEOUT, SC_REQUEST_URI_TOO_LONG, SC_REQUESTED_RANGE_NOT_SATISFIABLE, SC_RESET_CONTENT, SC_SEE_OTHER, SC_SERVICE_UNAVAILABLE, SC_SWITCHING_PROTOCOLS, SC_TEMPORARY_REDIRECT, SC_UNAUTHORIZED, SC_UNSUPPORTED_MEDIA_TYPE, SC_USE_PROXY
-
-
Constructor Summary
Constructors Constructor Description ThreadLocalHttpServletResponseProxy()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 voidaddCookie(javax.servlet.http.Cookie cookie)Deprecated, for removal: This API element is subject to removal in a future version.voidaddDateHeader(String name, long date)Deprecated, for removal: This API element is subject to removal in a future version.voidaddHeader(String name, String value)Deprecated, for removal: This API element is subject to removal in a future version.voidaddIntHeader(String name, int value)Deprecated, for removal: This API element is subject to removal in a future version.booleancontainsHeader(String name)Deprecated, for removal: This API element is subject to removal in a future version.StringencodeRedirectUrl(String url)Deprecated, for removal: This API element is subject to removal in a future version.StringencodeRedirectURL(String url)Deprecated, for removal: This API element is subject to removal in a future version.StringencodeUrl(String url)Deprecated, for removal: This API element is subject to removal in a future version.StringencodeURL(String url)Deprecated, for removal: This API element is subject to removal in a future version.voidflushBuffer()Deprecated, for removal: This API element is subject to removal in a future version.intgetBufferSize()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.StringgetContentType()Deprecated, for removal: This API element is subject to removal in a future version.protected javax.servlet.http.HttpServletResponsegetCurrent()Deprecated, for removal: This API element is subject to removal in a future version.Get the current HttpServletResponse from ThreadLocal storage.StringgetHeader(String name)Deprecated, for removal: This API element is subject to removal in a future version.Collection<String>getHeaderNames()Deprecated, for removal: This API element is subject to removal in a future version.Collection<String>getHeaders(String name)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.javax.servlet.ServletOutputStreamgetOutputStream()Deprecated, for removal: This API element is subject to removal in a future version.intgetStatus()Deprecated, for removal: This API element is subject to removal in a future version.PrintWritergetWriter()Deprecated, for removal: This API element is subject to removal in a future version.booleanisCommitted()Deprecated, for removal: This API element is subject to removal in a future version.voidreset()Deprecated, for removal: This API element is subject to removal in a future version.voidresetBuffer()Deprecated, for removal: This API element is subject to removal in a future version.voidsendError(int sc)Deprecated, for removal: This API element is subject to removal in a future version.voidsendError(int sc, String msg)Deprecated, for removal: This API element is subject to removal in a future version.voidsendRedirect(String location)Deprecated, for removal: This API element is subject to removal in a future version.voidsetBufferSize(int size)Deprecated, for removal: This API element is subject to removal in a future version.voidsetCharacterEncoding(String charset)Deprecated, for removal: This API element is subject to removal in a future version.voidsetContentLength(int len)Deprecated, for removal: This API element is subject to removal in a future version.voidsetContentLengthLong(long len)Deprecated, for removal: This API element is subject to removal in a future version.voidsetContentType(String type)Deprecated, for removal: This API element is subject to removal in a future version.voidsetDateHeader(String name, long date)Deprecated, for removal: This API element is subject to removal in a future version.voidsetHeader(String name, String value)Deprecated, for removal: This API element is subject to removal in a future version.voidsetIntHeader(String name, int value)Deprecated, for removal: This API element is subject to removal in a future version.voidsetLocale(Locale loc)Deprecated, for removal: This API element is subject to removal in a future version.voidsetStatus(int sc)Deprecated, for removal: This API element is subject to removal in a future version.voidsetStatus(int sc, String sm)Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Method Detail
-
getCharacterEncoding
public String getCharacterEncoding()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getCharacterEncodingin interfacejavax.servlet.ServletResponse
-
getContentType
public String getContentType()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getContentTypein interfacejavax.servlet.ServletResponse
-
getOutputStream
public javax.servlet.ServletOutputStream getOutputStream() throws IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getOutputStreamin interfacejavax.servlet.ServletResponse- Throws:
IOException
-
getWriter
public PrintWriter getWriter() throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getWriterin interfacejavax.servlet.ServletResponse- Throws:
IOException
-
setCharacterEncoding
public void setCharacterEncoding(String charset)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setCharacterEncodingin interfacejavax.servlet.ServletResponse
-
setContentLength
public void setContentLength(int len)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setContentLengthin interfacejavax.servlet.ServletResponse
-
setContentType
public void setContentType(String type)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setContentTypein interfacejavax.servlet.ServletResponse
-
setBufferSize
public void setBufferSize(int size)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setBufferSizein interfacejavax.servlet.ServletResponse
-
getBufferSize
public int getBufferSize()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getBufferSizein interfacejavax.servlet.ServletResponse
-
flushBuffer
public void flushBuffer() throws IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
flushBufferin interfacejavax.servlet.ServletResponse- Throws:
IOException
-
resetBuffer
public void resetBuffer()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
resetBufferin interfacejavax.servlet.ServletResponse
-
isCommitted
public boolean isCommitted()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isCommittedin interfacejavax.servlet.ServletResponse
-
reset
public void reset()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
resetin interfacejavax.servlet.ServletResponse
-
setLocale
public void setLocale(Locale loc)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setLocalein interfacejavax.servlet.ServletResponse
-
getLocale
public Locale getLocale()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLocalein interfacejavax.servlet.ServletResponse
-
addCookie
public void addCookie(javax.servlet.http.Cookie cookie)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addCookiein interfacejavax.servlet.http.HttpServletResponse
-
containsHeader
public boolean containsHeader(String name)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
containsHeaderin interfacejavax.servlet.http.HttpServletResponse
-
encodeURL
public String encodeURL(String url)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
encodeURLin interfacejavax.servlet.http.HttpServletResponse
-
encodeRedirectURL
public String encodeRedirectURL(String url)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
encodeRedirectURLin interfacejavax.servlet.http.HttpServletResponse
-
encodeUrl
public String encodeUrl(String url)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
encodeUrlin interfacejavax.servlet.http.HttpServletResponse
-
encodeRedirectUrl
public String encodeRedirectUrl(String url)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
encodeRedirectUrlin interfacejavax.servlet.http.HttpServletResponse
-
sendError
public void sendError(int sc, String msg) throws IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
sendErrorin interfacejavax.servlet.http.HttpServletResponse- Throws:
IOException
-
sendError
public void sendError(int sc) throws IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
sendErrorin interfacejavax.servlet.http.HttpServletResponse- Throws:
IOException
-
sendRedirect
public void sendRedirect(String location) throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
sendRedirectin interfacejavax.servlet.http.HttpServletResponse- Throws:
IOException
-
setDateHeader
public void setDateHeader(String name, long date)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setDateHeaderin interfacejavax.servlet.http.HttpServletResponse
-
addDateHeader
public void addDateHeader(String name, long date)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addDateHeaderin interfacejavax.servlet.http.HttpServletResponse
-
setHeader
public void setHeader(String name, String value)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setHeaderin interfacejavax.servlet.http.HttpServletResponse
-
addHeader
public void addHeader(String name, String value)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addHeaderin interfacejavax.servlet.http.HttpServletResponse
-
setIntHeader
public void setIntHeader(String name, int value)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setIntHeaderin interfacejavax.servlet.http.HttpServletResponse
-
addIntHeader
public void addIntHeader(String name, int value)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addIntHeaderin interfacejavax.servlet.http.HttpServletResponse
-
setStatus
public void setStatus(int sc)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setStatusin interfacejavax.servlet.http.HttpServletResponse
-
setStatus
public void setStatus(int sc, String sm)Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setStatusin interfacejavax.servlet.http.HttpServletResponse
-
getStatus
public int getStatus()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getStatusin interfacejavax.servlet.http.HttpServletResponse
-
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.HttpServletResponse
-
getHeaders
public Collection<String> getHeaders(String name)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getHeadersin interfacejavax.servlet.http.HttpServletResponse
-
getHeaderNames
public Collection<String> getHeaderNames()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getHeaderNamesin interfacejavax.servlet.http.HttpServletResponse
-
setContentLengthLong
public void setContentLengthLong(long len)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setContentLengthLongin interfacejavax.servlet.ServletResponse
-
getCurrent
protected javax.servlet.http.HttpServletResponse getCurrent()
Deprecated, for removal: This API element is subject to removal in a future version.Get the current HttpServletResponse from ThreadLocal storage.- Returns:
- the current response
-
-