Package io.vertx.httpproxy.interceptors
Interface BodyTransformer
-
-
Method Summary
Static Methods Modifier and Type Method Description static BodyTransformer
discard()
Create a callback to discard the body.static BodyTransformer
transformJson(Function<Object,Object> transformer)
Create a callback for transform json with unknown shape.static BodyTransformer
transformJsonArray(Function<JsonArray,JsonArray> transformer)
Create a callback for transform JsonArray.static BodyTransformer
transformJsonObject(Function<JsonObject,JsonObject> transformer)
Create a callback for transform JsonObject.static BodyTransformer
transformText(Function<String,String> transformer, String encoding)
Create a callback for transform texts.
-
-
-
Method Detail
-
transformJsonObject
static BodyTransformer transformJsonObject(Function<JsonObject,JsonObject> transformer)
Create a callback for transform JsonObject.- Parameters:
transformer
- the operation to transform data- Returns:
- the built callback
-
transformJsonArray
static BodyTransformer transformJsonArray(Function<JsonArray,JsonArray> transformer)
Create a callback for transform JsonArray.- Parameters:
transformer
- the operation to transform data- Returns:
- the built callback
-
transformJson
static BodyTransformer transformJson(Function<Object,Object> transformer)
Create a callback for transform json with unknown shape.- Parameters:
transformer
- the operation to transform data- Returns:
- the built callback
-
transformText
static BodyTransformer transformText(Function<String,String> transformer, String encoding)
Create a callback for transform texts.- Parameters:
transformer
- the operation to transform data- Returns:
- the built callback
-
discard
static BodyTransformer discard()
Create a callback to discard the body.- Returns:
- the built callback
-
-