Package | Description |
---|---|
ej.hoka.auth.session |
Utility classes to quickly setup authentication using cookie-based sessions.
|
ej.hoka.http |
Base HTTP handling classes.
|
ej.hoka.http.encoding |
Classes used to manage encoding and transfer-coding of HTTP streams.
|
ej.hoka.http.requesthandler |
Classes used to process a HTTPRequest and produce a HTTP Response.
|
ej.hoka.rest |
This package gather classes used for exposing a REST API.
|
ej.hoka.rest.endpoint |
This package gather implementations of standard endpoints.
|
Modifier and Type | Method and Description |
---|---|
protected abstract HTTPResponse |
LoginEndpoint.failedLoginResponse(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes)
Constructs the response upon failed login.
|
protected abstract HTTPResponse |
LogoutEndpoint.failedLogoutResponse(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes)
Constructs the response upon failed logout.
|
HTTPResponse |
LogoutEndpoint.get(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes) |
HTTPResponse |
LoginEndpoint.get(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes) |
protected HTTPResponse |
AuthenticatedRequestHandler.onFailedAuthentication(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes)
Constructs the response upon failed authentication.
|
protected HTTPResponse |
AuthenticatedRequestHandler.onSuccessfulAuthentication(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.lang.String username,
java.lang.String sessionID)
Constructs the response upon successful authentication.
|
protected HTTPResponse |
LoginEndpoint.onSuccessfulLogin(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.lang.String username,
java.lang.String sessionID)
Handles the login and send the appropriate response.
|
HTTPResponse |
AuthenticatedRequestHandler.process(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes) |
HTTPResponse |
LoginEndpoint.put(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes) |
protected HTTPResponse |
LogoutEndpoint.setLoggedOut(HTTPResponse response)
Updates the
response to delete the session ID cookie. |
protected abstract HTTPResponse |
LoginEndpoint.successfulLoginResponse(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes)
Constructs the response upon successful login.
|
protected abstract HTTPResponse |
LogoutEndpoint.successfulLogoutResponse(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes)
Constructs the response upon successful logout.
|
Modifier and Type | Method and Description |
---|---|
protected HTTPResponse |
LogoutEndpoint.setLoggedOut(HTTPResponse response)
Updates the
response to delete the session ID cookie. |
Modifier and Type | Method and Description |
---|---|
static HTTPResponse |
HTTPResponse.createError(java.lang.String status,
java.lang.String msg)
|
static HTTPResponse |
HTTPResponse.createResponseFromStatus(java.lang.String status)
Creates a
HTTPResponse with given status and empty body. |
Modifier and Type | Method and Description |
---|---|
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 . |
Modifier and Type | Method and Description |
---|---|
HTTPResponse |
ResourceRequestHandler.process(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes)
The generic behavior of this request handler implementation is to find a resource matching the given URI in the
classpath.
|
HTTPResponse |
RequestHandlerComposite.process(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes) |
HTTPResponse |
RequestHandler.process(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes)
Processes the request and creates the appropriate response, or null if this request handler doesn't match the
request.
|
Modifier and Type | Method and Description |
---|---|
HTTPResponse |
RestEndpoint.delete(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes)
Handles
DELETE request on this endpoint. |
HTTPResponse |
RestEndpoint.get(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes)
Handles
GET request on this endpoint. |
HTTPResponse |
RestEndpoint.post(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes)
Handles
POST request on this endpoint. |
HTTPResponse |
RestRequestHandler.process(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes) |
HTTPResponse |
RestEndpoint.put(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes)
Handles
PUT request on this endpoint. |
Modifier and Type | Method and Description |
---|---|
HTTPResponse |
AliasEndpoint.delete(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes) |
HTTPResponse |
ResourceRestEndpoint.get(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes) |
HTTPResponse |
AliasEndpoint.get(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes) |
protected HTTPResponse |
ResourceRestEndpoint.getResourceResponse()
Gets the resource to serve as an HTTP response.
|
protected HTTPResponse |
GzipResourceEndpoint.getResourceResponse() |
HTTPResponse |
AliasEndpoint.post(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes) |
HTTPResponse |
AliasEndpoint.put(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes) |