Package org.exoplatform.services.rest
Interface ContainerResponseWriter
- All Known Implementing Classes:
ByteArrayContainerResponseWriter,DummyContainerResponseWriter
public interface ContainerResponseWriter
All implementation of this interface should be able to write data in
container response, e. g. servlet response.
- Version:
- $Id: $
- Author:
- Andrey Parfonov
-
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.
-
Method Details
-
writeHeaders
Write HTTP status and headers in HTTP response.- Parameters:
response- container response- Throws:
IOException- if any i/o error occurs
-
writeBody
void writeBody(GenericContainerResponse response, javax.ws.rs.ext.MessageBodyWriter entityWriter) throws IOException Write entity body in output stream.- Parameters:
response- container responseentityWriter- SeeMessageBodyWriter- Throws:
IOException- if any i/o error occurs
-