Interface Handler

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface Handler
    Main interface for endpoint actions. A handler has a void return type, so you have to use Context.result(java.lang.String) to return data to the client.
    See Also:
    Context, Handler in documentation
    • Method Detail

      • handle

        void handle​(@NotNull
                    io.javalin.http.Context ctx)
             throws Exception
        Throws:
        Exception