Class RecordStateEventListener

  • All Implemented Interfaces:
    com.github.tomakehurst.wiremock.extension.Extension, com.github.tomakehurst.wiremock.extension.ServeEventListener, StateExtensionMixin

    public class RecordStateEventListener
    extends java.lang.Object
    implements com.github.tomakehurst.wiremock.extension.ServeEventListener, StateExtensionMixin
    Event listener to trigger state context recording.

    DO NOT REGISTER directly. Use StateExtension instead.

    See Also:
    StateExtension
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.github.tomakehurst.wiremock.extension.ServeEventListener

        com.github.tomakehurst.wiremock.extension.ServeEventListener.RequestPhase
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean applyGlobally()  
      void beforeResponseSent​(com.github.tomakehurst.wiremock.stubbing.ServeEvent serveEvent, com.github.tomakehurst.wiremock.extension.Parameters parameters)  
      java.lang.String getName()  
      • 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

        start, stop
      • Methods inherited from interface com.github.tomakehurst.wiremock.extension.ServeEventListener

        afterComplete, afterMatch, beforeMatch, onEvent
    • Constructor Detail

      • RecordStateEventListener

        public RecordStateEventListener​(ContextManager contextManager,
                                        com.github.tomakehurst.wiremock.extension.WireMockServices services)
    • Method Detail

      • beforeResponseSent

        public void beforeResponseSent​(com.github.tomakehurst.wiremock.stubbing.ServeEvent serveEvent,
                                       com.github.tomakehurst.wiremock.extension.Parameters parameters)
        Specified by:
        beforeResponseSent in interface com.github.tomakehurst.wiremock.extension.ServeEventListener
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface com.github.tomakehurst.wiremock.extension.Extension
      • applyGlobally

        public boolean applyGlobally()
        Specified by:
        applyGlobally in interface com.github.tomakehurst.wiremock.extension.ServeEventListener