|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<JingleAction>
net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.JingleAction
public enum JingleAction
XEP-0166 Jingle, stipulates that the value of the 'action' attribute MUST be
one of the values enumerated here. If an entity receives a value not defined
here, it MUST ignore the attribute and MUST return a
| Enum Constant Summary | |
|---|---|
CONTENT_ACCEPT
The content-accept action is used to accept a content-add action received from another party. |
|
CONTENT_ADD
The content-add action is used to add one or more new content definitions to the session. |
|
CONTENT_MODIFY
The content-modify action is used to change the direction of an existing content definition through modification of the 'senders' attribute. |
|
CONTENT_REJECT
The content-reject action is used to reject a content-add action received from another party. |
|
CONTENT_REMOVE
The content-remove action is used to remove one or more content definitions from the session. |
|
DESCRIPTION_INFO
The description-info action is used to send informational hints about parameters related to the application type, such as the suggested height and width of a video display area or suggested configuration for an audio stream. |
|
SECURITY_INFO
The security-info action is used to send information related to establishment or maintenance of security preconditions. |
|
SESSION_ACCEPT
The session-accept action is used to definitively accept a session negotiation (implicitly this action also serves as a content-accept). |
|
SESSION_INFO
The session-info action is used to send information related to establishment or maintenance of security preconditions. |
|
SESSION_INITIATE
The session-initiate action is used to request negotiation of a new Jingle session. |
|
SESSION_TERMINATE
The session-terminate action is used to end an existing session. |
|
TRANSPORT_ACCEPT
The transport-accept action is used to accept a transport-replace action received from another party. |
|
TRANSPORT_INFO
The transport-info action is used to exchange transport candidates; it is mainly used in Jingle ICE-UDP but might be used in other transport specifications. |
|
TRANSPORT_REJECT
The transport-reject action is used to reject a transport-replace action received from another party. |
|
TRANSPORT_REPLACE
The transport-replace action is used to redefine a transport method, typically for fallback to a different method (e.g., changing from ICE-UDP to Raw UDP for a datagram transport, or changing from SOCKS5 Bytestreams to In-Band Bytestreams [27] for a streaming transport). |
|
| Method Summary | |
|---|---|
static JingleAction |
parseString(String jingleActionStr)
Returns a JingleAction value corresponding to the specified jingleActionStr or in other words SESSION_INITIATE for
"session-initiate" or TRANSPORT_ACCEPT for "transport-accept"). |
String |
toString()
Returns the name of this JingleAction (e.g. |
static JingleAction |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static JingleAction[] |
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, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final JingleAction CONTENT_ACCEPT
public static final JingleAction CONTENT_ADD
public static final JingleAction CONTENT_MODIFY
public static final JingleAction CONTENT_REJECT
public static final JingleAction CONTENT_REMOVE
If the content-remove results in zero content definitions for the session, the entity that receives the content-remove SHOULD send a session-terminate action to the other party (since a session with no content definitions is void).
public static final JingleAction DESCRIPTION_INFO
public static final JingleAction SECURITY_INFO
public static final JingleAction SESSION_ACCEPT
public static final JingleAction SESSION_INFO
public static final JingleAction SESSION_INITIATE
public static final JingleAction SESSION_TERMINATE
public static final JingleAction TRANSPORT_ACCEPT
public static final JingleAction TRANSPORT_INFO
public static final JingleAction TRANSPORT_REJECT
public static final JingleAction TRANSPORT_REPLACE
| Method Detail |
|---|
public static JingleAction[] values()
for (JingleAction c : JingleAction.values()) System.out.println(c);
public static JingleAction 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 String toString()
toString in class Enum<JingleAction>
public static JingleAction parseString(String jingleActionStr)
throws IllegalArgumentException
SESSION_INITIATE for
"session-initiate" or TRANSPORT_ACCEPT for "transport-accept").
jingleActionStr - the action String that we'd like to
parse.
IllegalArgumentException - in case jingleActionStr is
not a valid media direction.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||