public class BookmarksModule extends AbstractIQModule
Modifier and Type | Class and Description |
---|---|
static class |
BookmarksModule.BookmarksAsyncCallback
Bookmarks callback.
|
context, log
Constructor and Description |
---|
BookmarksModule() |
Modifier and Type | Method and Description |
---|---|
Criteria |
getCriteria()
Criteria
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
protected void |
processGet(IQ element)
Method for processing stanza
<iq type='get'> . |
protected void |
processSet(IQ element)
Method for processing stanza
<iq type='set'> . |
void |
publishBookmarks(List<? extends Element> bookmarks,
AsyncCallback callback)
Send list of bookmarks to private storage.
|
void |
retrieveBookmarks(AsyncCallback callback)
Retrieve bookmarks from private storage.
|
process
addExtension, getExtensionChain, getFeaturesWithExtensions, removeExtension, write, write, write
afterRegister, beforeRegister, beforeUnregister, fireEvent, getFirstChild, process, setContext
public Criteria getCriteria()
XmppModule
public String[] getFeatures()
XmppModule
Returns features what are implemented by Module.
protected void processGet(IQ element) throws JaxmppException
AbstractIQModule
<iq type='get'>
.processGet
in class AbstractIQModule
element
- incoming XMPP stanzaJaxmppException
protected void processSet(IQ element) throws JaxmppException
AbstractIQModule
<iq type='set'>
.processSet
in class AbstractIQModule
element
- incoming XMPP stanzaJaxmppException
public void publishBookmarks(List<? extends Element> bookmarks, AsyncCallback callback) throws JaxmppException
bookmarks
- collections of elements with bookmarks.callback
- callbackJaxmppException
public void retrieveBookmarks(AsyncCallback callback) throws JaxmppException
callback
- callback to handle response.JaxmppException
Copyright © 2006–2023 Tigase. All rights reserved.