Class LoggedResponse
java.lang.Object
com.github.tomakehurst.wiremock.http.LoggedResponse
-
Constructor Summary
ConstructorDescriptionLoggedResponse
(int status, HttpHeaders headers, String bodyAsBase64, Fault fault, String ignoredBodyOnlyUsedForBinding) -
Method Summary
Modifier and TypeMethodDescriptionstatic LoggedResponse
byte[]
getBody()
Retrieve body as a String encoded in the charset in the "Content-Type" header, or, if that's not present, the default character set (UTF-8)getFault()
int
-
Constructor Details
-
LoggedResponse
public LoggedResponse(int status, HttpHeaders headers, String bodyAsBase64, Fault fault, String ignoredBodyOnlyUsedForBinding)
-
-
Method Details
-
from
-
getStatus
public int getStatus() -
getHeaders
-
getBodyAsString
Retrieve body as a String encoded in the charset in the "Content-Type" header, or, if that's not present, the default character set (UTF-8)- Returns:
- Encoded string
-
getMimeType
-
getCharset
-
getBody
public byte[] getBody() -
getBodyAsBase64
-
getFault
-