Package org.zalando.logbook.test
Class MockHttpRequest
java.lang.Object
org.zalando.logbook.test.MockHttpRequest
- All Implemented Interfaces:
HttpMessage,HttpRequest
-
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.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
-