Annotation Interface DefaultValue
Provide default values for query strings in the typed parameter
TypedParam
Use either "value" or "provider" to set a default value for the query parameter; if the default
value is a constant, set it via "value" field; otherwise, implement your own ValueProvider to
provide the default value for the query parameter programmatically. A sample is as below.
@TypedParam({
@DefaultValue(name = "inline", value = "false"),
@DefaultValue(name = "starts-with", value = "hello"),
@DefaultValue(name = "current-user", provider = CurrentUserProvider.class)})
TestCollectionParam collectionParam;
-
Required Element Summary
-
Optional Element Summary
-
Element Details
-
name
String nameThe query parameter name- Returns:
- query parameter name
-
-
-
value
String[] valueThe default value for a query parameter- Returns:
- query parameter default value
- Default:
- {}
-
provider
Class<? extends com.emc.documentum.rest.http.provider.ValueProvider> providerA ValueProvider is a class that can retrieve the default value programmatically- Returns:
- Class object of
ValueProvider
- Default:
- com.emc.documentum.rest.http.provider.ValueProvider.class
-