public class HttpFileUploadModule extends Object implements XmppModule, 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(Stanza stanza,
String fileName,
long size,
String type) |
static void |
addOobLink(Stanza stanza,
String url) |
void |
findHttpUploadComponents(BareJID domain,
HttpFileUploadModule.DiscoveryResultHandler handler) |
Criteria |
getCriteria()
Criteria
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
void |
process(Element element)
Main method of module.
|
void |
requestUploadSlot(JID componentJid,
String filename,
Long size,
String contentType,
HttpFileUploadModule.RequestUploadSlotHandler callback) |
void |
setContext(Context context) |
public static void addFileInfoFormToStanza(Stanza stanza, String fileName, long size, String type) throws XMLException
XMLExceptionpublic static void addOobLink(Stanza stanza, String url) throws XMLException
XMLExceptionpublic void findHttpUploadComponents(BareJID domain, HttpFileUploadModule.DiscoveryResultHandler handler) throws JaxmppException
JaxmppExceptionpublic Criteria getCriteria()
XmppModulegetCriteria in interface XmppModulepublic String[] getFeatures()
XmppModuleReturns features what are implemented by Module.
getFeatures in interface XmppModulepublic void process(Element element) throws XMPPException, XMLException, JaxmppException
XmppModuleprocess in interface XmppModuleelement - incoming XMPP stanzaXMPPExceptionXMLExceptionJaxmppExceptionpublic void requestUploadSlot(JID componentJid, String filename, Long size, String contentType, HttpFileUploadModule.RequestUploadSlotHandler callback) throws JaxmppException
JaxmppExceptionpublic void setContext(Context context)
setContext in interface ContextAwareCopyright © 2006–2020 Tigase. All rights reserved.