Class InBandBytestreamRequest

  • All Implemented Interfaces:
    BytestreamRequest

    public class InBandBytestreamRequest
    extends java.lang.Object
    implements BytestreamRequest
    InBandBytestreamRequest class handles incoming In-Band Bytestream requests.
    • 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.
      org.jxmpp.jid.Jid getFrom()
      Returns the sender of the In-Band Bytestream open request.
      java.lang.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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 java.lang.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,
                                              java.lang.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.
        java.lang.InterruptedException - if the calling thread was interrupted.
      • reject

        public void reject()
                    throws org.jivesoftware.smack.SmackException.NotConnectedException,
                           java.lang.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.
        java.lang.InterruptedException - if the calling thread was interrupted.