org.apache.catalina.core

Class DummyResponse

Implemented Interfaces:
HttpResponse, HttpServletResponse, Response

public class DummyResponse
extends java.lang.Object
implements HttpResponse, HttpServletResponse

Dummy response object, used for JSP precompilation.

Version:
$Revision: 1.3 $ $Date: 2004/02/27 14:58:42 $

Author:
Remy Maucherat

Constructor Summary

DummyResponse()

Method Summary

void
addCookie(Cookie cookie)
void
addDateHeader(String name, long value)
void
addHeader(String name, String value)
void
addIntHeader(String name, int value)
boolean
containsHeader(String name)
ServletOutputStream
createOutputStream()
String
encodeRedirectURL(String url)
String
encodeRedirectUrl(String url)
String
encodeURL(String url)
String
encodeUrl(String url)
void
finishResponse()
void
flushBuffer()
int
getBufferSize()
String
getCharacterEncoding()
Connector
getConnector()
int
getContentCount()
int
getContentLength()
String
getContentType()
Context
getContext()
Cookie[]
getCookies()
String
getHeader(String name)
String[]
getHeaderNames()
String[]
getHeaderValues(String name)
boolean
getIncluded()
String
getInfo()
Locale
getLocale()
String
getMessage()
ServletOutputStream
getOutputStream()
PrintWriter
getReporter()
Request
getRequest()
ServletResponse
getResponse()
int
getStatus()
OutputStream
getStream()
PrintWriter
getWriter()
boolean
isAppCommitted()
boolean
isCommitted()
boolean
isError()
boolean
isSuspended()
void
recycle()
void
reset()
void
reset(int status, String message)
void
resetBuffer()
void
sendAcknowledgement()
void
sendError(int status)
void
sendError(int status, String message)
void
sendRedirect(String location)
void
setAppCommitted(boolean appCommitted)
void
setBufferSize(int size)
void
setCharacterEncoding(String charEncoding)
void
setConnector(Connector connector)
void
setContentLength(int length)
void
setContentType(String type)
void
setContext(Context context)
void
setDateHeader(String name, long value)
void
setError()
void
setHeader(String name, String value)
void
setIncluded(boolean included)
void
setIntHeader(String name, int value)
void
setLocale(Locale locale)
void
setRequest(Request request)
void
setStatus(int status)
void
setStatus(int status, String message)
void
setStream(OutputStream stream)
void
setSuspended(boolean suspended)
void
write(b[] )
void
write(b[] , int off, int len)
void
write(int b)

Constructor Details

DummyResponse

public DummyResponse()

Method Details

addCookie

public void addCookie(Cookie cookie)


addDateHeader

public void addDateHeader(String name,
                          long value)


addHeader

public void addHeader(String name,
                      String value)


addIntHeader

public void addIntHeader(String name,
                         int value)


containsHeader

public boolean containsHeader(String name)


createOutputStream

public ServletOutputStream createOutputStream()
            throws IOException
Specified by:
createOutputStream in interface Response


encodeRedirectURL

public String encodeRedirectURL(String url)


encodeRedirectUrl

public String encodeRedirectUrl(String url)


encodeURL

public String encodeURL(String url)


encodeUrl

public String encodeUrl(String url)


finishResponse

public void finishResponse()
            throws IOException
Specified by:
finishResponse in interface Response


flushBuffer

public void flushBuffer()
            throws IOException


getBufferSize

public int getBufferSize()


getCharacterEncoding

public String getCharacterEncoding()


getConnector

public Connector getConnector()
Specified by:
getConnector in interface Response


getContentCount

public int getContentCount()
Specified by:
getContentCount in interface Response


getContentLength

public int getContentLength()
Specified by:
getContentLength in interface Response


getContentType

public String getContentType()
Specified by:
getContentType in interface Response


getContext

public Context getContext()
Specified by:
getContext in interface Response


getCookies

public Cookie[] getCookies()
Specified by:
getCookies in interface HttpResponse


getHeader

public String getHeader(String name)
Specified by:
getHeader in interface HttpResponse


getHeaderNames

public String[] getHeaderNames()
Specified by:
getHeaderNames in interface HttpResponse


getHeaderValues

public String[] getHeaderValues(String name)
Specified by:
getHeaderValues in interface HttpResponse


getIncluded

public boolean getIncluded()
Specified by:
getIncluded in interface Response


getInfo

public String getInfo()
Specified by:
getInfo in interface Response


getLocale

public Locale getLocale()


getMessage

public String getMessage()
Specified by:
getMessage in interface HttpResponse


getOutputStream

public ServletOutputStream getOutputStream()
            throws IOException


getReporter

public PrintWriter getReporter()
Specified by:
getReporter in interface Response


getRequest

public Request getRequest()
Specified by:
getRequest in interface Response


getResponse

public ServletResponse getResponse()
Specified by:
getResponse in interface Response


getStatus

public int getStatus()
Specified by:
getStatus in interface HttpResponse


getStream

public OutputStream getStream()
Specified by:
getStream in interface Response


getWriter

public PrintWriter getWriter()
            throws IOException


isAppCommitted

public boolean isAppCommitted()
Specified by:
isAppCommitted in interface Response


isCommitted

public boolean isCommitted()


isError

public boolean isError()
Specified by:
isError in interface Response


isSuspended

public boolean isSuspended()
Specified by:
isSuspended in interface Response


recycle

public void recycle()
Specified by:
recycle in interface Response


reset

public void reset()


reset

public void reset(int status,
                  String message)
Specified by:
reset in interface HttpResponse


resetBuffer

public void resetBuffer()
Specified by:
resetBuffer in interface Response


sendAcknowledgement

public void sendAcknowledgement()
            throws IOException
Specified by:
sendAcknowledgement in interface Response


sendError

public void sendError(int status)
            throws IOException


sendError

public void sendError(int status,
                      String message)
            throws IOException


sendRedirect

public void sendRedirect(String location)
            throws IOException


setAppCommitted

public void setAppCommitted(boolean appCommitted)
Specified by:
setAppCommitted in interface Response


setBufferSize

public void setBufferSize(int size)


setCharacterEncoding

public void setCharacterEncoding(String charEncoding)


setConnector

public void setConnector(Connector connector)
Specified by:
setConnector in interface Response


setContentLength

public void setContentLength(int length)


setContentType

public void setContentType(String type)


setContext

public void setContext(Context context)
Specified by:
setContext in interface Response


setDateHeader

public void setDateHeader(String name,
                          long value)


setError

public void setError()
Specified by:
setError in interface Response


setHeader

public void setHeader(String name,
                      String value)


setIncluded

public void setIncluded(boolean included)
Specified by:
setIncluded in interface Response


setIntHeader

public void setIntHeader(String name,
                         int value)


setLocale

public void setLocale(Locale locale)


setRequest

public void setRequest(Request request)
Specified by:
setRequest in interface Response


setStatus

public void setStatus(int status)


setStatus

public void setStatus(int status,
                      String message)


setStream

public void setStream(OutputStream stream)
Specified by:
setStream in interface Response


setSuspended

public void setSuspended(boolean suspended)
Specified by:
setSuspended in interface Response


write

public void write(b[] )
            throws IOException


write

public void write(b[] ,
                  int off,
                  int len)
            throws IOException


write

public void write(int b)
            throws IOException


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