Package com.trafficparrot.sdk.http
Class HttpResponseTransformer
java.lang.Object
com.github.tomakehurst.wiremock.extension.AbstractTransformer<com.github.tomakehurst.wiremock.http.Response>
com.github.tomakehurst.wiremock.extension.ResponseTransformer
com.trafficparrot.sdk.http.HttpResponseTransformer
- All Implemented Interfaces:
com.github.tomakehurst.wiremock.extension.Extension
public abstract class HttpResponseTransformer
extends com.github.tomakehurst.wiremock.extension.ResponseTransformer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected abstract com.github.tomakehurst.wiremock.http.ResponsedoTransform(com.github.tomakehurst.wiremock.http.Request request, com.github.tomakehurst.wiremock.http.Response response, com.github.tomakehurst.wiremock.common.FileSource fileSource, com.github.tomakehurst.wiremock.extension.Parameters parameters) getName()final com.github.tomakehurst.wiremock.http.Responsetransform(com.github.tomakehurst.wiremock.http.Request request, com.github.tomakehurst.wiremock.http.Response response, com.github.tomakehurst.wiremock.common.FileSource fileSource, com.github.tomakehurst.wiremock.extension.Parameters parameters) 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
start, stop
-
Field Details
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
HttpResponseTransformer
protected HttpResponseTransformer()
-
-
Method Details
-
transform
public final com.github.tomakehurst.wiremock.http.Response transform(com.github.tomakehurst.wiremock.http.Request request, com.github.tomakehurst.wiremock.http.Response response, com.github.tomakehurst.wiremock.common.FileSource fileSource, com.github.tomakehurst.wiremock.extension.Parameters parameters) - Specified by:
transformin classcom.github.tomakehurst.wiremock.extension.ResponseTransformer
-
doTransform
protected abstract com.github.tomakehurst.wiremock.http.Response doTransform(com.github.tomakehurst.wiremock.http.Request request, com.github.tomakehurst.wiremock.http.Response response, com.github.tomakehurst.wiremock.common.FileSource fileSource, com.github.tomakehurst.wiremock.extension.Parameters parameters) throws Exception - Throws:
Exception
-
getName
-
applyGlobally
public boolean applyGlobally()- Overrides:
applyGloballyin classcom.github.tomakehurst.wiremock.extension.AbstractTransformer<com.github.tomakehurst.wiremock.http.Response>
-