|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContainerResponseWriter
Containers implement this interface and provide an instance to the
Application.
| Method Summary | |
|---|---|
void |
finish()
Finish writing the response. |
OutputStream |
writeStatusAndHeaders(long contentLength,
javax.ws.rs.core.Response response)
Write the status and headers of the response and return an output stream for the web application to write the entity of the response. |
| Method Detail |
|---|
OutputStream writeStatusAndHeaders(long contentLength,
javax.ws.rs.core.Response response)
throws IOException
contentLength - >=0 if the content length in bytes of the
entity to be written is known, otherwise -1. Containers
may use this value to determine whether the "Content-Length"
header can be set or utilize chunked transfer encoding.response - the container response. The status and headers are
obtained from the response.
IOException - if an error occurred when writing out the
status and headers or obtaining the output stream.
void finish()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||