Class Body

java.lang.Object
io.vertx.mutiny.httpproxy.Body
All Implemented Interfaces:
MutinyDelegate

public class Body extends Object implements MutinyDelegate
Handles the HTTP proxy body.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

Author:
Julien Viet
See Also:
  • Body
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TypeArg<Body>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Body(io.vertx.httpproxy.Body delegate)
    Create a new instance of Body delegating to the given (non-null) instance of Body.
    Body(Object delegate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Body
    body(io.vertx.core.buffer.Buffer buffer)
     
    static Body
    body(io.vertx.core.buffer.Buffer buffer, io.vertx.httpproxy.MediaType mediaType)
    Create a new Body instance.
    static Body
    body(ReadStream<io.vertx.core.buffer.Buffer> stream)
    Create a new Body instance.
    static Body
    body(ReadStream<io.vertx.core.buffer.Buffer> stream, long len)
    Create a new Body instance.
    static Body
    body(ReadStream<io.vertx.core.buffer.Buffer> stream, long len, io.vertx.httpproxy.MediaType mediatype)
     
    static Body
    body(ReadStream<io.vertx.core.buffer.Buffer> stream, long len, String mediatype)
     
    static Body
    body(Flow.Publisher<io.vertx.core.buffer.Buffer> stream)
    Create a new Body instance.
    static Body
    body(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, long len)
    Create a new Body instance.
    static Body
    body(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, long len, io.vertx.httpproxy.MediaType mediatype)
     
    static Body
    body(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, long len, String mediatype)
     
    boolean
     
    io.vertx.httpproxy.Body
    Get the delegate instance.
    int
     
    long
    Get length of the Body.
     
    static Body
    newInstance(io.vertx.httpproxy.Body delegate)
    Creates a new instance of the Body.
    ReadStream<io.vertx.core.buffer.Buffer>
    Get stream of the Body.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • __TYPE_ARG

      public static final TypeArg<Body> __TYPE_ARG
  • Constructor Details

    • Body

      public Body(io.vertx.httpproxy.Body delegate)
      Create a new instance of Body delegating to the given (non-null) instance of Body.
    • Body

      public Body(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.httpproxy.Body getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • body

      public static Body body(ReadStream<io.vertx.core.buffer.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(Flow.Publisher<io.vertx.core.buffer.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(ReadStream<io.vertx.core.buffer.Buffer> stream, long len, io.vertx.httpproxy.MediaType mediatype)
    • body

      public static Body body(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, long len, io.vertx.httpproxy.MediaType mediatype)
    • body

      public static Body body(ReadStream<io.vertx.core.buffer.Buffer> stream, long len, String mediatype)
    • body

      public static Body body(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, long len, String mediatype)
    • body

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

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

      public static Body body(io.vertx.core.buffer.Buffer buffer)
    • body

      public static Body body(io.vertx.core.buffer.Buffer buffer, io.vertx.httpproxy.MediaType mediaType)
      Create a new Body instance.
      Parameters:
      buffer - the Buffer 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<io.vertx.core.buffer.Buffer> stream()
      Get stream of the Body.
      Returns:
      the body stream
    • newInstance

      public static Body newInstance(io.vertx.httpproxy.Body delegate)
      Creates a new instance of the Body.
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object