public class Fragment extends Object
| Constructor and Description |
|---|
Fragment(io.vertx.core.json.JsonObject fragment) |
| Modifier and Type | Method and Description |
|---|---|
String |
content() |
Fragment |
content(String content) |
io.vertx.core.json.JsonObject |
context() |
boolean |
equals(Object o) |
boolean |
failed() |
Fragment |
failure(String knot,
Throwable t) |
Optional<String> |
fallback() |
static Fragment |
fallback(String data,
String fallbackId) |
static Fragment |
fallback(String data,
String fallbackId,
String strategy) |
String |
getAttribute(String key) |
int |
hashCode() |
boolean |
isFallback() |
boolean |
isRaw() |
List<KnotTask> |
knotRouting() |
List<String> |
knots() |
static Fragment |
raw(String data) |
Fragment |
setAttribute(String key,
String value) |
static Fragment |
snippet(List<String> knots,
String data) |
static Fragment |
snippet(List<String> knots,
String data,
String fallback) |
Fragment |
success(String knot) |
io.vertx.core.json.JsonObject |
toJson() |
String |
toString() |
public Optional<String> fallback()
public io.vertx.core.json.JsonObject toJson()
public List<String> knots()
public String content()
public io.vertx.core.json.JsonObject context()
JsonObject containing the data produced during Knots chain processing and
used to exchange the context between them, e.g. ActionKnot can put there `action` context that
contains data accumulated during action processing.public boolean isRaw()
public boolean isFallback()
public boolean failed()
Copyright © 2016–2020. All rights reserved.