Interface Service<R extends ServiceRequest<?>,​S extends ServiceResponse<?>>

    • Method Detail

      • handle

        void handle​(R request,
                    S response)
             throws Exception
        handle the request
        Parameters:
        request -
        response -
        Throws:
        Exception
      • requestInitializer

        Consumer<io.undertow.server.HttpServerExchange> requestInitializer()
        Returns:
        the function used to instantiate the request object
      • responseInitializer

        Consumer<io.undertow.server.HttpServerExchange> responseInitializer()
        Returns:
        the function used to instantiate the response object
      • request

        Function<io.undertow.server.HttpServerExchange,​R> request()
        Returns:
        the function used to retrieve the request object
      • response

        Function<io.undertow.server.HttpServerExchange,​S> response()
        Returns:
        the function used to retrieve the response object
      • handleOptions

        default void handleOptions​(R request)
                            throws Exception
        helper method to handle OPTIONS requests
        Parameters:
        request -
        Throws:
        Exception