Class NettyHttpResponse
java.lang.Object
org.jboss.resteasy.plugins.server.netty.NettyHttpResponse
- All Implemented Interfaces:
Closeable,AutoCloseable,HttpResponse
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Constructor Summary
ConstructorsConstructorDescriptionNettyHttpResponse(io.netty.channel.ChannelHandlerContext ctx, boolean keepAlive, ResteasyProviderFactory providerFactory) NettyHttpResponse(io.netty.channel.ChannelHandlerContext ctx, boolean keepAlive, ResteasyProviderFactory providerFactory, io.netty.handler.codec.http.HttpMethod method) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNewCookie(jakarta.ws.rs.core.NewCookie cookie) voidfinish()voidio.netty.handler.codec.http.DefaultHttpResponseio.netty.handler.codec.http.DefaultHttpResponseintbooleanbooleanvoidvoidreset()voidsendError(int status) voidvoidvoidsetStatus(int status) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.resteasy.spi.HttpResponse
close, getAsyncOutputStream, setSuppressExceptionDuringChunkedTransfer, suppressExceptionDuringChunkedTransfer
-
Constructor Details
-
NettyHttpResponse
public NettyHttpResponse(io.netty.channel.ChannelHandlerContext ctx, boolean keepAlive, ResteasyProviderFactory providerFactory) -
NettyHttpResponse
public NettyHttpResponse(io.netty.channel.ChannelHandlerContext ctx, boolean keepAlive, ResteasyProviderFactory providerFactory, io.netty.handler.codec.http.HttpMethod method)
-
-
Method Details
-
setOutputStream
- Specified by:
setOutputStreamin interfaceHttpResponse
-
getStatus
public int getStatus()- Specified by:
getStatusin interfaceHttpResponse
-
setStatus
public void setStatus(int status) - Specified by:
setStatusin interfaceHttpResponse
-
getOutputHeaders
- Specified by:
getOutputHeadersin interfaceHttpResponse
-
getOutputStream
- Specified by:
getOutputStreamin interfaceHttpResponse- Throws:
IOException
-
addNewCookie
public void addNewCookie(jakarta.ws.rs.core.NewCookie cookie) - Specified by:
addNewCookiein interfaceHttpResponse
-
sendError
- Specified by:
sendErrorin interfaceHttpResponse- Throws:
IOException
-
sendError
- Specified by:
sendErrorin interfaceHttpResponse- Throws:
IOException
-
isCommitted
public boolean isCommitted()- Specified by:
isCommittedin interfaceHttpResponse
-
reset
public void reset()- Specified by:
resetin interfaceHttpResponse
-
isKeepAlive
public boolean isKeepAlive() -
getDefaultHttpResponse
public io.netty.handler.codec.http.DefaultHttpResponse getDefaultHttpResponse() -
getEmptyHttpResponse
public io.netty.handler.codec.http.DefaultHttpResponse getEmptyHttpResponse() -
prepareChunkStream
public void prepareChunkStream() -
finish
- Throws:
IOException
-
flushBuffer
- Specified by:
flushBufferin interfaceHttpResponse- Throws:
IOException
-