Class WireMockHttpServletRequestAdapter
java.lang.Object
com.github.tomakehurst.wiremock.jetty.WireMockHttpServletRequestAdapter
- All Implemented Interfaces:
com.github.tomakehurst.wiremock.http.Request
public class WireMockHttpServletRequestAdapter
extends Object
implements com.github.tomakehurst.wiremock.http.Request
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.tomakehurst.wiremock.http.Request
com.github.tomakehurst.wiremock.http.Request.Part -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWireMockHttpServletRequestAdapter(jakarta.servlet.http.HttpServletRequest request, String urlPrefixToRemove, boolean browserProxyingEnabled) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsHeader(String key) com.github.tomakehurst.wiremock.http.ContentTypeHeadercom.github.tomakehurst.wiremock.http.FormParameterformParameter(String key) @NonNull Stringbyte[]getBody()com.github.tomakehurst.wiremock.http.HttpHeadersgetHost()com.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()@NonNull org.wiremock.url.PathAndQueryintgetPort()@NonNull org.wiremock.url.AbsoluteUrl@NonNull StringgetUrl()com.github.tomakehurst.wiremock.http.HttpHeaderbooleanbooleantoString()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, queryParameter
-
Field Details
-
ORIGINAL_REQUEST_KEY
- See Also:
-
-
Constructor Details
-
WireMockHttpServletRequestAdapter
public WireMockHttpServletRequestAdapter(jakarta.servlet.http.HttpServletRequest request, String urlPrefixToRemove, boolean browserProxyingEnabled)
-
-
Method Details
-
getUrl
- Specified by:
getUrlin interfacecom.github.tomakehurst.wiremock.http.Request
-
getPathAndQueryWithoutPrefix
public @NonNull org.wiremock.url.PathAndQuery getPathAndQueryWithoutPrefix()- Specified by:
getPathAndQueryWithoutPrefixin interfacecom.github.tomakehurst.wiremock.http.Request
-
getAbsoluteUrl
- Specified by:
getAbsoluteUrlin interfacecom.github.tomakehurst.wiremock.http.Request
-
getTypedAbsoluteUrl
public @NonNull org.wiremock.url.AbsoluteUrl getTypedAbsoluteUrl()- Specified by:
getTypedAbsoluteUrlin 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
-
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
-
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
-
containsHeader
- Specified by:
containsHeaderin interfacecom.github.tomakehurst.wiremock.http.Request
-
getHeaders
public com.github.tomakehurst.wiremock.http.HttpHeaders getHeaders()- Specified by:
getHeadersin interfacecom.github.tomakehurst.wiremock.http.Request
-
getAllHeaderKeys
- Specified by:
getAllHeaderKeysin interfacecom.github.tomakehurst.wiremock.http.Request
-
getCookies
- Specified by:
getCookiesin 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
-
getParts
- Specified by:
getPartsin interfacecom.github.tomakehurst.wiremock.http.Request
-
isMultipart
public boolean isMultipart()- Specified by:
isMultipartin interfacecom.github.tomakehurst.wiremock.http.Request
-
getPart
- Specified by:
getPartin interfacecom.github.tomakehurst.wiremock.http.Request
-
getOriginalRequest
- Specified by:
getOriginalRequestin interfacecom.github.tomakehurst.wiremock.http.Request
-
toString
-
getProtocol
- Specified by:
getProtocolin interfacecom.github.tomakehurst.wiremock.http.Request
-