Package io.vertx.rxjava3.httpproxy
Class Body
- java.lang.Object
-
- io.vertx.rxjava3.httpproxy.Body
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<Body>__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Bodybody(Flowable<Buffer> stream)Create a newBodyinstance.static Bodybody(Flowable<Buffer> stream, long len)Create a newBodyinstance.static Bodybody(Flowable<Buffer> stream, long len, MediaType mediatype)static Bodybody(Flowable<Buffer> stream, long len, String mediatype)static Bodybody(Buffer buffer)static Bodybody(Buffer buffer, MediaType mediaType)Create a newBodyinstance.booleanequals(Object o)BodygetDelegate()inthashCode()longlength()Get length of theBody.StringmediaType()static BodynewInstance(Body arg)ReadStream<Buffer>stream()Get stream of theBody.StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<Body> __TYPE_ARG
-
-
Method Detail
-
getDelegate
public Body getDelegate()
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
body
public static Body body(Flowable<Buffer> stream, long len)
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(Flowable<Buffer> stream)
Create a newBodyinstance.- 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, MediaType mediaType)
Create a newBodyinstance.- Parameters:
buffer- the of the bodymediaType- 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 theBody.- Returns:
- the body length or
-1if that can't be determined
-
stream
public ReadStream<Buffer> stream()
Get stream of theBody.- Returns:
- the body stream
-
-