Class Jingle.Reason
- java.lang.Object
-
- rocks.xmpp.extensions.jingle.model.Jingle.Reason
-
- Enclosing class:
- Jingle
public static final class Jingle.Reason extends Object
The implementation of the<reason/>element.- See Also:
- 7.4 Reason Element
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJingle.Reason.AlternativeSessionThe party prefers to use an existing session with the peer rather than initiate a new session; the Jingle session ID of the alternative session SHOULD be provided as the XML character data of the<sid/>child.static classJingle.Reason.BusyThe party is busy and cannot accept a session.static classJingle.Reason.CancelThe initiator wishes to formally cancel the session initiation request.static classJingle.Reason.ConditionThe base class for the defined conditions for a reason.static classJingle.Reason.ConnectivityErrorThe action is related to connectivity problems.static classJingle.Reason.DeclineThe party wishes to formally decline the session.static classJingle.Reason.ExpiredThe session length has exceeded a pre-defined time limit (e.g., a meeting hosted at a conference service).static classJingle.Reason.FailedApplicationThe party has been unable to initialize processing related to the application type.static classJingle.Reason.FailedTransportThe party has been unable to establish connectivity for the transport method.static classJingle.Reason.GeneralErrorThe action is related to a non-specific application error.static classJingle.Reason.GoneThe entity is going offline or is no longer available.static classJingle.Reason.IncompatibleParametersThe party supports the offered application type but does not support the offered or negotiated parameters.static classJingle.Reason.MediaErrorThe action is related to media processing problems.static classJingle.Reason.SecurityErrorThe action is related to a violation of local security policies.static classJingle.Reason.SuccessThe action is generated during the normal course of state management and does not reflect any error.static classJingle.Reason.TimeoutA request has not been answered so the sender is timing out the request.static classJingle.Reason.UnsupportedApplicationsThe party supports none of the offered application types.static classJingle.Reason.UnsupportedTransportsThe party supports none of the offered transport methods.
-
Constructor Summary
Constructors Constructor Description Reason(Jingle.Reason.Condition condition)Creates a reason element with a defined condition.Reason(Jingle.Reason.Condition condition, String text)Creates a reason element with a defined condition and a text.Reason(Jingle.Reason.Condition condition, String text, Object extension)Creates a reason element with a defined condition and a text.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetExtension()Gets the extension, which defines more detailed information about the reason.StringgetText()Gets human-readable information about the reason for the action.Jingle.Reason.ConditiongetType()Gets the type.
-
-
-
Constructor Detail
-
Reason
public Reason(Jingle.Reason.Condition condition)
Creates a reason element with a defined condition.- Parameters:
condition- The condition.
-
Reason
public Reason(Jingle.Reason.Condition condition, String text)
Creates a reason element with a defined condition and a text.- Parameters:
condition- The condition.text- The optional text for the reason.
-
Reason
public Reason(Jingle.Reason.Condition condition, String text, Object extension)
Creates a reason element with a defined condition and a text.- Parameters:
condition- The condition.text- The optional text for the reason.extension- An object to provide more detailed information about the reason.
-
-
Method Detail
-
getType
public Jingle.Reason.Condition getType()
Gets the type.- Returns:
- The type.
-
getText
public String getText()
Gets human-readable information about the reason for the action.- Returns:
- The information.
-
getExtension
public Object getExtension()
Gets the extension, which defines more detailed information about the reason.- Returns:
- The reason.
-
-