Class RemoteDevBodySpoolStore.Spool

java.lang.Object
io.quarkus.vertx.http.runtime.devmode.RemoteDevBodySpoolStore.Spool
Enclosing class:
RemoteDevBodySpoolStore

static final class RemoteDevBodySpoolStore.Spool extends Object
One request body spool.

It is writable until closeForReading() and remains readable until delete().

  • Method Details

    • write

      void write(byte[] bytes) throws IOException
      Appends an inbound request chunk.
      Throws:
      IOException
    • closeForReading

      void closeForReading() throws IOException
      Closes the write channel so the spool can be read.
      Throws:
      IOException
    • openInputStream

      InputStream openInputStream() throws IOException
      Opens a new stream for reading the completed body.
      Throws:
      IOException
    • readAllBytes

      byte[] readAllBytes() throws IOException
      Reads the completed body for operations that require its complete byte array.
      Throws:
      IOException
    • delete

      void delete() throws IOException
      Closes the spool and deletes its file.
      Throws:
      IOException