public class EndpointHandler extends java.lang.Object implements RequestHandler
RestEndpoint,
RestServer.addEndpoint(RestEndpoint)| Constructor and Description |
|---|
EndpointHandler() |
| Modifier and Type | Method and Description |
|---|---|
ej.hoka.http.HTTPResponse |
answer(RestServer server,
ej.hoka.http.HTTPRequest request)
Answers to the given HTTP request.
|
public ej.hoka.http.HTTPResponse answer(RestServer server, ej.hoka.http.HTTPRequest request)
RequestHandleranswer in interface RequestHandlerserver - the server handling the request.request - the HTTP request.null otherwise.