Class WebhookRoute

  • All Implemented Interfaces:
    spark.Route

    public class WebhookRoute
    extends Object
    implements spark.Route
    The route to register to Spark for webhooks to POST to.
    • Constructor Detail

      • WebhookRoute

        public WebhookRoute​(Webhooker webhooker)
        Parameters:
        webhooker - The parent Webhooker instance.
    • Method Detail

      • handle

        public Object handle​(spark.Request request,
                             spark.Response response)
        Handle a POST request made to this webserver.
        Specified by:
        handle in interface spark.Route
        Parameters:
        request - The request that was made by a service.
        response - The response to return back to the service.
        Returns:
        The response to return back to the service.