TransportConfig¶
-
public class
TransportConfig¶ Represents the configuration of a single transport.
- Author
swrede, jmoringe
Constructors¶
TransportConfig¶
-
public
TransportConfig(String name, boolean enabled, Properties options)¶ Creates a new instance.
- Parameters
name – name of the transport
enabled – should this transport be enabled in participants or not?
options – transport-specific options
TransportConfig¶
-
public
TransportConfig(String name, boolean enabled, Properties options, ConverterRepository<?> converters)¶ Creates a new instance.
- Parameters
name – name of the transport
enabled – should this transport be enabled in participants or not?
options – transport-specific options
converters – the converter selection strategy to use for the transport.
nullindicates to use the system-wide configuration.
Methods¶
copy¶
-
public TransportConfig
copy()¶ Creates a new instance as a copy of this one in the sense of a deep copy apart from the converters.
- Returns
deep copy
getConverters¶
-
public ConverterRepository<?>
getConverters()¶ Returns the desired converter repository for the transport.
- Returns
converter repository to use or
nullin case the system-wide default shall be used.
getConverters¶
-
public ConverterRepository<?>
getConverters(ConverterRepository<?> defaultInst)¶ Returns the desired converter repository for the transport or the provided default in case no desired instance is is specified.
- Parameters
defaultInst – instance to return in case no converter repository was specified inside this config
- Returns
converter repository to use or
nullin case event the given default instance wasnull.
getOptions¶
-
public Properties
getOptions()¶ Returns the transport-specific options.
- Returns
options specifically for the transport with a common prefix
isEnabled¶
-
public boolean
isEnabled()¶ Indicates whether the transport shall be enabled in participants or not.
- Returns
trueif transport shall be enabled, elsefalse
setConverters¶
-
public void
setConverters(ConverterRepository<?> converters)¶ Sets the converter repository to be used for this transport.
- Parameters
converters – converters to use or
nullto indicate use of system-wide converters
setEnabled¶
-
public void
setEnabled(boolean enabled)¶ Sets whether the transport shall be enabled in participants.
- Parameters
enabled –
trueto enable the transport, elsefalse
setOptions¶
-
public void
setOptions(Properties options)¶ Sets the transport-specific options.
- Parameters
options – options specifically for this transport