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 java.lang.Object implements HttpRequest
-
Constructor Summary
Constructors Constructor Description MockHttpRequest() -
Method Summary
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, waitMethods inherited from interface org.zalando.logbook.HttpMessage
getBodyAsString, getCharset, getContentType, getHeaders, getOrigin, getProtocolVersionMethods inherited from interface org.zalando.logbook.HttpRequest
getHost, getMethod, getPath, getPort, getQuery, getRemote, getRequestUri, getScheme
-
Constructor Details
-
MockHttpRequest
public MockHttpRequest()
-
-
Method Details
-
getBody
public byte[] getBody()- Specified by:
getBodyin interfaceHttpMessage
-
withBody
- Specified by:
withBodyin interfaceHttpRequest
-
withoutBody
- Specified by:
withoutBodyin interfaceHttpRequest
-