public final class PrivateDataManager extends Manager
It allows to retrieve and store private data in the server's private XML storage.
This class is thread-safe.| Modifier and Type | Method and Description |
|---|---|
<T> AsyncResult<T> |
getData(Class<T> type)
Gets private data, which is stored on the server.
|
AsyncResult<Void> |
storeData(Object privateData)
Stores private data.
|
isEnabled, setEnabledpublic final <T> AsyncResult<T> getData(Class<T> type)
T - The type of private data.type - The class of the private data. Note that this class needs a no-arg default constructor.public final AsyncResult<Void> storeData(Object privateData)
privateData - The private data. The class of this object must be annotated with JAXB annotations and must known to the XMPP context in order to marshal und unmarshal it.Copyright © 2014–2018 XMPP.rocks. All rights reserved.