Class HttpResponseDefinitionTransformer

java.lang.Object
com.trafficparrot.sdk.http.HttpResponseDefinitionTransformer
All Implemented Interfaces:
com.github.tomakehurst.wiremock.extension.Extension, com.github.tomakehurst.wiremock.extension.ResponseDefinitionTransformerV2

public abstract class HttpResponseDefinitionTransformer extends Object implements com.github.tomakehurst.wiremock.extension.ResponseDefinitionTransformerV2
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.github.tomakehurst.wiremock.http.ResponseDefinition
    doTransform(com.github.tomakehurst.wiremock.http.Request request, com.github.tomakehurst.wiremock.http.ResponseDefinition responseDefinition, com.github.tomakehurst.wiremock.common.FileSource fileSource, com.github.tomakehurst.wiremock.extension.Parameters parameters)
    Deprecated.
    com.github.tomakehurst.wiremock.http.ResponseDefinition
    doTransform(com.github.tomakehurst.wiremock.stubbing.ServeEvent serveEvent, com.github.tomakehurst.wiremock.extension.Parameters parameters)
    WireMock 3.x entry point.
    com.github.tomakehurst.wiremock.http.ResponseDefinition
    transform(com.github.tomakehurst.wiremock.stubbing.ServeEvent serveEvent)
     

    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, start, stop

    Methods inherited from interface com.github.tomakehurst.wiremock.extension.ResponseDefinitionTransformerV2

    applyGlobally
  • Field Details

    • logger

      protected final org.slf4j.Logger logger
  • Constructor Details

    • HttpResponseDefinitionTransformer

      protected HttpResponseDefinitionTransformer()
  • Method Details

    • transform

      public com.github.tomakehurst.wiremock.http.ResponseDefinition transform(com.github.tomakehurst.wiremock.stubbing.ServeEvent serveEvent)
      Specified by:
      transform in interface com.github.tomakehurst.wiremock.extension.ResponseDefinitionTransformerV2
    • doTransform

      public com.github.tomakehurst.wiremock.http.ResponseDefinition doTransform(com.github.tomakehurst.wiremock.stubbing.ServeEvent serveEvent, com.github.tomakehurst.wiremock.extension.Parameters parameters) throws Exception
      WireMock 3.x entry point. Override this for access to the full ServeEvent. Default implementation delegates to the legacy doTransform method for backwards compatibility.
      Throws:
      Exception
    • doTransform

      @Deprecated public com.github.tomakehurst.wiremock.http.ResponseDefinition doTransform(com.github.tomakehurst.wiremock.http.Request request, com.github.tomakehurst.wiremock.http.ResponseDefinition responseDefinition, com.github.tomakehurst.wiremock.common.FileSource fileSource, com.github.tomakehurst.wiremock.extension.Parameters parameters) throws Exception
      Deprecated.
      Legacy entry point for backwards compatibility with existing SDK extensions. Note: fileSource is always null in WireMock 3.x (use ServeEvent-based overload instead).
      Throws:
      Exception