Package | Description |
---|---|
ej.hoka.auth.session |
Utility classes to quickly setup authentication using cookie-based sessions.
|
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 java.lang.String |
LogoutEndpoint.getSessionID(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes)
Retrieves the session ID from the cookies of the request.
|
protected java.lang.String |
AuthenticatedRequestHandler.getSessionID(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes)
Retrieves the session ID from the cookies of the request.
|
protected abstract java.lang.String |
LoginEndpoint.login(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes)
Checks the credentials in the request.
|
protected boolean |
AuthenticatedRequestHandler.match(HTTPRequest request)
Determines whether or not the request matches this handler.
|
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 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 |
---|---|
java.io.InputStream |
IHTTPTransferCodingHandler.open(HTTPRequest request,
java.io.InputStream input)
Opens an
InputStream that can be used to decode message body of the given request. |
java.io.InputStream |
IdentityTransferCodingHandler.open(HTTPRequest request,
java.io.InputStream input)
Creates a new instance of
IdentityMessageBodyInputStream to read the message body of the HTTP request. |
java.io.InputStream |
ChunkedTransferCodingHandler.open(HTTPRequest request,
java.io.InputStream input)
Creates a
ChunkedMessageBodyInputStream to read the body of the HTTP request in "chunked" encoding from
the HTTPRequest and the InputStream . |
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) |
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) |