Class VertxHttpResponse

java.lang.Object
io.quarkus.resteasy.runtime.standalone.VertxHttpResponse
All Implemented Interfaces:
Closeable, AutoCloseable, org.jboss.resteasy.spi.HttpResponse

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

    • request

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

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

    • 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 Details

    • 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 jakarta.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(jakarta.ws.rs.core.NewCookie cookie)
      Specified by:
      addNewCookie in interface org.jboss.resteasy.spi.HttpResponse
    • checkException

      void checkException() throws IOException
      Throws:
      IOException
    • 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
    • finish

      public void finish() throws IOException
      Throws:
      IOException
    • 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)