public final class BoBManager extends Manager
Modifier and Type | Method and 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(BoBHash bobHash) |
BoBData |
requestBoB(Jid to,
BoBHash bobHash)
Request BoB data.
|
connection, getAuthenticatedConnectionOrThrow, schedule
public static final String NAMESPACE
public static BoBManager getInstanceFor(XMPPConnection connection)
connection
- public boolean isSupportedByServer() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public BoBData requestBoB(Jid to, BoBHash bobHash) throws SmackException.NotLoggedInException, SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
to
- bobHash
- SmackException.NotLoggedInException
SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException