Package io.vertx.mutiny.ext.web.codec
Class BodyCodec<T>
java.lang.Object
io.vertx.mutiny.ext.web.codec.BodyCodec<T>
- All Implemented Interfaces:
MutinyDelegate
A codec for encoding and decoding HTTP bodies.
NOTE: This class has been automatically generated from the
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuffer()
static <T> BodyCodec<T>
boolean
io.vertx.ext.web.codec.BodyCodec
int
hashCode()
static <U> BodyCodec<U>
static BodyCodec<io.vertx.core.json.JsonArray>
static BodyCodec<io.vertx.core.json.JsonObject>
jsonStream
(JsonParser parser) static <T> BodyCodec<T>
newInstance
(io.vertx.ext.web.codec.BodyCodec arg) static <T> BodyCodec<T>
newInstance
(io.vertx.ext.web.codec.BodyCodec arg, TypeArg<T> __typeArg_T) none()
pipe
(WriteStream<Buffer> stream) pipe
(WriteStream<Buffer> stream, boolean close) string()
toString()
-
Field Details
-
__TYPE_ARG
-
__typeArg_0
-
-
Constructor Details
-
BodyCodec
public BodyCodec(io.vertx.ext.web.codec.BodyCodec delegate) -
BodyCodec
-
BodyCodec
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.codec.BodyCodec getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
string
- Returns:
- the UTF-8 string codec
-
string
- Parameters:
encoding
- the encoding- Returns:
- the codec
-
buffer
- Returns:
- the codec
-
jsonObject
- Returns:
- the codec
-
jsonArray
- Returns:
- the codec
-
json
- Parameters:
type
-- Returns:
- a codec for mapping POJO to Json
-
none
- Returns:
- a codec that simply discards the response
-
create
- Parameters:
decode
- the decode function- Returns:
- the created codec
-
pipe
- Parameters:
stream
- the destination stream- Returns:
- the body codec for a write stream
-
pipe
- Parameters:
stream
- the destination streamclose
- whether the destination stream should be closed- Returns:
- the body codec for a write stream
-
jsonStream
- Parameters:
parser
- the non-null JSON parser to emits the JSON object. The parser must be configured for the stream. Not e that you need to keep a reference on the parser to retrieved the JSON events.- Returns:
- the body codec for a write stream
-
newInstance
-
newInstance
-