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.ContainerResponseWriter
org.glassfish.jersey.server.ContainerException
public boolean suspend(long timeOut, TimeUnit timeUnit, org.glassfish.jersey.server.spi.ContainerResponseWriter.TimeoutHandler timeoutHandler)
suspend
in interface org.glassfish.jersey.server.spi.ContainerResponseWriter
public void setSuspendTimeout(long timeOut, TimeUnit timeUnit) throws IllegalStateException
setSuspendTimeout
in interface org.glassfish.jersey.server.spi.ContainerResponseWriter
IllegalStateException
public void commit()
commit
in interface org.glassfish.jersey.server.spi.ContainerResponseWriter
public void failure(Throwable error)
failure
in interface org.glassfish.jersey.server.spi.ContainerResponseWriter
public boolean enableResponseBuffering()
enableResponseBuffering
in interface org.glassfish.jersey.server.spi.ContainerResponseWriter
private void rethrow(Throwable error)
error
- throwable to be re-thrown