public abstract class HTTPResponse
extends java.lang.Object
| Constructor and Description |
|---|
HTTPResponse() |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
calculateSize(ConnectionInfo connectionInfo) |
abstract HTTPResponseHeader |
getResponseHeader() |
java.lang.String |
getUniqueIdForAttachmentCleanup() |
abstract void |
serializeResponseBody(URI request,
HTTPRequestHeader header,
java.io.OutputStream out,
ConnectionInfo connectionInfo,
MonitoringContext context) |
void |
setMIMEReaderToWaitFor(MIMEReader readerToWaitFor) |
void |
waitFor()
The purpose of this method is to make the HTTP server wait before accepting the next request
over the same connection, consuming unread bytes from the connection's input stream or closing
the connection.
|
public abstract HTTPResponseHeader getResponseHeader()
public abstract void serializeResponseBody(URI request, HTTPRequestHeader header, java.io.OutputStream out, ConnectionInfo connectionInfo, MonitoringContext context) throws java.io.IOException
java.io.IOExceptionpublic abstract long calculateSize(ConnectionInfo connectionInfo)
public void waitFor()
HTTPRequestHandler which
generated this HTTPResponse instance is done with request processing.public void setMIMEReaderToWaitFor(MIMEReader readerToWaitFor)
public java.lang.String getUniqueIdForAttachmentCleanup()