Package org.zalando.logbook.test
Class MockHttpResponse
java.lang.Object
org.zalando.logbook.test.MockHttpResponse
- All Implemented Interfaces:
HttpMessage,HttpResponse
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.zalando.logbook.api.HttpMessage
getBodyAsString, getCharset, getContentType, getHeaders, getOrigin, getProtocolVersionMethods inherited from interface org.zalando.logbook.api.HttpResponse
getReasonPhrase, getStatus
-
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
-