public class ByteArrayContainerResponseWriter extends Object implements ContainerResponseWriter
| Constructor and Description |
|---|
ByteArrayContainerResponseWriter() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBody() |
javax.ws.rs.core.MultivaluedMap<String,Object> |
getHeaders() |
void |
reset()
Clear message body and HTTP headers map.
|
void |
writeBody(GenericContainerResponse response,
javax.ws.rs.ext.MessageBodyWriter entityWriter)
Write entity body in output stream.
|
void |
writeHeaders(GenericContainerResponse response)
Write HTTP status and headers in HTTP response.
|
public void writeBody(GenericContainerResponse response, javax.ws.rs.ext.MessageBodyWriter entityWriter) throws IOException
ContainerResponseWriterwriteBody in interface ContainerResponseWriterresponse - container responseentityWriter - See MessageBodyWriterIOException - if any i/o error occurspublic void writeHeaders(GenericContainerResponse response) throws IOException
ContainerResponseWriterwriteHeaders in interface ContainerResponseWriterresponse - container responseIOException - if any i/o error occurspublic byte[] getBody()
public void reset()
Copyright © 2012–2016 Codenvy, S.A.. All rights reserved.