Facade class that wraps a Coyote response object.
All methods are delegated to the wrapped response.
addCookie
public void addCookie(Cookie cookie)
addDateHeader
public void addDateHeader(String name,
long date)
addHeader
public void addHeader(String name,
String value)
addIntHeader
public void addIntHeader(String name,
int value)
clear
public void clear()
Clear facade.
- clear in interface ResponseFacade
containsHeader
public boolean containsHeader(String name)
encodeRedirectURL
public String encodeRedirectURL(String url)
encodeRedirectUrl
public String encodeRedirectUrl(String url)
encodeURL
public String encodeURL(String url)
encodeUrl
public String encodeUrl(String url)
flushBuffer
public void flushBuffer()
throws IOException
- flushBuffer in interface ResponseFacade
getBufferSize
public int getBufferSize()
- getBufferSize in interface ResponseFacade
getCharacterEncoding
public String getCharacterEncoding()
- getCharacterEncoding in interface ResponseFacade
getLocale
public Locale getLocale()
- getLocale in interface ResponseFacade
getOutputStream
public ServletOutputStream getOutputStream()
throws IOException
- getOutputStream in interface ResponseFacade
getWriter
public PrintWriter getWriter()
throws IOException
- getWriter in interface ResponseFacade
isCommitted
public boolean isCommitted()
- isCommitted in interface ResponseFacade
isFinished
public boolean isFinished()
- isFinished in interface ResponseFacade
resetBuffer
public void resetBuffer()
- resetBuffer in interface ResponseFacade
sendError
public void sendError(int sc)
throws IOException
sendError
public void sendError(int sc,
String msg)
throws IOException
sendRedirect
public void sendRedirect(String location)
throws IOException
setBufferSize
public void setBufferSize(int size)
- setBufferSize in interface ResponseFacade
setContentLength
public void setContentLength(int len)
- setContentLength in interface ResponseFacade
setContentType
public void setContentType(String type)
- setContentType in interface ResponseFacade
setDateHeader
public void setDateHeader(String name,
long date)
setHeader
public void setHeader(String name,
String value)
setIntHeader
public void setIntHeader(String name,
int value)
setLocale
public void setLocale(Locale loc)
- setLocale in interface ResponseFacade
setStatus
public void setStatus(int sc)
setStatus
public void setStatus(int sc,
String sm)