Package ch.ivyteam.ivy.rest.client
Class FeatureConfig
java.lang.Object
ch.ivyteam.ivy.rest.client.FeatureConfig
Accessor to
Feature configurations with common fail behavior for mandatory properties.- Since:
- 9.2
- API:
- This is a public API.
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureConfig(Function<String, Object> configStore, Class<?> feature) FeatureConfig(javax.ws.rs.core.Configuration config, Class<?> feature) -
Method Summary
-
Constructor Details
-
FeatureConfig
- API:
- This public API is available in Java.
-
FeatureConfig
- API:
- This public API is available in Java.
-
-
Method Details
-
readMandatory
- Parameters:
key- the name of a property configured on the Rest Client Activity or it's Rest Client Definition.- Returns:
- configured value or throw a
BpmErrorstating the missing property. - API:
- This public API is available in Java.
-
read
- Parameters:
key- the name of a property configured on the Rest Client Activity or it's Rest Client Definition.- Returns:
- non-blank value or
Optional.empty(); - API:
- This public API is available in Java.
-