Class ThreadLocalHttpServletResponseProxy
java.lang.Object
net.shibboleth.utilities.java.support.net.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 of
HttpServletResponse which serves as a proxy for the
current thread-local servlet response obtained from HttpServletRequestResponseContext.
This should be avoided in place of ThreadLocalHttpServletResponseSupplier which
indirects the access to the interface.
-
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
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCookie(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.voidDeprecated, 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.encodeRedirectUrl(String url) Deprecated, for removal: This API element is subject to removal in a future version.encodeRedirectURL(String url) 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.voidDeprecated, 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.Deprecated, for removal: This API element is subject to removal in a future version.protected javax.servlet.http.HttpServletResponseDeprecated, for removal: This API element is subject to removal in a future version.Get the current HttpServletResponse from ThreadLocal storage.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.Deprecated, for removal: This API element is subject to removal in a future version.javax.servlet.ServletOutputStreamDeprecated, 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.booleanDeprecated, 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.voidDeprecated, 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.voidDeprecated, 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.voidDeprecated, 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.voidDeprecated, 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.voidDeprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
ThreadLocalHttpServletResponseProxy
public ThreadLocalHttpServletResponseProxy()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getCharacterEncoding
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getCharacterEncodingin interfacejavax.servlet.ServletResponse
-
getContentType
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getContentTypein interfacejavax.servlet.ServletResponse
-
getOutputStream
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getOutputStreamin interfacejavax.servlet.ServletResponse- Throws:
IOException
-
getWriter
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getWriterin interfacejavax.servlet.ServletResponse- Throws:
IOException
-
setCharacterEncoding
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
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
Deprecated, 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
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setLocalein interfacejavax.servlet.ServletResponse
-
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
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
containsHeaderin interfacejavax.servlet.http.HttpServletResponse
-
encodeURL
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
encodeURLin interfacejavax.servlet.http.HttpServletResponse
-
encodeRedirectURL
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
encodeRedirectURLin interfacejavax.servlet.http.HttpServletResponse
-
encodeUrl
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
encodeUrlin interfacejavax.servlet.http.HttpServletResponse
-
encodeRedirectUrl
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
encodeRedirectUrlin interfacejavax.servlet.http.HttpServletResponse
-
sendError
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
sendErrorin interfacejavax.servlet.http.HttpServletResponse- Throws:
IOException
-
sendError
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
sendErrorin interfacejavax.servlet.http.HttpServletResponse- Throws:
IOException
-
sendRedirect
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
sendRedirectin interfacejavax.servlet.http.HttpServletResponse- Throws:
IOException
-
setDateHeader
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setDateHeaderin interfacejavax.servlet.http.HttpServletResponse
-
addDateHeader
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addDateHeaderin interfacejavax.servlet.http.HttpServletResponse
-
setHeader
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setHeaderin interfacejavax.servlet.http.HttpServletResponse
-
addHeader
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addHeaderin interfacejavax.servlet.http.HttpServletResponse
-
setIntHeader
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setIntHeaderin interfacejavax.servlet.http.HttpServletResponse
-
addIntHeader
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
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
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getHeaderin interfacejavax.servlet.http.HttpServletResponse
-
getHeaders
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getHeadersin interfacejavax.servlet.http.HttpServletResponse
-
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
-