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