Class VertxHttpResponse

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.jboss.resteasy.spi.HttpResponse

    public class VertxHttpResponse
    extends Object
    implements org.jboss.resteasy.spi.HttpResponse
    • Field Detail

      • request

        final io.vertx.core.http.HttpServerRequest request
      • response

        final io.vertx.core.http.HttpServerResponse response
    • Constructor Detail

      • VertxHttpResponse

        public VertxHttpResponse​(io.vertx.core.http.HttpServerRequest request,
                                 org.jboss.resteasy.spi.ResteasyProviderFactory providerFactory,
                                 io.vertx.core.http.HttpMethod method,
                                 BufferAllocator allocator,
                                 VertxOutput output,
                                 io.vertx.ext.web.RoutingContext routingContext)
    • Method Detail

      • setOutputStream

        public void setOutputStream​(OutputStream os)
        Specified by:
        setOutputStream in interface org.jboss.resteasy.spi.HttpResponse
      • getStatus

        public int getStatus()
        Specified by:
        getStatus in interface org.jboss.resteasy.spi.HttpResponse
      • setStatus

        public void setStatus​(int status)
        Specified by:
        setStatus in interface org.jboss.resteasy.spi.HttpResponse
      • getOutputHeaders

        public javax.ws.rs.core.MultivaluedMap<String,​Object> getOutputHeaders()
        Specified by:
        getOutputHeaders in interface org.jboss.resteasy.spi.HttpResponse
      • getOutputStream

        public OutputStream getOutputStream()
                                     throws IOException
        Specified by:
        getOutputStream in interface org.jboss.resteasy.spi.HttpResponse
        Throws:
        IOException
      • addNewCookie

        public void addNewCookie​(javax.ws.rs.core.NewCookie cookie)
        Specified by:
        addNewCookie in interface org.jboss.resteasy.spi.HttpResponse
      • sendError

        public void sendError​(int status)
                       throws IOException
        Specified by:
        sendError in interface org.jboss.resteasy.spi.HttpResponse
        Throws:
        IOException
      • sendError

        public void sendError​(int status,
                              String message)
                       throws IOException
        Specified by:
        sendError in interface org.jboss.resteasy.spi.HttpResponse
        Throws:
        IOException
      • isCommitted

        public boolean isCommitted()
        Specified by:
        isCommitted in interface org.jboss.resteasy.spi.HttpResponse
      • reset

        public void reset()
        Specified by:
        reset in interface org.jboss.resteasy.spi.HttpResponse
      • flushBuffer

        public void flushBuffer()
                         throws IOException
        Specified by:
        flushBuffer in interface org.jboss.resteasy.spi.HttpResponse
        Throws:
        IOException
      • writeBlocking

        public void writeBlocking​(io.netty.buffer.ByteBuf buffer,
                                  boolean finished)
                           throws IOException
        Throws:
        IOException
      • writeNonBlocking

        public CompletionStage<Void> writeNonBlocking​(io.netty.buffer.ByteBuf buffer,
                                                      boolean finished)