public static enum Transport.AddressSource extends Enum<Transport.AddressSource>
| Enum Constant and Description |
|---|
SOURCE_CONFIG |
SOURCE_INTERFACEAddress of a local interface. |
SOURCE_SSUAddress from the SSU transport. |
SOURCE_UPNPAddress from a UPnP port mapping. |
| Modifier and Type | Method and Description |
|---|---|
String | toConfigString()Config string for this address source. |
static Transport.AddressSource | valueOf(String name)Returns the enum constant of this type with the specified name. |
static Transport.AddressSource[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. |
public static final Transport.AddressSource SOURCE_CONFIG
public static final Transport.AddressSource SOURCE_INTERFACE
public static final Transport.AddressSource SOURCE_SSU
public static final Transport.AddressSource SOURCE_UPNP
public String toConfigString()
public static Transport.AddressSource valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Transport.AddressSource[] values()
for (Transport.AddressSource c : Transport.AddressSource.values()) System.out.println(c);