Class PostServeAction

  • All Implemented Interfaces:
    Extension

    public abstract class PostServeAction
    extends java.lang.Object
    implements Extension
    • Constructor Summary

      Constructors 
      Constructor Description
      PostServeAction()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doAction​(ServeEvent serveEvent, Admin admin, Parameters parameters)
      Do something after a request has been served.
      void doGlobalAction​(ServeEvent serveEvent, Admin admin)
      Do something after a request has been served.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.github.tomakehurst.wiremock.extension.Extension

        getName
    • Constructor Detail

      • PostServeAction

        public PostServeAction()
    • Method Detail

      • doAction

        public void doAction​(ServeEvent serveEvent,
                             Admin admin,
                             Parameters parameters)
        Do something after a request has been served. Called when this extension is applied to a specific stub mapping.
        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
      • doGlobalAction

        public void doGlobalAction​(ServeEvent serveEvent,
                                   Admin admin)
        Do something after a request has been served. Called when this extension is applied to a specific stub mapping.
        Parameters:
        serveEvent - the serve event, including the request and the response definition
        admin - WireMock's admin functions