Class BoBManager


  • public final class BoBManager
    extends org.jivesoftware.smack.Manager
    Bits of Binary manager class.
    See Also:
    XEP-0231: Bits of Binary
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAMESPACE  
    • Method Detail

      • getInstanceFor

        public static BoBManager getInstanceFor​(org.jivesoftware.smack.XMPPConnection connection)
        Get the singleton instance of BoBManager.
        Parameters:
        connection - TODO javadoc me please
        Returns:
        the instance of BoBManager
      • isSupportedByServer

        public boolean isSupportedByServer()
                                    throws org.jivesoftware.smack.SmackException.NoResponseException,
                                           org.jivesoftware.smack.XMPPException.XMPPErrorException,
                                           org.jivesoftware.smack.SmackException.NotConnectedException,
                                           java.lang.InterruptedException
        Returns true if Bits of Binary is supported by the server.
        Returns:
        true if Bits of Binary is supported by the server.
        Throws:
        org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.
        org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.
        org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.
        java.lang.InterruptedException - if the calling thread was interrupted.
      • requestBoB

        public BoBData requestBoB​(org.jxmpp.jid.Jid to,
                                  ContentId bobHash)
                           throws org.jivesoftware.smack.SmackException.NotLoggedInException,
                                  org.jivesoftware.smack.SmackException.NoResponseException,
                                  org.jivesoftware.smack.XMPPException.XMPPErrorException,
                                  org.jivesoftware.smack.SmackException.NotConnectedException,
                                  java.lang.InterruptedException
        Request BoB data.
        Parameters:
        to - TODO javadoc me please
        bobHash - TODO javadoc me please
        Returns:
        the BoB data
        Throws:
        org.jivesoftware.smack.SmackException.NotLoggedInException - if the XMPP connection is not authenticated.
        org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.
        org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.
        org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.
        java.lang.InterruptedException - if the calling thread was interrupted.