Package de.mhus.lib.servlet
Class HttpServletResponseWrapper
- java.lang.Object
-
- de.mhus.lib.servlet.HttpServletResponseWrapper
-
- All Implemented Interfaces:
ResponseWrapper
public class HttpServletResponseWrapper extends Object implements ResponseWrapper
-
-
Constructor Summary
Constructors Constructor Description HttpServletResponseWrapper(javax.servlet.http.HttpServletResponse instance)
-
Method Summary
-
-
-
Method Detail
-
addCookie
public void addCookie(javax.servlet.http.Cookie cookie)
-
containsHeader
public boolean containsHeader(String name)
-
getCharacterEncoding
public String getCharacterEncoding()
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceResponseWrapper
-
getOutputStream
public javax.servlet.ServletOutputStream getOutputStream() throws IOException- Specified by:
getOutputStreamin interfaceResponseWrapper- Throws:
IOException
-
sendError
public void sendError(int sc, String msg) throws IOException- Specified by:
sendErrorin interfaceResponseWrapper- Throws:
IOException
-
getWriter
public PrintWriter getWriter() throws IOException
- Specified by:
getWriterin interfaceResponseWrapper- Throws:
IOException
-
sendError
public void sendError(int sc) throws IOException- Specified by:
sendErrorin interfaceResponseWrapper- Throws:
IOException
-
setCharacterEncoding
public void setCharacterEncoding(String charset)
- Specified by:
setCharacterEncodingin interfaceResponseWrapper
-
sendRedirect
public void sendRedirect(String location) throws IOException
- Specified by:
sendRedirectin interfaceResponseWrapper- Throws:
IOException
-
setContentLength
public void setContentLength(int len)
-
setContentLengthLong
public void setContentLengthLong(long len)
-
setDateHeader
public void setDateHeader(String name, long date)
- Specified by:
setDateHeaderin interfaceResponseWrapper
-
setContentType
public void setContentType(String type)
- Specified by:
setContentTypein interfaceResponseWrapper
-
addDateHeader
public void addDateHeader(String name, long date)
- Specified by:
addDateHeaderin interfaceResponseWrapper
-
setHeader
public void setHeader(String name, String value)
- Specified by:
setHeaderin interfaceResponseWrapper
-
setBufferSize
public void setBufferSize(int size)
-
addHeader
public void addHeader(String name, String value)
- Specified by:
addHeaderin interfaceResponseWrapper
-
setIntHeader
public void setIntHeader(String name, int value)
- Specified by:
setIntHeaderin interfaceResponseWrapper
-
getBufferSize
public int getBufferSize()
-
addIntHeader
public void addIntHeader(String name, int value)
- Specified by:
addIntHeaderin interfaceResponseWrapper
-
flushBuffer
public void flushBuffer() throws IOException- Specified by:
flushBufferin interfaceResponseWrapper- Throws:
IOException
-
setStatus
public void setStatus(int sc)
- Specified by:
setStatusin interfaceResponseWrapper
-
resetBuffer
public void resetBuffer()
-
isCommitted
public boolean isCommitted()
- Specified by:
isCommittedin interfaceResponseWrapper
-
setStatus
public void setStatus(int sc, String sm)- Specified by:
setStatusin interfaceResponseWrapper
-
reset
public void reset()
-
getStatus
public int getStatus()
- Specified by:
getStatusin interfaceResponseWrapper
-
getHeader
public String getHeader(String name)
- Specified by:
getHeaderin interfaceResponseWrapper
-
setLocale
public void setLocale(Locale loc)
- Specified by:
setLocalein interfaceResponseWrapper
-
getHeaders
public Collection<String> getHeaders(String name)
- Specified by:
getHeadersin interfaceResponseWrapper
-
getHeaderNames
public Collection<String> getHeaderNames()
- Specified by:
getHeaderNamesin interfaceResponseWrapper
-
getLocale
public Locale getLocale()
- Specified by:
getLocalein interfaceResponseWrapper
-
-