Class TransportCandidate.Protocol
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.nat.TransportCandidate.Protocol
-
- Enclosing class:
- TransportCandidate
public static final class TransportCandidate.Protocol extends Object
Type-safe enum for the transportElement protocol.
-
-
Field Summary
Fields Modifier and Type Field Description static TransportCandidate.Protocol
SSLTCP
static TransportCandidate.Protocol
TCP
static TransportCandidate.Protocol
TCPACT
static TransportCandidate.Protocol
TCPPASS
static TransportCandidate.Protocol
UDP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static TransportCandidate.Protocol
fromString(String value)
Returns the Protocol constant associated with the String value.int
hashCode()
boolean
isNull()
Return true if the protocol is not valid.String
toString()
-
-
-
Field Detail
-
UDP
public static final TransportCandidate.Protocol UDP
-
TCP
public static final TransportCandidate.Protocol TCP
-
TCPACT
public static final TransportCandidate.Protocol TCPACT
-
TCPPASS
public static final TransportCandidate.Protocol TCPPASS
-
SSLTCP
public static final TransportCandidate.Protocol SSLTCP
-
-
Method Detail
-
fromString
public static TransportCandidate.Protocol fromString(String value)
Returns the Protocol constant associated with the String value.- Parameters:
value
- the input String.- Returns:
- the protocol.
-
isNull
public boolean isNull()
Return true if the protocol is not valid.- Returns:
- true if the protocol is null
-
-