|
More information: http://www.cs.berkeley.edu/~mdw/proj/seda/ | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mdw.sandStorm.lib.http.httpResponder
This class is used to wrap an HTTP response along with the connection which it is destined for.
httpResponse
,
httpConnection
Fields inherited from interface mdw.sandStorm.lib.http.httpConst |
CRLF, DEFAULT_HTTP_PORT, HTTP_VERSION, WRITE_CLOG_THRESHOLD |
Constructor Summary | |
httpResponder(httpResponse resp,
httpConnection conn)
Create an httpResponder with the given response and connection. |
|
httpResponder(httpResponse resp,
httpConnection conn,
boolean closeConnection)
Create an httpResponder with the given response and connection. |
|
httpResponder(httpResponse resp,
httpConnection conn,
boolean closeConnection,
boolean sendHeader)
Create an httpResponder with the given response and connection. |
|
httpResponder(httpResponse resp,
httpRequest req)
Create an httpResponder with the given response, with the connection being derived from the given request. |
|
httpResponder(httpResponse resp,
httpRequest req,
boolean closeConnection)
Create an httpResponder with the given response, with the connection being derived from the given request. |
|
httpResponder(httpResponse resp,
httpRequest req,
boolean closeConnection,
boolean sendHeader)
Create an httpResponder with the given response, with the connection being derived from the given request. |
Method Summary | |
httpConnection |
getConnection()
Return the connection for this responder. |
httpResponse |
getResponse()
Return the response for this responder. |
boolean |
sendHeader()
Returns whether the response header should be sent. |
boolean |
shouldClose()
Returns whether the connection should be closed after sending this response. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public httpResponder(httpResponse resp, httpConnection conn, boolean closeConnection, boolean sendHeader)
closeConnection
- Indicate that the connection should be
closed after sending this response.sendHeader
- Indicate that the header of the response should
be sent along with the payload.public httpResponder(httpResponse resp, httpConnection conn, boolean closeConnection)
closeConnection
- Indicate that the connection should be
closed after sending this response.public httpResponder(httpResponse resp, httpConnection conn)
public httpResponder(httpResponse resp, httpRequest req, boolean closeConnection, boolean sendHeader)
closeConnection
- Indicate that the connection should be
closed after sending this response.sendHeader
- Indicate that the header of the response should
be sent along with the payload.public httpResponder(httpResponse resp, httpRequest req, boolean closeConnection)
closeConnection
- Indicate that the connection should be
closed after sending this response.public httpResponder(httpResponse resp, httpRequest req)
Method Detail |
public httpConnection getConnection()
public httpResponse getResponse()
public boolean shouldClose()
public boolean sendHeader()
|
More information: http://www.cs.berkeley.edu/~mdw/proj/seda/ | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |