Package com.trafficparrot.sdk.http
Class TransformedRequest
java.lang.Object
com.trafficparrot.sdk.http.TransformedRequest
- All Implemented Interfaces:
com.github.tomakehurst.wiremock.http.Request
public class TransformedRequest
extends Object
implements com.github.tomakehurst.wiremock.http.Request
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.github.tomakehurst.wiremock.http.Request
com.github.tomakehurst.wiremock.http.Request.Part -
Constructor Summary
ConstructorsConstructorDescriptionTransformedRequest(String url, String absoluteUrl, com.github.tomakehurst.wiremock.http.RequestMethod method, String clientIp, com.github.tomakehurst.wiremock.http.HttpHeaders httpHeaders, com.google.common.collect.ImmutableMap<String, com.github.tomakehurst.wiremock.http.Cookie> cookies, boolean browserProxyRequest, String stringBody, Collection<com.github.tomakehurst.wiremock.http.Request.Part> parts) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsHeader(String key) static CharsetcontentEncoding(com.github.tomakehurst.wiremock.http.ContentTypeHeader contentTypeHeader) static CharsetcontentEncoding(com.github.tomakehurst.wiremock.http.HttpHeaders headers) com.github.tomakehurst.wiremock.http.ContentTypeHeadercom.github.tomakehurst.wiremock.http.FormParameterformParameter(String key) static TransformedRequestfromBase64(com.github.tomakehurst.wiremock.http.Request template, String base64Body) static TransformedRequestfromBytes(com.github.tomakehurst.wiremock.http.Request template, byte[] bytes) static TransformedRequestbyte[]getBody()com.google.common.collect.ImmutableMap<String,com.github.tomakehurst.wiremock.http.Cookie> com.github.tomakehurst.wiremock.http.HttpHeadersgetHost()com.github.tomakehurst.wiremock.http.HttpHeaderscom.github.tomakehurst.wiremock.http.RequestMethodOptional<com.github.tomakehurst.wiremock.http.Request>com.github.tomakehurst.wiremock.http.Request.PartCollection<com.github.tomakehurst.wiremock.http.Request.Part>getParts()intgetPort()getUrl()com.github.tomakehurst.wiremock.http.HttpHeaderbooleanbooleanstatic TransformedRequestlike(com.github.tomakehurst.wiremock.http.Request request) com.github.tomakehurst.wiremock.http.QueryParameterqueryParameter(String key) toString()withHeader(com.github.tomakehurst.wiremock.http.HttpHeader header) withTransformBody(TransformedRequest.BodyTransformer bodyTransformer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.tomakehurst.wiremock.http.Request
getId, getPathParameters
-
Constructor Details
-
TransformedRequest
@Deprecated public TransformedRequest(String url, String absoluteUrl, com.github.tomakehurst.wiremock.http.RequestMethod method, String clientIp, com.github.tomakehurst.wiremock.http.HttpHeaders httpHeaders, com.google.common.collect.ImmutableMap<String, com.github.tomakehurst.wiremock.http.Cookie> cookies, boolean browserProxyRequest, String stringBody, Collection<com.github.tomakehurst.wiremock.http.Request.Part> parts) Deprecated.
-
-
Method Details
-
like
-
fromBytes
public static TransformedRequest fromBytes(com.github.tomakehurst.wiremock.http.Request template, byte[] bytes) -
fromJson
public static TransformedRequest fromJson(com.github.tomakehurst.wiremock.http.Request template, String jsonString) -
fromBase64
public static TransformedRequest fromBase64(com.github.tomakehurst.wiremock.http.Request template, String base64Body) -
contentEncoding
-
contentEncoding
public static Charset contentEncoding(com.github.tomakehurst.wiremock.http.ContentTypeHeader contentTypeHeader) -
getUrl
- Specified by:
getUrlin interfacecom.github.tomakehurst.wiremock.http.Request
-
getAbsoluteUrl
- Specified by:
getAbsoluteUrlin interfacecom.github.tomakehurst.wiremock.http.Request
-
getMethod
public com.github.tomakehurst.wiremock.http.RequestMethod getMethod()- Specified by:
getMethodin interfacecom.github.tomakehurst.wiremock.http.Request
-
getScheme
- Specified by:
getSchemein interfacecom.github.tomakehurst.wiremock.http.Request
-
getHost
- Specified by:
getHostin interfacecom.github.tomakehurst.wiremock.http.Request
-
getPort
public int getPort()- Specified by:
getPortin interfacecom.github.tomakehurst.wiremock.http.Request
-
getClientIp
- Specified by:
getClientIpin interfacecom.github.tomakehurst.wiremock.http.Request
-
getHeader
- Specified by:
getHeaderin interfacecom.github.tomakehurst.wiremock.http.Request
-
header
- Specified by:
headerin interfacecom.github.tomakehurst.wiremock.http.Request
-
contentTypeHeader
public com.github.tomakehurst.wiremock.http.ContentTypeHeader contentTypeHeader()- Specified by:
contentTypeHeaderin interfacecom.github.tomakehurst.wiremock.http.Request
-
getHeaders
public com.github.tomakehurst.wiremock.http.HttpHeaders getHeaders()- Specified by:
getHeadersin interfacecom.github.tomakehurst.wiremock.http.Request
-
containsHeader
- Specified by:
containsHeaderin interfacecom.github.tomakehurst.wiremock.http.Request
-
getAllHeaderKeys
- Specified by:
getAllHeaderKeysin interfacecom.github.tomakehurst.wiremock.http.Request
-
getHttpHeaders
public com.github.tomakehurst.wiremock.http.HttpHeaders getHttpHeaders() -
getCookies
public com.google.common.collect.ImmutableMap<String,com.github.tomakehurst.wiremock.http.Cookie> getCookies()- Specified by:
getCookiesin interfacecom.github.tomakehurst.wiremock.http.Request
-
queryParameter
- Specified by:
queryParameterin interfacecom.github.tomakehurst.wiremock.http.Request
-
formParameter
- Specified by:
formParameterin interfacecom.github.tomakehurst.wiremock.http.Request
-
formParameters
- Specified by:
formParametersin interfacecom.github.tomakehurst.wiremock.http.Request
-
isBrowserProxyRequest
public boolean isBrowserProxyRequest()- Specified by:
isBrowserProxyRequestin interfacecom.github.tomakehurst.wiremock.http.Request
-
getOriginalRequest
- Specified by:
getOriginalRequestin interfacecom.github.tomakehurst.wiremock.http.Request
-
getProtocol
- Specified by:
getProtocolin interfacecom.github.tomakehurst.wiremock.http.Request
-
getBody
public byte[] getBody()- Specified by:
getBodyin interfacecom.github.tomakehurst.wiremock.http.Request
-
getBodyAsString
- Specified by:
getBodyAsStringin interfacecom.github.tomakehurst.wiremock.http.Request
-
getBodyAsBase64
- Specified by:
getBodyAsBase64in interfacecom.github.tomakehurst.wiremock.http.Request
-
isMultipart
public boolean isMultipart()- Specified by:
isMultipartin interfacecom.github.tomakehurst.wiremock.http.Request
-
getParts
- Specified by:
getPartsin interfacecom.github.tomakehurst.wiremock.http.Request
-
getPart
- Specified by:
getPartin interfacecom.github.tomakehurst.wiremock.http.Request
-
withTransformBody
-
withHeader
-
toString
-