Class Body

java.lang.Object
io.vertx.rxjava3.httpproxy.Body
All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate

public class Body extends Object implements io.vertx.lang.rx.RxDelegate
Handles the HTTP proxy body.

NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

  • Field Details

    • __TYPE_ARG

      public static final io.vertx.lang.rx.TypeArg<Body> __TYPE_ARG
  • Constructor Details

    • Body

      public Body(Body delegate)
    • Body

      public Body(Object delegate)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getDelegate

      public Body getDelegate()
      Specified by:
      getDelegate in interface io.vertx.lang.rx.RxDelegate
    • body

      public static Body body(Flowable<Buffer> stream, long len)
      Create a new Body instance.
      Parameters:
      stream - the ReadStream of the body
      len - the determined length of the body
      Returns:
      a reference to this, so the API can be used fluently
    • body

      public static Body body(Flowable<Buffer> stream, long len, MediaType mediatype)
    • body

      public static Body body(Flowable<Buffer> stream, long len, String mediatype)
    • body

      public static Body body(Flowable<Buffer> stream)
      Create a new Body instance.
      Parameters:
      stream - the of the body
      Returns:
      a reference to this, so the API can be used fluently
    • body

      public static Body body(Buffer buffer)
    • body

      public static Body body(Buffer buffer, MediaType mediaType)
      Create a new Body instance.
      Parameters:
      buffer - the of the body
      mediaType - the body media type
      Returns:
      a reference to this, so the API can be used fluently
    • mediaType

      public String mediaType()
      Returns:
      the media type of this body
    • length

      public long length()
      Get length of the Body.
      Returns:
      the body length or -1 if that can't be determined
    • stream

      public ReadStream<Buffer> stream()
      Get stream of the Body.
      Returns:
      the body stream
    • newInstance

      public static Body newInstance(Body arg)