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 Object implements HttpResponse
-
-
Constructor Summary
Constructors Constructor Description MockHttpResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods 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, wait
-
Methods inherited from interface org.zalando.logbook.HttpMessage
getBodyAsString, getCharset, getContentType, getHeaders, getOrigin, getProtocolVersion
-
Methods inherited from interface org.zalando.logbook.HttpResponse
getReasonPhrase, getStatus
-
-
-
-
Method Detail
-
getBody
public byte[] getBody()
- Specified by:
getBodyin interfaceHttpMessage
-
withBody
public HttpResponse withBody()
- Specified by:
withBodyin interfaceHttpResponse
-
withoutBody
public HttpResponse withoutBody()
- Specified by:
withoutBodyin interfaceHttpResponse
-
-