| Modifier and Type | Method and Description |
|---|---|
int |
getDefaultPort() |
java.lang.String |
getName() |
java.lang.String |
getService() |
java.lang.String |
getSrvPrefix() |
boolean |
isReliable() |
boolean |
isSecure() |
java.lang.String |
toString() |
static Transport |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Transport[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Transport UDP
public static final Transport TCP
public static final Transport TLS
public static final Transport WS
public static final Transport WSS
public static Transport[] values()
for (Transport c : Transport.values()) System.out.println(c);
public static Transport valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isReliable()
public boolean isSecure()
public java.lang.String getName()
public java.lang.String getService()
public int getDefaultPort()
public java.lang.String getSrvPrefix()
public java.lang.String toString()
toString in class java.lang.Enum<Transport>Copyright © 2015. All Rights Reserved.