Package io.vertx.mutiny.httpproxy
Class Body
java.lang.Object
io.vertx.mutiny.httpproxy.Body
- All Implemented Interfaces:
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Bodybody(io.vertx.core.buffer.Buffer buffer) static Bodybody(io.vertx.core.buffer.Buffer buffer, io.vertx.httpproxy.MediaType mediaType) Create a newBodyinstance.static Bodybody(ReadStream<io.vertx.core.buffer.Buffer> stream) Create a newBodyinstance.static Bodybody(ReadStream<io.vertx.core.buffer.Buffer> stream, long len) Create a newBodyinstance.static Bodybody(ReadStream<io.vertx.core.buffer.Buffer> stream, long len, io.vertx.httpproxy.MediaType mediatype) static Bodybody(ReadStream<io.vertx.core.buffer.Buffer> stream, long len, String mediatype) static Bodybody(Flow.Publisher<io.vertx.core.buffer.Buffer> stream) Create a newBodyinstance.static Bodybody(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, long len) Create a newBodyinstance.static Bodybody(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, long len, io.vertx.httpproxy.MediaType mediatype) static Bodybody(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, long len, String mediatype) booleanio.vertx.httpproxy.BodyGet the delegate instance.inthashCode()longlength()Get length of theBody.static BodynewInstance(io.vertx.httpproxy.Body delegate) Creates a new instance of theBody.ReadStream<io.vertx.core.buffer.Buffer>stream()Get stream of theBody.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Body
public Body(io.vertx.httpproxy.Body delegate) Create a new instance ofBodydelegating to the given (non-null) instance ofBody. -
Body
-
-
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:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
body
Create a newBodyinstance.- Parameters:
stream- theReadStreamof the bodylen- the determined length of the body- Returns:
- a reference to this, so the API can be used fluently
-
body
Create a newBodyinstance.- Parameters:
stream- theReadStreamof the bodylen- 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
-
body
public static Body body(Flow.Publisher<io.vertx.core.buffer.Buffer> stream, long len, String mediatype) -
body
Create a newBodyinstance.- Parameters:
stream- theReadStreamof the body- Returns:
- a reference to this, so the API can be used fluently
-
body
Create a newBodyinstance.- Parameters:
stream- theReadStreamof the body- Returns:
- a reference to this, so the API can be used fluently
-
body
-
body
Create a newBodyinstance.- Parameters:
buffer- theBufferof the bodymediaType- the body media type- Returns:
- a reference to this, so the API can be used fluently
-
mediaType
- Returns:
- the media type of this body
-
length
public long length()Get length of theBody.- Returns:
- the body length or
-1if that can't be determined
-
stream
Get stream of theBody.- Returns:
- the body stream
-
newInstance
Creates a new instance of theBody. -
hashCode
public int hashCode() -
equals
-
toString
-