Class DummyContainerResponseWriter
java.lang.Object
org.exoplatform.services.rest.tools.DummyContainerResponseWriter
- All Implemented Interfaces:
ContainerResponseWriter
Mock object than can be used for any test when we don't care about response
entity at all.
- Version:
- $Id: $
- Author:
- Andrey Parfonov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteBody(GenericContainerResponse response, javax.ws.rs.ext.MessageBodyWriter entityWriter) Write entity body in output stream.voidwriteHeaders(GenericContainerResponse response) Write HTTP status and headers in HTTP response.
-
Constructor Details
-
DummyContainerResponseWriter
public DummyContainerResponseWriter()
-
-
Method Details
-
writeBody
public void writeBody(GenericContainerResponse response, javax.ws.rs.ext.MessageBodyWriter entityWriter) throws IOException Write entity body in output stream.- Specified by:
writeBodyin interfaceContainerResponseWriter- Parameters:
response- container responseentityWriter- SeeMessageBodyWriter- Throws:
IOException- if any i/o error occurs
-
writeHeaders
Write HTTP status and headers in HTTP response.- Specified by:
writeHeadersin interfaceContainerResponseWriter- Parameters:
response- container response- Throws:
IOException- if any i/o error occurs
-