Package org.zalando.logbook
Class MockHttpResponse
java.lang.Object
org.zalando.logbook.MockHttpResponse
- All Implemented Interfaces:
HttpMessage,HttpResponse
@API(status=MAINTAINED) public final class MockHttpResponse extends java.lang.Object implements HttpResponse
-
Constructor Summary
Constructors Constructor Description MockHttpResponse() -
Method Summary
Modifier and Type Method Description byte[]getBody()HttpResponsewithBody()HttpResponsewithoutBody()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.zalando.logbook.HttpMessage
getBodyAsString, getCharset, getContentType, getHeaders, getOrigin, getProtocolVersion
-
Constructor Details
-
MockHttpResponse
public MockHttpResponse()
-
-
Method Details
-
getBody
public byte[] getBody()- Specified by:
getBodyin interfaceHttpMessage
-
withBody
- Specified by:
withBodyin interfaceHttpResponse
-
withoutBody
- Specified by:
withoutBodyin interfaceHttpResponse
-