org.lastbamboo.common.ice
Enum IceTransportProtocol

java.lang.Object
  extended by java.lang.Enum<IceTransportProtocol>
      extended by org.lastbamboo.common.ice.IceTransportProtocol
All Implemented Interfaces:
Serializable, Comparable<IceTransportProtocol>

public enum IceTransportProtocol
extends Enum<IceTransportProtocol>

Enumeration of ICE transport protocols for encoding in SDP>


Enum Constant Summary
TCP_ACT
          Active.
TCP_PASS
          Passive.
TCP_SO
          Simultaneous open.
UDP
          UDP protocol.
 
Method Summary
 String getName()
          Accessor for the name of the protocol for encoding in SDP.
static IceTransportProtocol toTransport(String sdp)
          Gets the type for the associated SDP encoding.
static IceTransportProtocol valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IceTransportProtocol[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TCP_SO

public static final IceTransportProtocol TCP_SO
Simultaneous open.


TCP_ACT

public static final IceTransportProtocol TCP_ACT
Active.


TCP_PASS

public static final IceTransportProtocol TCP_PASS
Passive.


UDP

public static final IceTransportProtocol UDP
UDP protocol.

Method Detail

values

public static IceTransportProtocol[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (IceTransportProtocol c : IceTransportProtocol.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IceTransportProtocol valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getName

public String getName()
Accessor for the name of the protocol for encoding in SDP.

Returns:
The name of the protocol.

toTransport

public static IceTransportProtocol toTransport(String sdp)
Gets the type for the associated SDP encoding.

Parameters:
sdp - The SDP for the type.
Returns:
The corresponding transport.


Copyright © 2013 LittleShoot. All Rights Reserved.