/** * @return the codec */ public static io.vertx.rxjava.ext.web.codec.BodyCodec<io.vertx.rxjava.core.buffer.Buffer> buffer() { io.vertx.rxjava.ext.web.codec.BodyCodec<io.vertx.rxjava.core.buffer.Buffer> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.buffer(), io.vertx.rxjava.core.buffer.Buffer.__TYPE_ARG); return ret; }
/** * @return the codec */ public static io.vertx.rxjava.ext.web.codec.BodyCodec<io.vertx.rxjava.core.buffer.Buffer> buffer() { io.vertx.rxjava.ext.web.codec.BodyCodec<io.vertx.rxjava.core.buffer.Buffer> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.buffer(), io.vertx.rxjava.core.buffer.Buffer.__TYPE_ARG); return ret; }
/** * @return a codec that simply discards the response */ public static io.vertx.rxjava.ext.web.codec.BodyCodec<Void> none() { io.vertx.rxjava.ext.web.codec.BodyCodec<Void> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.none(), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * @return the codec */ public static io.vertx.rxjava.ext.web.codec.BodyCodec<JsonArray> jsonArray() { io.vertx.rxjava.ext.web.codec.BodyCodec<JsonArray> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.jsonArray(), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * A codec for strings using a specific <code>encoding</code>. * @param encoding the encoding * @return the codec */ public static io.vertx.rxjava.ext.web.codec.BodyCodec<String> string(String encoding) { io.vertx.rxjava.ext.web.codec.BodyCodec<String> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.string(encoding), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * @return the codec */ public static io.vertx.rxjava.ext.web.codec.BodyCodec<JsonArray> jsonArray() { io.vertx.rxjava.ext.web.codec.BodyCodec<JsonArray> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.jsonArray(), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * @return a codec that simply discards the response */ public static io.vertx.rxjava.ext.web.codec.BodyCodec<Void> none() { io.vertx.rxjava.ext.web.codec.BodyCodec<Void> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.none(), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * @return the UTF-8 string codec */ public static io.vertx.rxjava.ext.web.codec.BodyCodec<String> string() { io.vertx.rxjava.ext.web.codec.BodyCodec<String> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.string(), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * @return the UTF-8 string codec */ public static io.vertx.rxjava.ext.web.codec.BodyCodec<String> string() { io.vertx.rxjava.ext.web.codec.BodyCodec<String> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.string(), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * @return the codec */ public static io.vertx.rxjava.ext.web.codec.BodyCodec<JsonObject> jsonObject() { io.vertx.rxjava.ext.web.codec.BodyCodec<JsonObject> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.jsonObject(), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * A codec for strings using a specific <code>encoding</code>. * @param encoding the encoding * @return the codec */ public static io.vertx.rxjava.ext.web.codec.BodyCodec<String> string(String encoding) { io.vertx.rxjava.ext.web.codec.BodyCodec<String> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.string(encoding), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * @return the codec */ public static io.vertx.rxjava.ext.web.codec.BodyCodec<JsonObject> jsonObject() { io.vertx.rxjava.ext.web.codec.BodyCodec<JsonObject> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.jsonObject(), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Create a codec that buffers the entire body and then apply the <code>decode</code> function and returns the result. * @param decode the decode function * @return the created codec */ public static <T> io.vertx.rxjava.ext.web.codec.BodyCodec<T> create(Function<io.vertx.rxjava.core.buffer.Buffer, T> decode) { io.vertx.rxjava.ext.web.codec.BodyCodec<T> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.create(new java.util.function.Function<io.vertx.core.buffer.Buffer,T>() { public T apply(io.vertx.core.buffer.Buffer arg) { T ret = decode.apply(io.vertx.rxjava.core.buffer.Buffer.newInstance(arg)); return ret; } }), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Create a codec that buffers the entire body and then apply the <code>decode</code> function and returns the result. * @param decode the decode function * @return the created codec */ public static <T> io.vertx.rxjava.ext.web.codec.BodyCodec<T> create(Function<io.vertx.rxjava.core.buffer.Buffer, T> decode) { io.vertx.rxjava.ext.web.codec.BodyCodec<T> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.create(new java.util.function.Function<io.vertx.core.buffer.Buffer,T>() { public T apply(io.vertx.core.buffer.Buffer arg) { T ret = decode.apply(io.vertx.rxjava.core.buffer.Buffer.newInstance(arg)); return ret; } }), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * A body codec that pipes the body to a write stream. * @param stream the destination tream * @return the body codec for a write stream */ public static io.vertx.rxjava.ext.web.codec.BodyCodec<Void> pipe(io.vertx.rxjava.core.streams.WriteStream<io.vertx.rxjava.core.buffer.Buffer> stream) { io.vertx.rxjava.ext.web.codec.BodyCodec<Void> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.pipe(stream.getDelegate()), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Create and return a codec for Java objects encoded using Jackson mapper. * @param type * @return a codec for mapping POJO to Json */ public static <U> io.vertx.rxjava.ext.web.codec.BodyCodec<U> json(Class<U> type) { io.vertx.rxjava.ext.web.codec.BodyCodec<U> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.json(io.vertx.lang.rxjava.Helper.unwrap(type)), io.vertx.lang.rx.TypeArg.of(type)); return ret; }
/** * A body codec that pipes the body to a write stream. * @param stream the destination stream * @return the body codec for a write stream */ public static io.vertx.rxjava.ext.web.codec.BodyCodec<Void> pipe(io.vertx.rxjava.core.streams.WriteStream<io.vertx.rxjava.core.buffer.Buffer> stream) { io.vertx.rxjava.ext.web.codec.BodyCodec<Void> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.pipe(stream.getDelegate()), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * A body codec that parse the response as a JSON stream. * @param 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. * @return the body codec for a write stream */ public static io.vertx.rxjava.ext.web.codec.BodyCodec<Void> jsonStream(io.vertx.rxjava.core.parsetools.JsonParser parser) { io.vertx.rxjava.ext.web.codec.BodyCodec<Void> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.jsonStream(parser.getDelegate()), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Create and return a codec for Java objects encoded using Jackson mapper. * @param type * @return a codec for mapping POJO to Json */ public static <U> io.vertx.rxjava.ext.web.codec.BodyCodec<U> json(Class<U> type) { io.vertx.rxjava.ext.web.codec.BodyCodec<U> ret = io.vertx.rxjava.ext.web.codec.BodyCodec.newInstance(io.vertx.ext.web.codec.BodyCodec.json(io.vertx.lang.rxjava.Helper.unwrap(type)), io.vertx.lang.rx.TypeArg.of(type)); return ret; }