Package | Description |
---|---|
ej.hoka.http |
Base HTTP handling classes.
|
Modifier and Type | Field and Description |
---|---|
static HTTPResponse |
HTTPResponse.RESPONSE_BAD_REQUEST
An empty HTTP response with status code 400.
|
static HTTPResponse |
HTTPResponse.RESPONSE_FORBIDDEN
An empty HTTP response with status code 403.
|
static HTTPResponse |
HTTPResponse.RESPONSE_INTERNAL_ERROR
An empty HTTP response with status code 500.
|
static HTTPResponse |
HTTPResponse.RESPONSE_METHOD_NOT_ALLOWED
An empty HTTP response with status code 405.
|
static HTTPResponse |
HTTPResponse.RESPONSE_MOVED_PERMANENTLY
An empty HTTP response with status code 301.
|
static HTTPResponse |
HTTPResponse.RESPONSE_NOT_ACCEPTABLE
An empty HTTP response with status code 406.
|
static HTTPResponse |
HTTPResponse.RESPONSE_NOT_FOUND
An empty HTTP response with status code 404.
|
static HTTPResponse |
HTTPResponse.RESPONSE_NOT_IMPLEMENTED
An empty HTTP response with status code 501.
|
static HTTPResponse |
HTTPResponse.RESPONSE_NOT_MODIFIED
An empty HTTP response with status code 304.
|
static HTTPResponse |
HTTPResponse.RESPONSE_OK
An empty HTTP response with status code 200.
|
static HTTPResponse |
HTTPResponse.RESPONSE_UNSUPPORTED_MEDIA_TYPE
An empty HTTP response with status code 415.
|
Modifier and Type | Method and Description |
---|---|
protected abstract HTTPResponse |
HTTPSession.answer(HTTPRequest request)
Generates
HTTPResponse to a HTTPRequest . |
HTTPResponse |
DefaultHTTPSession.answer(HTTPRequest request)
The generic behaviour of this session implementation is to find a resource matching the given URI in the
classpath.
|
static HTTPResponse |
HTTPSession.createErrorResponse(java.lang.String status,
java.lang.String msg)
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
HTTPSession.checkHTTPError(HTTPResponse response)
Returns true if the
HTTPResponse contains a "HTTP 200 OK" response code. |
java.io.OutputStream |
IHTTPTransferCodingHandler.open(HTTPResponse response,
java.io.OutputStream output)
Opens an
OutputStream that can be used to encode the message body of the HTTPResponse . |
java.io.OutputStream |
IdentityTransferCodingHandler.open(HTTPResponse response,
java.io.OutputStream output)
Creates an
IdentityMessageBodyOutputStream to write the message body of the HTTP response. |
java.io.OutputStream |
ChunkedTransferCodingHandler.open(HTTPResponse response,
java.io.OutputStream output)
Creates an
OutputStream to write the body of the HTTP response in "chunked" encoding using the
HTTPResponse and the OutputStream . |
protected void |
HTTPSession.sendResponse(HTTPResponse response,
IHTTPEncodingHandler encodingHandler)
Sends the given
HTTPResponse to the previously initialized Socket . |
protected void |
HTTPSession.writeResponse(HTTPResponse response,
IHTTPEncodingHandler encodingHandler,
java.io.OutputStream output)
|