Class AbstractResponseWrapper

java.lang.Object
io.quarkus.vertx.http.runtime.filters.AbstractResponseWrapper
All Implemented Interfaces:
io.vertx.core.http.HttpServerResponse, io.vertx.core.streams.StreamBase, io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
Direct Known Subclasses:
QuarkusRequestWrapper.ResponseWrapper

public class AbstractResponseWrapper extends Object implements io.vertx.core.http.HttpServerResponse
  • Constructor Details

    • AbstractResponseWrapper

      protected AbstractResponseWrapper(io.vertx.core.http.HttpServerResponse delegate)
  • Method Details

    • exceptionHandler

      public io.vertx.core.http.HttpServerResponse exceptionHandler(io.vertx.core.Handler<Throwable> handler)
      Specified by:
      exceptionHandler in interface io.vertx.core.http.HttpServerResponse
      Specified by:
      exceptionHandler in interface io.vertx.core.streams.StreamBase
      Specified by:
      exceptionHandler in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • write

      public io.vertx.core.Future<Void> write(io.vertx.core.buffer.Buffer data)
      Specified by:
      write in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • setWriteQueueMaxSize

      public io.vertx.core.http.HttpServerResponse setWriteQueueMaxSize(int maxSize)
      Specified by:
      setWriteQueueMaxSize in interface io.vertx.core.http.HttpServerResponse
      Specified by:
      setWriteQueueMaxSize in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • drainHandler

      public io.vertx.core.http.HttpServerResponse drainHandler(io.vertx.core.Handler<Void> handler)
      Specified by:
      drainHandler in interface io.vertx.core.http.HttpServerResponse
      Specified by:
      drainHandler in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • getStatusCode

      public int getStatusCode()
      Specified by:
      getStatusCode in interface io.vertx.core.http.HttpServerResponse
    • setStatusCode

      public io.vertx.core.http.HttpServerResponse setStatusCode(int statusCode)
      Specified by:
      setStatusCode in interface io.vertx.core.http.HttpServerResponse
    • getStatusMessage

      public String getStatusMessage()
      Specified by:
      getStatusMessage in interface io.vertx.core.http.HttpServerResponse
    • setStatusMessage

      public io.vertx.core.http.HttpServerResponse setStatusMessage(String statusMessage)
      Specified by:
      setStatusMessage in interface io.vertx.core.http.HttpServerResponse
    • setChunked

      public io.vertx.core.http.HttpServerResponse setChunked(boolean chunked)
      Specified by:
      setChunked in interface io.vertx.core.http.HttpServerResponse
    • isChunked

      public boolean isChunked()
      Specified by:
      isChunked in interface io.vertx.core.http.HttpServerResponse
    • headers

      public io.vertx.core.MultiMap headers()
      Specified by:
      headers in interface io.vertx.core.http.HttpServerResponse
    • putHeader

      public io.vertx.core.http.HttpServerResponse putHeader(String name, String value)
      Specified by:
      putHeader in interface io.vertx.core.http.HttpServerResponse
    • putHeader

      public io.vertx.core.http.HttpServerResponse putHeader(CharSequence name, CharSequence value)
      Specified by:
      putHeader in interface io.vertx.core.http.HttpServerResponse
    • putHeader

      public io.vertx.core.http.HttpServerResponse putHeader(String name, Iterable<String> values)
      Specified by:
      putHeader in interface io.vertx.core.http.HttpServerResponse
    • putHeader

      public io.vertx.core.http.HttpServerResponse putHeader(CharSequence name, Iterable<CharSequence> values)
      Specified by:
      putHeader in interface io.vertx.core.http.HttpServerResponse
    • trailers

      public io.vertx.core.MultiMap trailers()
      Specified by:
      trailers in interface io.vertx.core.http.HttpServerResponse
    • putTrailer

      public io.vertx.core.http.HttpServerResponse putTrailer(String name, String value)
      Specified by:
      putTrailer in interface io.vertx.core.http.HttpServerResponse
    • putTrailer

      public io.vertx.core.http.HttpServerResponse putTrailer(CharSequence name, CharSequence value)
      Specified by:
      putTrailer in interface io.vertx.core.http.HttpServerResponse
    • putTrailer

      public io.vertx.core.http.HttpServerResponse putTrailer(String name, Iterable<String> values)
      Specified by:
      putTrailer in interface io.vertx.core.http.HttpServerResponse
    • putTrailer

      public io.vertx.core.http.HttpServerResponse putTrailer(CharSequence name, Iterable<CharSequence> value)
      Specified by:
      putTrailer in interface io.vertx.core.http.HttpServerResponse
    • closeHandler

      public io.vertx.core.http.HttpServerResponse closeHandler(io.vertx.core.Handler<Void> handler)
      Specified by:
      closeHandler in interface io.vertx.core.http.HttpServerResponse
    • endHandler

      public io.vertx.core.http.HttpServerResponse endHandler(io.vertx.core.Handler<Void> handler)
      Specified by:
      endHandler in interface io.vertx.core.http.HttpServerResponse
    • writeHead

      public io.vertx.core.Future<Void> writeHead()
      Specified by:
      writeHead in interface io.vertx.core.http.HttpServerResponse
    • write

      public io.vertx.core.Future<Void> write(String chunk, String enc)
      Specified by:
      write in interface io.vertx.core.http.HttpServerResponse
    • write

      public io.vertx.core.Future<Void> write(String chunk)
      Specified by:
      write in interface io.vertx.core.http.HttpServerResponse
    • writeContinue

      public io.vertx.core.Future<Void> writeContinue()
      Specified by:
      writeContinue in interface io.vertx.core.http.HttpServerResponse
    • writeEarlyHints

      public io.vertx.core.Future<Void> writeEarlyHints(io.vertx.core.MultiMap headers)
      Specified by:
      writeEarlyHints in interface io.vertx.core.http.HttpServerResponse
    • end

      public io.vertx.core.Future<Void> end(String chunk)
      Specified by:
      end in interface io.vertx.core.http.HttpServerResponse
    • end

      public io.vertx.core.Future<Void> end(String chunk, String enc)
      Specified by:
      end in interface io.vertx.core.http.HttpServerResponse
    • end

      public io.vertx.core.Future<Void> end(io.vertx.core.buffer.Buffer chunk)
      Specified by:
      end in interface io.vertx.core.http.HttpServerResponse
      Specified by:
      end in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • end

      public io.vertx.core.Future<Void> end()
      Specified by:
      end in interface io.vertx.core.http.HttpServerResponse
      Specified by:
      end in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • send

      public io.vertx.core.Future<Void> send()
      Specified by:
      send in interface io.vertx.core.http.HttpServerResponse
    • send

      public io.vertx.core.Future<Void> send(String body)
      Specified by:
      send in interface io.vertx.core.http.HttpServerResponse
    • send

      public io.vertx.core.Future<Void> send(io.vertx.core.buffer.Buffer body)
      Specified by:
      send in interface io.vertx.core.http.HttpServerResponse
    • send

      public io.vertx.core.Future<Void> send(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> body)
      Specified by:
      send in interface io.vertx.core.http.HttpServerResponse
    • sendFile

      public io.vertx.core.Future<Void> sendFile(String filename)
      Specified by:
      sendFile in interface io.vertx.core.http.HttpServerResponse
    • sendFile

      public io.vertx.core.Future<Void> sendFile(String filename, long offset)
      Specified by:
      sendFile in interface io.vertx.core.http.HttpServerResponse
    • sendFile

      public io.vertx.core.Future<Void> sendFile(String filename, long offset, long length)
      Specified by:
      sendFile in interface io.vertx.core.http.HttpServerResponse
    • sendFile

      public io.vertx.core.Future<Void> sendFile(RandomAccessFile file, long offset, long length)
      Specified by:
      sendFile in interface io.vertx.core.http.HttpServerResponse
    • sendFile

      public io.vertx.core.Future<Void> sendFile(FileChannel file, long offset, long length)
      Specified by:
      sendFile in interface io.vertx.core.http.HttpServerResponse
    • ended

      public boolean ended()
      Specified by:
      ended in interface io.vertx.core.http.HttpServerResponse
    • closed

      public boolean closed()
      Specified by:
      closed in interface io.vertx.core.http.HttpServerResponse
    • headWritten

      public boolean headWritten()
      Specified by:
      headWritten in interface io.vertx.core.http.HttpServerResponse
    • headersEndHandler

      public io.vertx.core.http.HttpServerResponse headersEndHandler(io.vertx.core.Handler<Void> handler)
      Specified by:
      headersEndHandler in interface io.vertx.core.http.HttpServerResponse
    • bodyEndHandler

      public io.vertx.core.http.HttpServerResponse bodyEndHandler(io.vertx.core.Handler<Void> handler)
      Specified by:
      bodyEndHandler in interface io.vertx.core.http.HttpServerResponse
    • bytesWritten

      public long bytesWritten()
      Specified by:
      bytesWritten in interface io.vertx.core.http.HttpServerResponse
    • streamId

      public long streamId()
      Specified by:
      streamId in interface io.vertx.core.http.HttpServerResponse
    • push

      public io.vertx.core.Future<io.vertx.core.http.HttpServerResponse> push(io.vertx.core.http.HttpMethod method, io.vertx.core.net.HostAndPort authority, String path, io.vertx.core.MultiMap headers)
      Specified by:
      push in interface io.vertx.core.http.HttpServerResponse
    • reset

      public io.vertx.core.Future<Void> reset()
      Specified by:
      reset in interface io.vertx.core.http.HttpServerResponse
    • reset

      public io.vertx.core.Future<Void> reset(long code)
      Specified by:
      reset in interface io.vertx.core.http.HttpServerResponse
    • cancel

      public io.vertx.core.Future<Boolean> cancel()
      Specified by:
      cancel in interface io.vertx.core.http.HttpServerResponse
    • writeCustomFrame

      public io.vertx.core.Future<Void> writeCustomFrame(int type, int flags, io.vertx.core.buffer.Buffer payload)
      Specified by:
      writeCustomFrame in interface io.vertx.core.http.HttpServerResponse
    • writeCustomFrame

      public io.vertx.core.Future<Void> writeCustomFrame(io.vertx.core.http.HttpFrame frame)
      Specified by:
      writeCustomFrame in interface io.vertx.core.http.HttpServerResponse
    • setStreamPriority

      public io.vertx.core.http.HttpServerResponse setStreamPriority(io.vertx.core.http.StreamPriority streamPriority)
      Specified by:
      setStreamPriority in interface io.vertx.core.http.HttpServerResponse
    • addCookie

      public io.vertx.core.http.HttpServerResponse addCookie(io.vertx.core.http.Cookie cookie)
      Specified by:
      addCookie in interface io.vertx.core.http.HttpServerResponse
    • removeCookie

      public io.vertx.core.http.Cookie removeCookie(String name)
      Specified by:
      removeCookie in interface io.vertx.core.http.HttpServerResponse
    • removeCookie

      public io.vertx.core.http.Cookie removeCookie(String name, boolean invalidate)
      Specified by:
      removeCookie in interface io.vertx.core.http.HttpServerResponse
    • removeCookies

      public Set<io.vertx.core.http.Cookie> removeCookies(String name)
      Specified by:
      removeCookies in interface io.vertx.core.http.HttpServerResponse
    • removeCookies

      public Set<io.vertx.core.http.Cookie> removeCookies(String name, boolean invalidate)
      Specified by:
      removeCookies in interface io.vertx.core.http.HttpServerResponse
    • removeCookie

      public io.vertx.core.http.Cookie removeCookie(String name, String domain, String path)
      Specified by:
      removeCookie in interface io.vertx.core.http.HttpServerResponse
    • removeCookie

      public io.vertx.core.http.Cookie removeCookie(String name, String domain, String path, boolean invalidate)
      Specified by:
      removeCookie in interface io.vertx.core.http.HttpServerResponse
    • writeAltSvc

      public io.vertx.core.Future<Void> writeAltSvc(String s)
      Specified by:
      writeAltSvc in interface io.vertx.core.http.HttpServerResponse
    • writeQueueFull

      public boolean writeQueueFull()
      Specified by:
      writeQueueFull in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>