|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectseda.sandStorm.lib.http.httpResponse
seda.sandStorm.lib.http.httpOKResponse
public class httpOKResponse
An httpResponse corresponding to a '200 OK' response.
Field Summary |
---|
Fields inherited from class seda.sandStorm.lib.http.httpResponse |
---|
code, combinedData, contentLength, DEFAULT_MIME_TYPE, defaultHeader, header, payload, RESPONSE_BAD_REQUEST, RESPONSE_INTERNAL_SERVER_ERROR, RESPONSE_NOT_FOUND, RESPONSE_OK, RESPONSE_REDIRECT, RESPONSE_SERVICE_UNAVAILABLE |
Fields inherited from interface seda.sandStorm.lib.http.httpConst |
---|
CRLF, DEFAULT_HTTP_PORT, HTTP_VERSION, WRITE_CLOG_THRESHOLD |
Constructor Summary | |
---|---|
httpOKResponse(java.lang.String contentType,
BufferElement payload)
Create an httpOKResponse with the given payload corresponding to the given request, using the given MIME content-type. |
|
httpOKResponse(java.lang.String contentType,
BufferElement payload,
int contentLength)
Create an httpOKResponse with the given payload corresponding to the given request, using the given MIME content-type. |
|
httpOKResponse(java.lang.String contentType,
int payloadSize)
Create an httpOKResponse with a given response payload size and MIME type. |
|
httpOKResponse(java.lang.String contentType,
int payloadSize,
SinkIF compQ)
Create an httpOKResponse with a given response payload size, MIME type, and completion sink. |
Method Summary | |
---|---|
protected java.lang.String |
getEntityHeader()
Return the entity header as a String. |
java.lang.String |
toString()
|
Methods inherited from class seda.sandStorm.lib.http.httpResponse |
---|
getBuffers, getDefaultHeader, getHeader, getPayload, setDefaultHeader, setPayload |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public httpOKResponse(java.lang.String contentType, BufferElement payload)
public httpOKResponse(java.lang.String contentType, BufferElement payload, int contentLength)
public httpOKResponse(java.lang.String contentType, int payloadSize)
public httpOKResponse(java.lang.String contentType, int payloadSize, SinkIF compQ)
Method Detail |
---|
protected java.lang.String getEntityHeader()
httpResponse
getEntityHeader
in class httpResponse
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |