|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<StunAttributeType>
org.littleshoot.stun.stack.message.attributes.StunAttributeType
public enum StunAttributeType
STUN attribute types. We don't use an enum here becuase an enum would
require unnecessary conversion from an int read from the network to the
corresponding enum value, requiring an extra Map lookup. This
is also simpler.
| Enum Constant Summary | |
|---|---|
ALTERNATE_SERVER
The alternate server attribute. |
|
CONNECT_STAT
Attribute for describing the TURN connection status. |
|
DATA
Used in TURN Data and Send Indication and messages to wrap the actual data. |
|
ERROR_CODE
The error code attribute. |
|
FINGERPRINT
The fingerprint attribute. |
|
ICE_CONTROLLED
Indicates that an ICE client believes it is currently in the controlled role. |
|
ICE_CONTROLLING
Indicates that an ICE client believes it is currently in the controlling role. |
|
ICE_PRIORITY
The priority that is to be associated with an ICE peer reflexive candidate, should one be discovered by the check with a request using this attribute. |
|
ICE_USE_CANDIDATE
Indicates that the ICE candidate pair resulting from this check should be used for transmission of media. |
|
MAPPED_ADDRESS
The mapped address attribute. |
|
MESSAGE_INTEGRITY
The message integrity attribute. |
|
NONCE
The nonce attribute. |
|
PASSWORD
The password attribute. |
|
REALM
The realm attribute. |
|
REFRESH_INTERVAL
The refresh interval attribute. |
|
RELAY_ADDRESS
The relay address allocated for a client on a TURN server. |
|
REMOTE_ADDRESS
Used in Data and Send Indication messages to describe where the data came from. |
|
SERVER
The server attribute. |
|
UNKNOWN_ATTRIBUTES
The unknown attributes attribute. |
|
USERNAME
The username attribute. |
|
XOR_MAPPED_ADDRESS
The XOR mapped address attribute. |
|
| Method Summary | |
|---|---|
int |
toInt()
Returns the int value for this type. |
static StunAttributeType |
toType(int typeInt)
Returns the enum for the corresponding int value, or null
if no corresponding value exists. |
static StunAttributeType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static StunAttributeType[] |
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 |
|---|
public static final StunAttributeType MAPPED_ADDRESS
public static final StunAttributeType USERNAME
public static final StunAttributeType PASSWORD
public static final StunAttributeType MESSAGE_INTEGRITY
public static final StunAttributeType ERROR_CODE
public static final StunAttributeType UNKNOWN_ATTRIBUTES
public static final StunAttributeType REALM
public static final StunAttributeType NONCE
public static final StunAttributeType XOR_MAPPED_ADDRESS
public static final StunAttributeType FINGERPRINT
public static final StunAttributeType SERVER
public static final StunAttributeType ALTERNATE_SERVER
public static final StunAttributeType REFRESH_INTERVAL
public static final StunAttributeType RELAY_ADDRESS
public static final StunAttributeType REMOTE_ADDRESS
public static final StunAttributeType DATA
public static final StunAttributeType CONNECT_STAT
public static final StunAttributeType ICE_PRIORITY
public static final StunAttributeType ICE_USE_CANDIDATE
public static final StunAttributeType ICE_CONTROLLED
public static final StunAttributeType ICE_CONTROLLING
| Method Detail |
|---|
public static StunAttributeType[] values()
for (StunAttributeType c : StunAttributeType.values()) System.out.println(c);
public static StunAttributeType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int toInt()
public static StunAttributeType toType(int typeInt)
null
if no corresponding value exists.
typeInt - The type as an int.
null if no
corresponding value exists.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||