Class TransportCandidate.Protocol
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.nat.TransportCandidate.Protocol
-
- Enclosing class:
- TransportCandidate
public static final class TransportCandidate.Protocol extends java.lang.Object
Type-safe enum for the transportElement protocol.
-
-
Field Summary
Fields Modifier and Type Field Description static TransportCandidate.ProtocolSSLTCPstatic TransportCandidate.ProtocolTCPstatic TransportCandidate.ProtocolTCPACTstatic TransportCandidate.ProtocolTCPPASSstatic TransportCandidate.ProtocolUDP
-
Constructor Summary
Constructors Constructor Description Protocol(java.lang.String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static TransportCandidate.ProtocolfromString(java.lang.String value)Returns the Protocol constant associated with the String value.inthashCode()booleanisNull()Return true if the protocol is not valid.java.lang.StringtoString()
-
-
-
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
-
-
Constructor Detail
-
Protocol
public Protocol(java.lang.String value)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
fromString
public static TransportCandidate.Protocol fromString(java.lang.String value)
Returns the Protocol constant associated with the String value.- Parameters:
value- the input String.- Returns:
- the protocol.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
isNull
public boolean isNull()
Return true if the protocol is not valid.- Returns:
- true if the protocol is null
-
-