- All Implemented Interfaces:
Serializable, Comparable<Transport.AddressSource>, java.lang.constant.Constable
- Enclosing interface:
Transport
Source of transport address configuration.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAddress port from the configured settings, not from discovery.Address of a local interface.Address from the SSU transport.Address from a UPnP port mapping.Field Summary
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAddressSource(String cfgstr) Names a source by its configuration string.Method Summary
Modifier and TypeMethodDescriptionConfig string for this address source.static Transport.AddressSourceReturns the enum constant of this class with the specified name.static Transport.AddressSource[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
SOURCE_UPNP
Address from a UPnP port mapping.SOURCE_INTERFACE
Address of a local interface.SOURCE_CONFIG
Address port from the configured settings, not from discovery.SOURCE_SSU
Address from the SSU transport.
Field Details
cfgstr
Name written for this source in the transport's config.
Constructor Details
AddressSource
Names a source by its configuration string.- Parameters:
cfgstr- the configuration string
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
toConfigString