org.jivesoftware.smackx.jingle.nat
Class TransportCandidate.Protocol

java.lang.Object
  extended by org.jivesoftware.smackx.jingle.nat.TransportCandidate.Protocol
Enclosing class:
TransportCandidate

public static class TransportCandidate.Protocol
extends java.lang.Object

Type-safe enum for the transportElement protocol


Field Summary
static TransportCandidate.Protocol SSLTCP
           
static TransportCandidate.Protocol TCP
           
static TransportCandidate.Protocol TCPACT
           
static TransportCandidate.Protocol TCPPASS
           
static TransportCandidate.Protocol UDP
           
 
Constructor Summary
TransportCandidate.Protocol(java.lang.String value)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static TransportCandidate.Protocol fromString(java.lang.String value)
          Returns the Protocol constant associated with the String value.
 boolean isNull()
          Return true if the protocol is not valid.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

TransportCandidate.Protocol

public TransportCandidate.Protocol(java.lang.String value)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

fromString

public static TransportCandidate.Protocol fromString(java.lang.String value)
Returns the Protocol constant associated with the String value.


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

isNull

public boolean isNull()
Return true if the protocol is not valid.

Returns:
true if the protocol is null