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
ConstructorsModifierConstructorDescriptionprotectedInBandBytestreamRequest(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.voidreject()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:
getFromin 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:
getSessionIDin 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:
acceptin 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:
rejectin interfaceBytestreamRequest- Throws:
SmackException.NotConnectedException- if the XMPP connection is not connected.InterruptedException- if the calling thread was interrupted.
-