Class ConfigurationBuilderUtil
java.lang.Object
org.apache.synapse.transport.util.ConfigurationBuilderUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleangetBooleanProperty(String name, Boolean def, Properties props) Get a boolean property that tunes pass-through http transport.static BooleangetBooleanProperty(String name, Properties props) Get a Boolean property that tunes pass-through http transport.static IntegergetIntProperty(String name, Integer def, Properties props) Get an int property that tunes pass-through http transport.static IntegergetIntProperty(String name, Properties props) Get an int property that tunes pass-through http transport.static LonggetLongProperty(String name, Long def, Properties props) static StringgetStringProperty(String name, String def, Properties props) Get a String property that tunes pass-through http transport.static booleanisIntPropertyConfigured(String name, Properties props) Return true if user has configured an int property that tunes pass-through http transport.
-
Constructor Details
-
ConfigurationBuilderUtil
public ConfigurationBuilderUtil()
-
-
Method Details
-
getIntProperty
Get an int property that tunes pass-through http transport. Prefer system properties- Parameters:
name- name of the system/config propertydef- default value to return if the property is not set- Returns:
- the value of the property to be used
-
isIntPropertyConfigured
Return true if user has configured an int property that tunes pass-through http transport.- Parameters:
name- name of the system/config property- Returns:
- true if property is configured
-
getIntProperty
Get an int property that tunes pass-through http transport. Prefer system properties- Parameters:
name- name of the system/config property- Returns:
- the value of the property, null if the property is not found
-
getLongProperty
-
getBooleanProperty
Get a boolean property that tunes pass-through http transport. Prefer system properties- Parameters:
name- name of the system/config propertydef- default value to return if the property is not set- Returns:
- the value of the property to be used
-
getBooleanProperty
Get a Boolean property that tunes pass-through http transport. Prefer system properties- Parameters:
name- name of the system/config property- Returns:
- the value of the property, null if the property is not found
-
getStringProperty
Get a String property that tunes pass-through http transport. Prefer system properties- Parameters:
name- name of the system/config propertydef- default value to return if the property is not set- Returns:
- the value of the property to be used
-