Class ReuseStreamResponseWrapper
-
- All Implemented Interfaces:
-
jakarta.servlet.ServletResponse,jakarta.servlet.http.HttpServletResponse
public class ReuseStreamResponseWrapper extends ContentCachingResponseWrapper- Since:
2019-11-29
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public ServletOutputStreamoutputStreampublic PrintWriterwriterpublic ServletResponseresponsepublic final static intSC_CONTINUEpublic final static intSC_SWITCHING_PROTOCOLSpublic final static intSC_OKpublic final static intSC_CREATEDpublic final static intSC_ACCEPTEDpublic final static intSC_NON_AUTHORITATIVE_INFORMATIONpublic final static intSC_NO_CONTENTpublic final static intSC_RESET_CONTENTpublic final static intSC_PARTIAL_CONTENTpublic final static intSC_MULTIPLE_CHOICESpublic final static intSC_MOVED_PERMANENTLYpublic final static intSC_MOVED_TEMPORARILYpublic final static intSC_FOUNDpublic final static intSC_SEE_OTHERpublic final static intSC_NOT_MODIFIEDpublic final static intSC_USE_PROXYpublic final static intSC_TEMPORARY_REDIRECTpublic final static intSC_BAD_REQUESTpublic final static intSC_UNAUTHORIZEDpublic final static intSC_PAYMENT_REQUIREDpublic final static intSC_FORBIDDENpublic final static intSC_NOT_FOUNDpublic final static intSC_METHOD_NOT_ALLOWEDpublic final static intSC_NOT_ACCEPTABLEpublic final static intSC_PROXY_AUTHENTICATION_REQUIREDpublic final static intSC_REQUEST_TIMEOUTpublic final static intSC_CONFLICTpublic final static intSC_GONEpublic final static intSC_LENGTH_REQUIREDpublic final static intSC_PRECONDITION_FAILEDpublic final static intSC_REQUEST_ENTITY_TOO_LARGEpublic final static intSC_REQUEST_URI_TOO_LONGpublic final static intSC_UNSUPPORTED_MEDIA_TYPEpublic final static intSC_REQUESTED_RANGE_NOT_SATISFIABLEpublic final static intSC_EXPECTATION_FAILEDpublic final static intSC_INTERNAL_SERVER_ERRORpublic final static intSC_NOT_IMPLEMENTEDpublic final static intSC_BAD_GATEWAYpublic final static intSC_SERVICE_UNAVAILABLEpublic final static intSC_GATEWAY_TIMEOUTpublic final static intSC_HTTP_VERSION_NOT_SUPPORTED
-
Constructor Summary
Constructors Constructor Description ReuseStreamResponseWrapper(HttpServletResponse response)
-
Method Summary
Modifier and Type Method Description static ReuseStreamResponseWrapperinfer(ServletResponse response)booleancachingOutputStream(boolean quiet)ServletOutputStreamgetOutputStream()PrintWritergetWriter()voidflushBuffer()voidsetContentLength(int len)voidsetContentLengthLong(long len)voidsetBufferSize(int size)voidresetBuffer()-
Methods inherited from class org.springframework.web.util.ContentCachingResponseWrapper
copyBodyToResponse, getContentAsByteArray, getContentInputStream, getContentSize, getOutputStream, getWriter, reset, sendError, sendRedirect -
Methods inherited from class jakarta.servlet.ServletResponseWrapper
getBufferSize, getCharacterEncoding, getContentType, getLocale, getResponse, isCommitted, isWrapperFor, setCharacterEncoding, setContentType, setLocale, setResponse -
Methods inherited from class jakarta.servlet.http.HttpServletResponseWrapper
addCookie, addDateHeader, addHeader, addIntHeader, containsHeader, encodeRedirectURL, encodeURL, getHeader, getHeaderNames, getHeaders, getStatus, getTrailerFields, setDateHeader, setHeader, setIntHeader, setStatus, setTrailerFields -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
infer
static ReuseStreamResponseWrapper infer(ServletResponse response)
-
cachingOutputStream
boolean cachingOutputStream(boolean quiet)
-
getOutputStream
@NotNull() ServletOutputStream getOutputStream()
-
getWriter
@NotNull() PrintWriter getWriter()
-
flushBuffer
void flushBuffer()
-
setContentLength
void setContentLength(int len)
-
setContentLengthLong
void setContentLengthLong(long len)
-
setBufferSize
void setBufferSize(int size)
-
resetBuffer
void resetBuffer()
-
-
-
-