|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object seda.sandStorm.lib.http.httpResponder
public class httpResponder
This class is used to wrap an HTTP response along with the connection which it is destined for.
httpResponse
,
httpConnection
Field Summary | |
---|---|
private boolean |
closeConnection
|
private httpConnection |
conn
|
private httpResponse |
resp
|
private boolean |
sendHeader
|
Fields inherited from interface seda.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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private httpResponse resp
private httpConnection conn
private boolean closeConnection
private boolean sendHeader
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |