public class FileTransferModule extends Object implements XmppModule
| Modifier and Type | Class and Description |
|---|---|
static interface |
FileTransferModule.FileTransferRequestHandler |
| Modifier and Type | Field and Description |
|---|---|
static String |
XMLNS_SI |
static String |
XMLNS_SI_FILE |
| Constructor and Description |
|---|
FileTransferModule(Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptStreamInitiation(FileTransfer ft,
String id,
String streamMethod) |
void |
addFileTransferRequestHandler(FileTransferModule.FileTransferRequestHandler handler) |
Criteria |
getCriteria()
Criteria
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
void |
process(Element element)
Main method of module.
|
void |
process(IQ iq) |
void |
rejectStreamInitiation(FileTransfer ft,
String id) |
void |
removeFileTransferRequestHandler(FileTransferModule.FileTransferRequestHandler handler) |
void |
sendNoValidStreams(FileTransferModule.FileTransferRequestHandler.FileTransferRequestEvent be) |
void |
sendStreamInitiationOffer(FileTransfer ft,
String[] streamMethods,
AsyncCallback callback) |
public static final String XMLNS_SI
public static final String XMLNS_SI_FILE
public FileTransferModule(Context context)
public void acceptStreamInitiation(FileTransfer ft, String id, String streamMethod) throws JaxmppException
JaxmppExceptionpublic void addFileTransferRequestHandler(FileTransferModule.FileTransferRequestHandler handler)
public 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 process(IQ iq) throws XMLException, JaxmppException
XMLExceptionJaxmppExceptionpublic void rejectStreamInitiation(FileTransfer ft, String id) throws JaxmppException
JaxmppExceptionpublic void removeFileTransferRequestHandler(FileTransferModule.FileTransferRequestHandler handler)
public void sendNoValidStreams(FileTransferModule.FileTransferRequestHandler.FileTransferRequestEvent be) throws JaxmppException
JaxmppExceptionpublic void sendStreamInitiationOffer(FileTransfer ft, String[] streamMethods, AsyncCallback callback) throws XMLException, JaxmppException
XMLExceptionJaxmppExceptionCopyright © 2006–2015 Tigase. All rights reserved.