Module ch.ralscha.extdirectspring
Annotation Interface MetadataParam
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe default value to use as a fallback when the request parameter value is not provided or empty.booleanWhether the parameter is required.The name of the metadata parameter to bind to.
-
Element Details
-
value
String valueThe name of the metadata parameter to bind to.- Default:
""
-
required
boolean requiredWhether the parameter is required.Default is
true, leading to an exception thrown in case of the parameter missing in the request. Switch this tofalseif you prefer anullin case of the parameter missing.Alternatively, provide a
defaultValue, which implicitly sets this flag tofalse.- Default:
true
-
defaultValue
String defaultValueThe default value to use as a fallback when the request parameter value is not provided or empty. Supplying a default value implicitly setsrequired()to false.- Default:
"\n\t\t\n\t\t\n\ue000\ue001\ue002\n\t\t\t\t\n"
-