org.apache.coyote.tomcat4
Class CoyoteResponseFacade
java.lang.Object
ResponseFacade
org.apache.coyote.tomcat4.CoyoteResponseFacade
- public class CoyoteResponseFacade
- extends ResponseFacade
Facade class that wraps a Coyote response object.
All methods are delegated to the wrapped response.
- Version:
- $Revision: 1.3 $ $Date: 2004/02/24 08:54:29 $
- Author:
- Remy Maucherat
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
response
protected CoyoteResponse response
- The wrapped response.
CoyoteResponseFacade
public CoyoteResponseFacade(CoyoteResponse response)
- Construct a wrapper for the specified response.
- Parameters:
response
- The response to be wrapped
clear
public void clear()
- Clear facade.
finish
public void finish()
isFinished
public boolean isFinished()
getCharacterEncoding
public java.lang.String getCharacterEncoding()
getOutputStream
public ServletOutputStream getOutputStream()
throws java.io.IOException
- Throws:
java.io.IOException
getWriter
public java.io.PrintWriter getWriter()
throws java.io.IOException
- Throws:
java.io.IOException
setContentLength
public void setContentLength(int len)
setContentType
public void setContentType(java.lang.String type)
setBufferSize
public void setBufferSize(int size)
getBufferSize
public int getBufferSize()
flushBuffer
public void flushBuffer()
throws java.io.IOException
- Throws:
java.io.IOException
resetBuffer
public void resetBuffer()
isCommitted
public boolean isCommitted()
reset
public void reset()
setLocale
public void setLocale(java.util.Locale loc)
getLocale
public java.util.Locale getLocale()
addCookie
public void addCookie(Cookie cookie)
containsHeader
public boolean containsHeader(java.lang.String name)
encodeURL
public java.lang.String encodeURL(java.lang.String url)
encodeRedirectURL
public java.lang.String encodeRedirectURL(java.lang.String url)
encodeUrl
public java.lang.String encodeUrl(java.lang.String url)
encodeRedirectUrl
public java.lang.String encodeRedirectUrl(java.lang.String url)
sendError
public void sendError(int sc,
java.lang.String msg)
throws java.io.IOException
- Throws:
java.io.IOException
sendError
public void sendError(int sc)
throws java.io.IOException
- Throws:
java.io.IOException
sendRedirect
public void sendRedirect(java.lang.String location)
throws java.io.IOException
- Throws:
java.io.IOException
setDateHeader
public void setDateHeader(java.lang.String name,
long date)
addDateHeader
public void addDateHeader(java.lang.String name,
long date)
setHeader
public void setHeader(java.lang.String name,
java.lang.String value)
addHeader
public void addHeader(java.lang.String name,
java.lang.String value)
setIntHeader
public void setIntHeader(java.lang.String name,
int value)
addIntHeader
public void addIntHeader(java.lang.String name,
int value)
setStatus
public void setStatus(int sc)
setStatus
public void setStatus(int sc,
java.lang.String sm)
Copyright ? 2003 Apache Software Foundation. All Rights Reserved.