Package org.jivesoftware.smackx.bob
Class BoBManager
- java.lang.Object
-
- org.jivesoftware.smack.Manager
-
- org.jivesoftware.smackx.bob.BoBManager
-
public final class BoBManager extends Manager
Bits of Binary manager class.- See Also:
- XEP-0231: Bits of Binary
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BoBInfo
addBoB(BoBData bobData)
static BoBManager
getInstanceFor(XMPPConnection connection)
Get the singleton instance of BoBManager.boolean
isSupportedByServer()
Returns true if Bits of Binary is supported by the server.BoBInfo
removeBoB(ContentId bobHash)
BoBData
requestBoB(Jid to, ContentId bobHash)
Request BoB data.-
Methods inherited from class org.jivesoftware.smack.Manager
connection, getAuthenticatedConnectionOrThrow, schedule, schedule, scheduleBlocking
-
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstanceFor
public static BoBManager getInstanceFor(XMPPConnection connection)
Get the singleton instance of BoBManager.- Parameters:
connection
- TODO javadoc me please- Returns:
- the instance of BoBManager
-
isSupportedByServer
public boolean isSupportedByServer() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
Returns true if Bits of Binary is supported by the server.- Returns:
- true if Bits of Binary is supported by the server.
- Throws:
SmackException.NoResponseException
- if there was no response from the remote entity.XMPPException.XMPPErrorException
- if there was an XMPP error returned.SmackException.NotConnectedException
- if the XMPP connection is not connected.InterruptedException
- if the calling thread was interrupted.
-
requestBoB
public BoBData requestBoB(Jid to, ContentId bobHash) throws SmackException.NotLoggedInException, SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
Request BoB data.- Parameters:
to
- TODO javadoc me pleasebobHash
- TODO javadoc me please- Returns:
- the BoB data
- Throws:
SmackException.NotLoggedInException
- if the XMPP connection is not authenticated.SmackException.NoResponseException
- if there was no response from the remote entity.XMPPException.XMPPErrorException
- if there was an XMPP error returned.SmackException.NotConnectedException
- if the XMPP connection is not connected.InterruptedException
- if the calling thread was interrupted.
-
-