Package org.elypia.webhooker
Class WebhookRoute
- java.lang.Object
-
- org.elypia.webhooker.WebhookRoute
-
- All Implemented Interfaces:
spark.Route
public class WebhookRoute extends Object implements spark.Route
The route to register toSparkfor webhooks toPOSTto.
-
-
Constructor Summary
Constructors Constructor Description WebhookRoute(Webhooker webhooker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objecthandle(spark.Request request, spark.Response response)Handle a POST request made to this webserver.
-
-
-
Method Detail
-
handle
public Object handle(spark.Request request, spark.Response response)
Handle a POST request made to this webserver.- Specified by:
handlein interfacespark.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.
-
-