Class ExpandOptions
java.lang.Object
io.vertx.uritemplate.ExpandOptions
Options to control template expansion.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanDefault value forallowVariableMissfield =trueas mandated by the RFC. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleansetAllowVariableMiss(boolean allowVariableMiss) Configures whether a template missing variable is replaced by the empty string or triggers aNoSuchElementExceptionto be thrown.toJson()
-
Field Details
-
DEFAULT_ALLOW_VARIABLE_MISS
public static final boolean DEFAULT_ALLOW_VARIABLE_MISSDefault value forallowVariableMissfield =trueas mandated by the RFC.- See Also:
-
-
Constructor Details
-
ExpandOptions
public ExpandOptions() -
ExpandOptions
-
ExpandOptions
-
-
Method Details
-
getAllowVariableMiss
public boolean getAllowVariableMiss()- Returns:
falseto trigger aNoSuchElementExceptionwhen a referenced variable is missing.
-
setAllowVariableMiss
Configures whether a template missing variable is replaced by the empty string or triggers aNoSuchElementExceptionto be thrown. The default istrueas specified by the RFC, settingfalseis a custom setting not compliant with the spec.- Parameters:
allowVariableMiss-trueto accept missing variables.- Returns:
- a reference to this, so the API can be used fluently
-
toJson
-