Package ej.restserver

Class EndpointHandler

    • Constructor Detail

      • EndpointHandler

        public EndpointHandler()
    • Method Detail

      • answer

        public HTTPResponse answer​(RestServer server,
                                   HTTPRequest request)
        Description copied from interface: RequestHandler
        Answers to the given HTTP request. Depending on request parameters, this handler may or may not returns a HTTP response.
        Specified by:
        answer in interface RequestHandler
        Parameters:
        server - the server handling the request.
        request - the HTTP request.
        Returns:
        an HTTP response if this handler can process the HTTP request, or null otherwise.