Package org.wiremock.webhooks
Class Webhooks
java.lang.Object
com.github.tomakehurst.wiremock.extension.PostServeAction
org.wiremock.webhooks.Webhooks
- All Implemented Interfaces:
Extension,ServeEventListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.tomakehurst.wiremock.extension.ServeEventListener
ServeEventListener.RequestPhase -
Constructor Summary
ConstructorsConstructorDescriptionWebhooks(WireMockServices wireMockServices, ScheduledExecutorService scheduler, List<WebhookTransformer> transformers) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterComplete(ServeEvent serveEvent, Parameters parameters) booleanvoiddoAction(ServeEvent serveEvent, Admin admin, Parameters parameters) Do something after a request has been served.getName()static WebhookDefinitionwebhook()Methods inherited from class com.github.tomakehurst.wiremock.extension.PostServeAction
doGlobalActionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.tomakehurst.wiremock.extension.ServeEventListener
afterMatch, beforeMatch, beforeResponseSent, onEvent
-
Constructor Details
-
Webhooks
public Webhooks(WireMockServices wireMockServices, ScheduledExecutorService scheduler, List<WebhookTransformer> transformers)
-
-
Method Details
-
getName
-
afterComplete
- Specified by:
afterCompletein interfaceServeEventListener
-
doAction
Description copied from class:PostServeActionDo something after a request has been served. Called when this extension is applied to a specific stub mapping.- Overrides:
doActionin classPostServeAction- Parameters:
serveEvent- the serve event, including the request and the response definitionadmin- WireMock's admin functionsparameters- the parameters passed to the extension from the stub mapping
-
applyGlobally
public boolean applyGlobally()- Specified by:
applyGloballyin interfaceServeEventListener
-
webhook
-