public class RoutingEntry extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_CSRF_ENABLED |
| Constructor and Description |
|---|
RoutingEntry()
Default constructor
|
RoutingEntry(io.vertx.core.json.JsonObject json)
Create an settings from JSON
|
RoutingEntry(RoutingEntry other)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress() |
Map<String,RoutingEntry> |
getOnTransition() |
String |
getPath() |
boolean |
isCsrf() |
RoutingEntry |
setAddress(String address)
Sets the event bus address of the Knot that should process the request for a given path
|
RoutingEntry |
setCsrf(boolean csrfEnabled)
Enables/Disabled CSRF support for a given routing entry
|
RoutingEntry |
setOnTransition(Map<String,RoutingEntry> onTransition)
Describes routing to addresses of other Knots based on the transition trigger returned from current Knot.
|
RoutingEntry |
setPath(String path)
Sets the Regular expression of HTTP Request path
|
io.vertx.core.json.JsonObject |
toJson()
Convert to JSON
|
public static final boolean DEFAULT_CSRF_ENABLED
public RoutingEntry()
public RoutingEntry(RoutingEntry other)
other - the instance to copypublic RoutingEntry(io.vertx.core.json.JsonObject json)
json - the JSONpublic io.vertx.core.json.JsonObject toJson()
public String getPath()
public RoutingEntry setPath(String path)
path - a string with Regexppublic boolean isCsrf()
public RoutingEntry setCsrf(boolean csrfEnabled)
csrfEnabled - true if enabledpublic String getAddress()
public RoutingEntry setAddress(String address)
address - a stringpublic Map<String,RoutingEntry> getOnTransition()
public RoutingEntry setOnTransition(Map<String,RoutingEntry> onTransition)
"onTransition": {
"go-a": {},
"go-b": {}
}
onTransition - a map of String-RoutingEntryCopyright © 2016–2020. All rights reserved.