org.apache.coyote

Class Response


public final class Response
extends java.lang.Object

Field Summary

protected String
characterEncoding
protected boolean
charsetSet
protected boolean
commited
protected String
contentLanguage
protected int
contentLength
protected String
contentType
protected Exception
errorException
protected String
errorURI
protected MimeHeaders
headers
ActionHook
hook
protected String
message
protected Object[]
notes
protected OutputBuffer
outputBuffer
protected Request
req
protected int
status

Constructor Summary

Response()

Method Summary

void
acknowledge()
void
action(ActionCode actionCode, Object param)
void
addHeader(String name, String value)
boolean
containsHeader(String name)
void
doWrite(ByteChunk chunk)
void
finish()
long
getBytesWritten()
String
getCharacterEncoding()
String
getContentLanguage()
int
getContentLength()
String
getContentType()
Exception
getErrorException()
String
getErrorURI()
ActionHook
getHook()
Locale
getLocale()
String
getMessage()
MimeHeaders
getMimeHeaders()
Object
getNote(int pos)
OutputBuffer
getOutputBuffer()
Request
getRequest()
int
getStatus()
boolean
isCommitted()
boolean
isExceptionPresent()
void
recycle()
void
reset()
void
sendHeaders()
void
setBytesWritten(long bytesWritten)
void
setCharacterEncoding(String charset)
void
setCommitted(boolean v)
void
setContentLength(int contentLength)
void
setContentType(String type)
void
setErrorException(Exception ex)
void
setErrorURI(String uri)
void
setHeader(String name, String value)
void
setHook(ActionHook hook)
void
setLocale(Locale locale)
void
setMessage(String message)
void
setNote(int pos, Object value)
void
setOutputBuffer(OutputBuffer outputBuffer)
void
setRequest(Request req)
void
setStatus(int status)

Field Details

characterEncoding

protected String characterEncoding


charsetSet

protected boolean charsetSet


commited

protected boolean commited


contentLanguage

protected String contentLanguage


contentLength

protected int contentLength


contentType

protected String contentType


errorException

protected Exception errorException


errorURI

protected String errorURI


headers

protected MimeHeaders headers


hook

public ActionHook hook


message

protected String message


notes

protected Object[] notes


outputBuffer

protected OutputBuffer outputBuffer


req

protected Request req


status

protected int status

Constructor Details

Response

public Response()

Method Details

acknowledge

public void acknowledge()
            throws IOException


action

public void action(ActionCode actionCode,
                   Object param)


addHeader

public void addHeader(String name,
                      String value)


containsHeader

public boolean containsHeader(String name)


doWrite

public void doWrite(ByteChunk chunk)
            throws IOException


finish

public void finish()
            throws IOException


getBytesWritten

public long getBytesWritten()


getCharacterEncoding

public String getCharacterEncoding()


getContentLanguage

public String getContentLanguage()


getContentLength

public int getContentLength()


getContentType

public String getContentType()


getErrorException

public Exception getErrorException()


getErrorURI

public String getErrorURI()


getHook

public ActionHook getHook()


getLocale

public Locale getLocale()


getMessage

public String getMessage()


getMimeHeaders

public MimeHeaders getMimeHeaders()


getNote

public final Object getNote(int pos)


getOutputBuffer

public OutputBuffer getOutputBuffer()


getRequest

public Request getRequest()


getStatus

public int getStatus()


isCommitted

public boolean isCommitted()


isExceptionPresent

public boolean isExceptionPresent()


recycle

public void recycle()


reset

public void reset()
            throws IllegalStateException


sendHeaders

public void sendHeaders()
            throws IOException


setBytesWritten

public void setBytesWritten(long bytesWritten)


setCharacterEncoding

public void setCharacterEncoding(String charset)


setCommitted

public void setCommitted(boolean v)


setContentLength

public void setContentLength(int contentLength)


setContentType

public void setContentType(String type)


setErrorException

public void setErrorException(Exception ex)


setErrorURI

public void setErrorURI(String uri)


setHeader

public void setHeader(String name,
                      String value)


setHook

public void setHook(ActionHook hook)


setLocale

public void setLocale(Locale locale)


setMessage

public void setMessage(String message)


setNote

public final void setNote(int pos,
                          Object value)


setOutputBuffer

public void setOutputBuffer(OutputBuffer outputBuffer)


setRequest

public void setRequest(Request req)


setStatus

public void setStatus(int status)


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