Class TransactionEventListener

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

    public class TransactionEventListener
    extends java.lang.Object
    implements com.github.tomakehurst.wiremock.extension.ServeEventListener, StateExtensionMixin
    Persist transaction-related information in the context.

    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
      void afterComplete​(com.github.tomakehurst.wiremock.stubbing.ServeEvent serveEvent, com.github.tomakehurst.wiremock.extension.Parameters parameters)  
      boolean applyGlobally()  
      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

        afterMatch, beforeMatch, beforeResponseSent, onEvent
    • Constructor Detail

      • TransactionEventListener

        public TransactionEventListener​(TransactionManager transactionManager)
    • Method Detail

      • 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
      • afterComplete

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