Class LoggedResponse
java.lang.Object
com.github.tomakehurst.wiremock.http.LoggedResponse
-
Constructor Summary
ConstructorsConstructorDescriptionLoggedResponse(int status, HttpHeaders headers, String bodyAsBase64, Fault fault, String ignoredBodyOnlyUsedForBinding, boolean fromProxy) -
Method Summary
Modifier and TypeMethodDescriptionstatic LoggedResponsebyte[]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()intboolean
-
Constructor Details
-
LoggedResponse
public LoggedResponse(int status, HttpHeaders headers, String bodyAsBase64, Fault fault, String ignoredBodyOnlyUsedForBinding, boolean fromProxy)
-
-
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
-
isFromProxy
public boolean isFromProxy()
-