Class ImmutableRequest
java.lang.Object
com.github.tomakehurst.wiremock.http.ImmutableRequest
- All Implemented Interfaces:
Request
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.github.tomakehurst.wiremock.http.Request
Request.Part -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedImmutableRequest(@NonNull org.wiremock.url.AbsoluteUrl absoluteUrl, RequestMethod method, String protocol, String clientIp, HttpHeaders headers, byte[] body, boolean multipart, boolean browserProxyRequest) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsHeader(String key) static ImmutableRequest.Buildercreate()formParameter(String key) @NonNull Stringbyte[]getBody()getHost()getParts()@NonNull org.wiremock.url.PathAndQueryintgetPort()@NonNull org.wiremock.url.AbsoluteUrl@NonNull StringgetUrl()booleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.tomakehurst.wiremock.http.Request
getId, getPathParameters, queryParameter
-
Constructor Details
-
ImmutableRequest
protected ImmutableRequest(@NonNull org.wiremock.url.AbsoluteUrl absoluteUrl, RequestMethod method, String protocol, String clientIp, HttpHeaders headers, byte[] body, boolean multipart, boolean browserProxyRequest)
-
-
Method Details
-
create
-
getUrl
-
getPathAndQueryWithoutPrefix
public @NonNull org.wiremock.url.PathAndQuery getPathAndQueryWithoutPrefix()- Specified by:
getPathAndQueryWithoutPrefixin interfaceRequest
-
getAbsoluteUrl
- Specified by:
getAbsoluteUrlin interfaceRequest
-
getTypedAbsoluteUrl
public @NonNull org.wiremock.url.AbsoluteUrl getTypedAbsoluteUrl()- Specified by:
getTypedAbsoluteUrlin interfaceRequest
-
getMethod
-
getScheme
-
getHost
-
getPort
public int getPort() -
getClientIp
- Specified by:
getClientIpin interfaceRequest
-
getHeader
-
header
-
contentTypeHeader
- Specified by:
contentTypeHeaderin interfaceRequest
-
getHeaders
- Specified by:
getHeadersin interfaceRequest
-
containsHeader
- Specified by:
containsHeaderin interfaceRequest
-
getAllHeaderKeys
- Specified by:
getAllHeaderKeysin interfaceRequest
-
formParameter
- Specified by:
formParameterin interfaceRequest
-
formParameters
- Specified by:
formParametersin interfaceRequest
-
getCookies
- Specified by:
getCookiesin interfaceRequest
-
getBody
public byte[] getBody() -
getBodyAsString
- Specified by:
getBodyAsStringin interfaceRequest
-
getBodyAsBase64
- Specified by:
getBodyAsBase64in interfaceRequest
-
isMultipart
public boolean isMultipart()- Specified by:
isMultipartin interfaceRequest
-
getParts
-
getPart
-
isBrowserProxyRequest
public boolean isBrowserProxyRequest()- Specified by:
isBrowserProxyRequestin interfaceRequest
-
getOriginalRequest
- Specified by:
getOriginalRequestin interfaceRequest
-
getProtocol
- Specified by:
getProtocolin interfaceRequest
-