final class NettyResponseWriter extends Object implements org.glassfish.jersey.server.spi.ContainerResponseWriter
| Constructor and Description |
|---|
NettyResponseWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
commit() |
boolean |
enableResponseBuffering() |
void |
failure(Throwable error) |
private void |
rethrow(Throwable error)
Rethrow the original exception as required by JAX-RS, 3.3.4.
|
void |
setSuspendTimeout(long timeOut,
TimeUnit timeUnit) |
boolean |
suspend(long timeOut,
TimeUnit timeUnit,
org.glassfish.jersey.server.spi.ContainerResponseWriter.TimeoutHandler timeoutHandler) |
OutputStream |
writeResponseStatusAndHeaders(long contentLength,
org.glassfish.jersey.server.ContainerResponse cResponse) |
public OutputStream writeResponseStatusAndHeaders(long contentLength, org.glassfish.jersey.server.ContainerResponse cResponse) throws org.glassfish.jersey.server.ContainerException
writeResponseStatusAndHeaders in interface org.glassfish.jersey.server.spi.ContainerResponseWriterorg.glassfish.jersey.server.ContainerExceptionpublic boolean suspend(long timeOut,
TimeUnit timeUnit,
org.glassfish.jersey.server.spi.ContainerResponseWriter.TimeoutHandler timeoutHandler)
suspend in interface org.glassfish.jersey.server.spi.ContainerResponseWriterpublic void setSuspendTimeout(long timeOut,
TimeUnit timeUnit)
throws IllegalStateException
setSuspendTimeout in interface org.glassfish.jersey.server.spi.ContainerResponseWriterIllegalStateExceptionpublic void commit()
commit in interface org.glassfish.jersey.server.spi.ContainerResponseWriterpublic void failure(Throwable error)
failure in interface org.glassfish.jersey.server.spi.ContainerResponseWriterpublic boolean enableResponseBuffering()
enableResponseBuffering in interface org.glassfish.jersey.server.spi.ContainerResponseWriterprivate void rethrow(Throwable error)
error - throwable to be re-thrown