Package org.zalando.logbook
Class MockHttpRequest
- java.lang.Object
-
- org.zalando.logbook.MockHttpRequest
-
- All Implemented Interfaces:
HttpMessage,HttpRequest
@API(status=MAINTAINED) public final class MockHttpRequest extends Object implements HttpRequest
-
-
Constructor Summary
Constructors Constructor Description MockHttpRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBody()HttpRequestwithBody()HttpRequestwithoutBody()-
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.HttpRequest
getHost, getMethod, getPath, getPort, getQuery, getRemote, getRequestUri, getScheme
-
-
-
-
Method Detail
-
getBody
public byte[] getBody()
- Specified by:
getBodyin interfaceHttpMessage
-
withBody
public HttpRequest withBody()
- Specified by:
withBodyin interfaceHttpRequest
-
withoutBody
public HttpRequest withoutBody()
- Specified by:
withoutBodyin interfaceHttpRequest
-
-