Class Webhooks

    • Constructor Detail

      • Webhooks

        public Webhooks​(WireMockServices wireMockServices,
                        java.util.concurrent.ScheduledExecutorService scheduler,
                        java.util.List<WebhookTransformer> transformers)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Extension
      • doAction

        public void doAction​(ServeEvent serveEvent,
                             Admin admin,
                             Parameters parameters)
        Description copied from class: PostServeAction
        Do something after a request has been served. Called when this extension is applied to a specific stub mapping.
        Overrides:
        doAction in class PostServeAction
        Parameters:
        serveEvent - the serve event, including the request and the response definition
        admin - WireMock's admin functions
        parameters - the parameters passed to the extension from the stub mapping