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
XMLException
public static void addOobLink(Stanza stanza, String url) throws XMLException
XMLException
public void findHttpUploadComponents(BareJID domain, HttpFileUploadModule.DiscoveryResultHandler handler) throws JaxmppException
JaxmppException
public Criteria getCriteria()
XmppModule
getCriteria
in interface XmppModule
public String[] getFeatures()
XmppModule
Returns features what are implemented by Module.
getFeatures
in interface XmppModule
public void process(Element element) throws XMPPException, XMLException, JaxmppException
XmppModule
process
in interface XmppModule
element
- incoming XMPP stanzaXMPPException
XMLException
JaxmppException
public void requestUploadSlot(JID componentJid, String filename, Long size, String contentType, HttpFileUploadModule.RequestUploadSlotHandler callback) throws JaxmppException
JaxmppException
public void setContext(Context context)
setContext
in interface ContextAware
Copyright © 2006–2023 Tigase. All rights reserved.