javax.servlet
Class ServletResponseWrapper
java.lang.Object
javax.servlet.ServletResponseWrapper
- All Implemented Interfaces:
- ServletResponse
- Direct Known Subclasses:
- HttpServletResponseWrapper
public class ServletResponseWrapper
- extends java.lang.Object
- implements ServletResponse
Wraps a servlet response object using the decorator pattern
- Author:
- Rick Knowles
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletResponseWrapper
public ServletResponseWrapper(ServletResponse response)
getResponse
public ServletResponse getResponse()
setResponse
public void setResponse(ServletResponse response)
getLocale
public java.util.Locale getLocale()
- Specified by:
getLocale
in interface ServletResponse
setLocale
public void setLocale(java.util.Locale loc)
- Specified by:
setLocale
in interface ServletResponse
getOutputStream
public ServletOutputStream getOutputStream()
throws java.io.IOException
- Specified by:
getOutputStream
in interface ServletResponse
- Throws:
java.io.IOException
getWriter
public java.io.PrintWriter getWriter()
throws java.io.IOException
- Specified by:
getWriter
in interface ServletResponse
- Throws:
java.io.IOException
isCommitted
public boolean isCommitted()
- Specified by:
isCommitted
in interface ServletResponse
getBufferSize
public int getBufferSize()
- Specified by:
getBufferSize
in interface ServletResponse
setBufferSize
public void setBufferSize(int size)
- Specified by:
setBufferSize
in interface ServletResponse
reset
public void reset()
- Specified by:
reset
in interface ServletResponse
resetBuffer
public void resetBuffer()
- Specified by:
resetBuffer
in interface ServletResponse
flushBuffer
public void flushBuffer()
throws java.io.IOException
- Specified by:
flushBuffer
in interface ServletResponse
- Throws:
java.io.IOException
setContentLength
public void setContentLength(int len)
- Specified by:
setContentLength
in interface ServletResponse
setContentType
public void setContentType(java.lang.String type)
- Specified by:
setContentType
in interface ServletResponse
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interface ServletResponse
getCharacterEncoding
public java.lang.String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in interface ServletResponse
setCharacterEncoding
public void setCharacterEncoding(java.lang.String charset)
- Specified by:
setCharacterEncoding
in interface ServletResponse
Copyright © 2013. All Rights Reserved.