org.apache.catalina.connector

Class ResponseFacade

Implemented Interfaces:
ServletResponse
Known Direct Subclasses:
CoyoteResponseFacade, CoyoteResponseFacade, HttpResponseFacade

public class ResponseFacade
extends java.lang.Object
implements ServletResponse

Facade class that wraps a Catalina-internal Response object. All methods are delegated to the wrapped response.

Version:
$Revision: 1.5 $ $Date: 2004/02/27 14:58:41 $

Author:
Remy Maucherat

Field Summary

protected Response
resp
The wrapped response.
protected ServletResponse
response
The wrapped response.

Constructor Summary

ResponseFacade(Response response)
Construct a wrapper for the specified response.

Method Summary

void
clear()
Clear facade.
void
finish()
void
flushBuffer()
int
getBufferSize()
String
getCharacterEncoding()
String
getContentType()
Locale
getLocale()
ServletOutputStream
getOutputStream()
PrintWriter
getWriter()
boolean
isCommitted()
boolean
isFinished()
void
reset()
void
resetBuffer()
void
setBufferSize(int size)
void
setCharacterEncoding(String charset)
void
setContentLength(int len)
void
setContentType(String type)
void
setLocale(Locale loc)

Field Details

resp

protected Response resp
The wrapped response.


response

protected ServletResponse response
The wrapped response.

Constructor Details

ResponseFacade

public ResponseFacade(Response response)
Construct a wrapper for the specified response.

Parameters:
response - The response to be wrapped

Method Details

clear

public void clear()
Clear facade.


finish

public void finish()


flushBuffer

public void flushBuffer()
            throws IOException


getBufferSize

public int getBufferSize()


getCharacterEncoding

public String getCharacterEncoding()


getContentType

public String getContentType()


getLocale

public Locale getLocale()


getOutputStream

public ServletOutputStream getOutputStream()
            throws IOException


getWriter

public PrintWriter getWriter()
            throws IOException


isCommitted

public boolean isCommitted()


isFinished

public boolean isFinished()


reset

public void reset()


resetBuffer

public void resetBuffer()


setBufferSize

public void setBufferSize(int size)


setCharacterEncoding

public void setCharacterEncoding(String charset)


setContentLength

public void setContentLength(int len)


setContentType

public void setContentType(String type)


setLocale

public void setLocale(Locale loc)


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.