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 Details

  • Method Details

    • getFrom

      public org.jxmpp.jid.Jid getFrom()
      Returns the sender of the In-Band Bytestream open request.
      Specified by:
      getFrom in interface BytestreamRequest
      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 interface BytestreamRequest
      Returns:
      the session ID of the In-Band Bytestream open request
    • accept

      public InBandBytestreamSession accept() throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Accepts the In-Band Bytestream open request and returns the session to send/receive data.
      Specified by:
      accept in interface BytestreamRequest
      Returns:
      the session to send/receive data
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.
      InterruptedException - if the calling thread was interrupted.
    • reject

      public void reject() throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Rejects the In-Band Bytestream request by sending a reject error to the initiator.
      Specified by:
      reject in interface BytestreamRequest
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.
      InterruptedException - if the calling thread was interrupted.