Class NettyHttpResponse

java.lang.Object
org.jboss.resteasy.plugins.server.netty.NettyHttpResponse
All Implemented Interfaces:
Closeable, AutoCloseable, HttpResponse

@Deprecated(forRemoval=true, since="6.2.13.Final") public class NettyHttpResponse extends Object implements HttpResponse
Deprecated, for removal: This API element is subject to removal in a future version.
use the new dependencies
Version:
$Revision: 1 $
Author:
Bill Burke
  • Constructor Summary

    Constructors
    Constructor
    Description
    NettyHttpResponse(io.netty.channel.ChannelHandlerContext ctx, boolean keepAlive, ResteasyProviderFactory providerFactory)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    NettyHttpResponse(io.netty.channel.ChannelHandlerContext ctx, boolean keepAlive, ResteasyProviderFactory providerFactory, io.netty.handler.codec.http.HttpMethod method)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addNewCookie(jakarta.ws.rs.core.NewCookie cookie)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    io.netty.handler.codec.http.DefaultHttpResponse
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    io.netty.handler.codec.http.DefaultHttpResponse
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    jakarta.ws.rs.core.MultivaluedMap<String,Object>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    reset status and headers.
    void
    sendError(int status)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    sendError(int status, String message)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setStatus(int status)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NettyHttpResponse

      public NettyHttpResponse(io.netty.channel.ChannelHandlerContext ctx, boolean keepAlive, ResteasyProviderFactory providerFactory)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • NettyHttpResponse

      public NettyHttpResponse(io.netty.channel.ChannelHandlerContext ctx, boolean keepAlive, ResteasyProviderFactory providerFactory, io.netty.handler.codec.http.HttpMethod method)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • setOutputStream

      public void setOutputStream(OutputStream os)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setOutputStream in interface HttpResponse
    • getStatus

      public int getStatus()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getStatus in interface HttpResponse
    • setStatus

      public void setStatus(int status)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setStatus in interface HttpResponse
    • getOutputHeaders

      public jakarta.ws.rs.core.MultivaluedMap<String,Object> getOutputHeaders()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getOutputHeaders in interface HttpResponse
    • getOutputStream

      public OutputStream getOutputStream() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getOutputStream in interface HttpResponse
      Throws:
      IOException
    • addNewCookie

      public void addNewCookie(jakarta.ws.rs.core.NewCookie cookie)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      addNewCookie in interface HttpResponse
    • sendError

      public void sendError(int status) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      sendError in interface HttpResponse
      Throws:
      IOException
    • sendError

      public void sendError(int status, String message) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      sendError in interface HttpResponse
      Throws:
      IOException
    • isCommitted

      public boolean isCommitted()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isCommitted in interface HttpResponse
    • reset

      public void reset()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: HttpResponse
      reset status and headers. Will fail if response is committed
      Specified by:
      reset in interface HttpResponse
    • isKeepAlive

      public boolean isKeepAlive()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getDefaultHttpResponse

      public io.netty.handler.codec.http.DefaultHttpResponse getDefaultHttpResponse()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getEmptyHttpResponse

      public io.netty.handler.codec.http.DefaultHttpResponse getEmptyHttpResponse()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • prepareChunkStream

      public void prepareChunkStream()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • finish

      public void finish() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
    • flushBuffer

      public void flushBuffer() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      flushBuffer in interface HttpResponse
      Throws:
      IOException