Class InBandBytestreamRequest
- java.lang.Object
-
- org.jivesoftware.smackx.bytestreams.ibb.InBandBytestreamRequest
-
- All Implemented Interfaces:
BytestreamRequest
public class InBandBytestreamRequest extends Object implements BytestreamRequest
InBandBytestreamRequest class handles incoming In-Band Bytestream requests.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
InBandBytestreamRequest(InBandBytestreamManager manager, Open byteStreamRequest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InBandBytestreamSession
accept()
Accepts the In-Band Bytestream open request and returns the session to send/receive data.Jid
getFrom()
Returns the sender of the In-Band Bytestream open request.String
getSessionID()
Returns the session ID of the In-Band Bytestream open request.void
reject()
Rejects the In-Band Bytestream request by sending a reject error to the initiator.
-
-
-
Constructor Detail
-
InBandBytestreamRequest
protected InBandBytestreamRequest(InBandBytestreamManager manager, Open byteStreamRequest)
-
-
Method Detail
-
getFrom
public Jid getFrom()
Returns the sender of the In-Band Bytestream open request.- Specified by:
getFrom
in interfaceBytestreamRequest
- Returns:
- the sender of the In-Band Bytestream open request
-
getSessionID
public String getSessionID()
Returns the session ID of the In-Band Bytestream open request.- Specified by:
getSessionID
in interfaceBytestreamRequest
- Returns:
- the session ID of the In-Band Bytestream open request
-
accept
public InBandBytestreamSession accept() throws SmackException.NotConnectedException, InterruptedException
Accepts the In-Band Bytestream open request and returns the session to send/receive data.- Specified by:
accept
in interfaceBytestreamRequest
- Returns:
- the session to send/receive data
- Throws:
SmackException.NotConnectedException
- if the XMPP connection is not connected.InterruptedException
- if the calling thread was interrupted.
-
reject
public void reject() throws SmackException.NotConnectedException, InterruptedException
Rejects the In-Band Bytestream request by sending a reject error to the initiator.- Specified by:
reject
in interfaceBytestreamRequest
- Throws:
SmackException.NotConnectedException
- if the XMPP connection is not connected.InterruptedException
- if the calling thread was interrupted.
-
-