|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.ServletResponseWrapper
javax.servlet.http.HttpServletResponseWrapper
org.mortbay.servlet.GzipFilter.GZIPResponseWrapper
public class GzipFilter.GZIPResponseWrapper
Field Summary |
---|
Constructor Summary | |
---|---|
GzipFilter.GZIPResponseWrapper(HttpServletRequest request,
HttpServletResponse response)
|
Method Summary | |
---|---|
void |
flushBuffer()
The default behavior of this method is to call flushBuffer() on the wrapped response object. |
ServletOutputStream |
getOutputStream()
The default behavior of this method is to return getOutputStream() on the wrapped response object. |
java.io.PrintWriter |
getWriter()
The default behavior of this method is to return getWriter() on the wrapped response object. |
protected GzipFilter.GzipStream |
newGzipStream(HttpServletRequest request,
HttpServletResponse response,
long contentLength,
int bufferSize,
int minGzipSize)
|
void |
reset()
The default behavior of this method is to call reset() on the wrapped response object. |
void |
resetBuffer()
The default behavior of this method is to call resetBuffer() on the wrapped response object. |
void |
sendError(int sc)
The default behavior of this method is to call sendError(int sc) on the wrapped response object. |
void |
sendError(int sc,
java.lang.String msg)
The default behavior of this method is to call sendError(int sc, String msg) on the wrapped response object. |
void |
sendRedirect(java.lang.String location)
The default behavior of this method is to return sendRedirect(String location) on the wrapped response object. |
void |
setContentLength(int length)
The default behavior of this method is to call setContentLength(int len) on the wrapped response object. |
void |
setContentType(java.lang.String ct)
The default behavior of this method is to call setContentType(String type) on the wrapped response object. |
void |
setHeader(java.lang.String name,
java.lang.String value)
The default behavior of this method is to return setHeader(String name, String value) on the wrapped response object. |
void |
setIntHeader(java.lang.String name,
int value)
The default behavior of this method is to call setIntHeader(String name, int value) on the wrapped response object. |
void |
setStatus(int sc)
The default behavior of this method is to call setStatus(int sc) on the wrapped response object. |
void |
setStatus(int sc,
java.lang.String sm)
The default behavior of this method is to call setStatus(int sc, String sm) on the wrapped response object. |
Methods inherited from class javax.servlet.http.HttpServletResponseWrapper |
---|
addCookie, addDateHeader, addHeader, addIntHeader, containsHeader, encodeRedirectUrl, encodeRedirectURL, encodeUrl, encodeURL, setDateHeader |
Methods inherited from class javax.servlet.ServletResponseWrapper |
---|
getBufferSize, getCharacterEncoding, getContentType, getLocale, getResponse, isCommitted, setBufferSize, setCharacterEncoding, setLocale, setResponse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.ServletResponse |
---|
getBufferSize, getCharacterEncoding, getContentType, getLocale, isCommitted, setBufferSize, setCharacterEncoding, setLocale |
Constructor Detail |
---|
public GzipFilter.GZIPResponseWrapper(HttpServletRequest request, HttpServletResponse response)
Method Detail |
---|
public void setContentType(java.lang.String ct)
ServletResponseWrapper
setContentType
in interface ServletResponse
setContentType
in class ServletResponseWrapper
ct
- a String
specifying the MIME
type of the contentServletResponse.setLocale(java.util.Locale)
,
ServletResponse.setCharacterEncoding(java.lang.String)
,
ServletResponse.getOutputStream()
,
ServletResponse.getWriter()
public void setStatus(int sc, java.lang.String sm)
HttpServletResponseWrapper
setStatus
in interface HttpServletResponse
setStatus
in class HttpServletResponseWrapper
sc
- the status codesm
- the status messagepublic void setStatus(int sc)
HttpServletResponseWrapper
setStatus
in interface HttpServletResponse
setStatus
in class HttpServletResponseWrapper
sc
- the status codeHttpServletResponse.sendError(int, java.lang.String)
public void setContentLength(int length)
ServletResponseWrapper
setContentLength
in interface ServletResponse
setContentLength
in class ServletResponseWrapper
length
- an integer specifying the length of the
content being returned to the client; sets
the Content-Length headerpublic void setHeader(java.lang.String name, java.lang.String value)
HttpServletResponseWrapper
setHeader
in interface HttpServletResponse
setHeader
in class HttpServletResponseWrapper
name
- the name of the headervalue
- the header value If it contains octet string,
it should be encoded according to RFC 2047
(http://www.ietf.org/rfc/rfc2047.txt)HttpServletResponse.containsHeader(java.lang.String)
,
HttpServletResponse.addHeader(java.lang.String, java.lang.String)
public void setIntHeader(java.lang.String name, int value)
HttpServletResponseWrapper
setIntHeader
in interface HttpServletResponse
setIntHeader
in class HttpServletResponseWrapper
name
- the name of the headervalue
- the assigned integer valueHttpServletResponse.containsHeader(java.lang.String)
,
HttpServletResponse.addIntHeader(java.lang.String, int)
public void flushBuffer() throws java.io.IOException
ServletResponseWrapper
flushBuffer
in interface ServletResponse
flushBuffer
in class ServletResponseWrapper
java.io.IOException
ServletResponse.setBufferSize(int)
,
ServletResponse.getBufferSize()
,
ServletResponse.isCommitted()
,
ServletResponse.reset()
public void reset()
ServletResponseWrapper
reset
in interface ServletResponse
reset
in class ServletResponseWrapper
ServletResponse.setBufferSize(int)
,
ServletResponse.getBufferSize()
,
ServletResponse.flushBuffer()
,
ServletResponse.isCommitted()
public void resetBuffer()
ServletResponseWrapper
resetBuffer
in interface ServletResponse
resetBuffer
in class ServletResponseWrapper
ServletResponse.setBufferSize(int)
,
ServletResponse.getBufferSize()
,
ServletResponse.isCommitted()
,
ServletResponse.reset()
public void sendError(int sc, java.lang.String msg) throws java.io.IOException
HttpServletResponseWrapper
sendError
in interface HttpServletResponse
sendError
in class HttpServletResponseWrapper
sc
- the error status codemsg
- the descriptive message
java.io.IOException
- If an input or output exception occurspublic void sendError(int sc) throws java.io.IOException
HttpServletResponseWrapper
sendError
in interface HttpServletResponse
sendError
in class HttpServletResponseWrapper
sc
- the error status code
java.io.IOException
- If an input or output exception occurspublic void sendRedirect(java.lang.String location) throws java.io.IOException
HttpServletResponseWrapper
sendRedirect
in interface HttpServletResponse
sendRedirect
in class HttpServletResponseWrapper
location
- the redirect location URL
java.io.IOException
- If an input or output exception occurspublic ServletOutputStream getOutputStream() throws java.io.IOException
ServletResponseWrapper
getOutputStream
in interface ServletResponse
getOutputStream
in class ServletResponseWrapper
ServletOutputStream
for writing binary data
java.io.IOException
- if an input or output exception occurredServletResponse.getWriter()
public java.io.PrintWriter getWriter() throws java.io.IOException
ServletResponseWrapper
getWriter
in interface ServletResponse
getWriter
in class ServletResponseWrapper
PrintWriter
object that
can return character data to the client
java.io.IOException
- if an input or output exception occurredServletResponse.getOutputStream()
,
ServletResponse.setCharacterEncoding(java.lang.String)
protected GzipFilter.GzipStream newGzipStream(HttpServletRequest request, HttpServletResponse response, long contentLength, int bufferSize, int minGzipSize) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |