Class JingleSessionRequest
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.JingleSessionRequest
-
public class JingleSessionRequest extends Object
A Jingle session request. This class is a facade of a received Jingle request. The user can have direct access to the Jingle stanza (JingleSessionRequest.getJingle() ) of the request or can use the convenience methods provided by this class.
-
-
Constructor Summary
Constructors Constructor Description JingleSessionRequest(JingleManager manager, Jingle jingle)
A receive request is constructed from the Jingle Initiation request received from the initiator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JingleSession
accept()
Accepts this request and creates the incoming Jingle session.Jid
getFrom()
Returns the fully-qualified jabber ID of the user that requested this session.Jingle
getJingle()
Returns the Jingle stanza that was sent by the requester which contains the parameters of the session.String
getSessionID()
Returns the session ID that uniquely identifies this session.void
reject()
Rejects the session request.
-
-
-
Constructor Detail
-
JingleSessionRequest
public JingleSessionRequest(JingleManager manager, Jingle jingle)
A receive request is constructed from the Jingle Initiation request received from the initiator.- Parameters:
manager
- The manager handling this requestjingle
- The jingle IQ received from the initiator.
-
-
Method Detail
-
getFrom
public Jid getFrom()
Returns the fully-qualified jabber ID of the user that requested this session.- Returns:
- Returns the fully-qualified jabber ID of the user that requested this session.
-
getSessionID
public String getSessionID()
Returns the session ID that uniquely identifies this session.- Returns:
- Returns the session ID that uniquely identifies this session
-
getJingle
public Jingle getJingle()
Returns the Jingle stanza that was sent by the requester which contains the parameters of the session.- Returns:
- the jingle stanza.
-
accept
public JingleSession accept() throws XMPPException, SmackException, InterruptedException
Accepts this request and creates the incoming Jingle session.- Returns:
- Returns the IncomingJingleSession on which the negotiation can be carried out.
- Throws:
XMPPException
- if an XMPP protocol error was received.SmackException
- if Smack detected an exceptional situation.InterruptedException
- if the calling thread was interrupted.
-
reject
public void reject()
Rejects the session request.
-
-