Class InBandBytestreamRequest
java.lang.Object
org.jivesoftware.smackx.bytestreams.ibb.InBandBytestreamRequest
- All Implemented Interfaces:
BytestreamRequest
InBandBytestreamRequest class handles incoming In-Band Bytestream requests.
-
Constructor Summary
ModifierConstructorDescriptionprotected
InBandBytestreamRequest
(InBandBytestreamManager manager, Open byteStreamRequest) -
Method Summary
Modifier and TypeMethodDescriptionaccept()
Accepts the In-Band Bytestream open request and returns the session to send/receive data.getFrom()
Returns the sender of the In-Band Bytestream open request.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 Details
-
InBandBytestreamRequest
-
-
Method Details
-
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
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, InterruptedExceptionAccepts 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
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.
-