public class HttpFileUploadModule extends Object implements tigase.jaxmpp.core.client.XmppModule, tigase.jaxmpp.core.client.xmpp.modules.ContextAware
| Modifier and Type | Class and Description |
|---|---|
static interface |
HttpFileUploadModule.DiscoveryResultHandler |
static class |
HttpFileUploadModule.RequestUploadSlotHandler |
static class |
HttpFileUploadModule.Slot |
| Constructor and Description |
|---|
HttpFileUploadModule() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFileInfoFormToStanza(tigase.jaxmpp.core.client.xmpp.stanzas.Stanza stanza,
String fileName,
long size,
String type) |
static void |
addOobLink(tigase.jaxmpp.core.client.xmpp.stanzas.Stanza stanza,
String url) |
void |
findHttpUploadComponents(tigase.jaxmpp.core.client.BareJID domain,
HttpFileUploadModule.DiscoveryResultHandler handler) |
tigase.jaxmpp.core.client.criteria.Criteria |
getCriteria() |
String[] |
getFeatures() |
void |
process(tigase.jaxmpp.core.client.xml.Element element) |
void |
requestUploadSlot(tigase.jaxmpp.core.client.JID componentJid,
String filename,
Long size,
String contentType,
HttpFileUploadModule.RequestUploadSlotHandler callback) |
void |
setContext(tigase.jaxmpp.core.client.Context context) |
public static void addFileInfoFormToStanza(tigase.jaxmpp.core.client.xmpp.stanzas.Stanza stanza,
String fileName,
long size,
String type)
throws tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.xml.XMLExceptionpublic static void addOobLink(tigase.jaxmpp.core.client.xmpp.stanzas.Stanza stanza,
String url)
throws tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.xml.XMLExceptionpublic void findHttpUploadComponents(tigase.jaxmpp.core.client.BareJID domain,
HttpFileUploadModule.DiscoveryResultHandler handler)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic tigase.jaxmpp.core.client.criteria.Criteria getCriteria()
getCriteria in interface tigase.jaxmpp.core.client.XmppModulepublic String[] getFeatures()
getFeatures in interface tigase.jaxmpp.core.client.XmppModulepublic void process(tigase.jaxmpp.core.client.xml.Element element)
throws tigase.jaxmpp.core.client.XMPPException,
tigase.jaxmpp.core.client.xml.XMLException,
tigase.jaxmpp.core.client.exceptions.JaxmppException
process in interface tigase.jaxmpp.core.client.XmppModuletigase.jaxmpp.core.client.XMPPExceptiontigase.jaxmpp.core.client.xml.XMLExceptiontigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void requestUploadSlot(tigase.jaxmpp.core.client.JID componentJid,
String filename,
Long size,
String contentType,
HttpFileUploadModule.RequestUploadSlotHandler callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void setContext(tigase.jaxmpp.core.client.Context context)
setContext in interface tigase.jaxmpp.core.client.xmpp.modules.ContextAwareCopyright © 2006–2020 Tigase. All rights reserved.