Package com.trafficparrot.sdk.http
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.github.tomakehurst.wiremock.http.ResponseDefinitiondoTransform(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.ResponseDefinitiondoTransform(com.github.tomakehurst.wiremock.stubbing.ServeEvent serveEvent, com.github.tomakehurst.wiremock.extension.Parameters parameters) WireMock 3.x entry point.com.github.tomakehurst.wiremock.http.ResponseDefinitiontransform(com.github.tomakehurst.wiremock.stubbing.ServeEvent serveEvent) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.tomakehurst.wiremock.extension.Extension
getName, start, stopMethods 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:
transformin interfacecom.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.OverridedoTransform(ServeEvent, Parameters)instead.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
-
doTransform(ServeEvent, Parameters)instead.