public class FileTransferModule extends Object implements XmppModule, PacketWriterAware, ObservableAware
| Modifier and Type | Field and Description |
|---|---|
static EventType |
RequestEventType |
static String |
XMLNS_SI |
static String |
XMLNS_SI_FILE |
| Constructor and Description |
|---|
FileTransferModule(SessionObject sessionObject) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptStreamInitiation(FileTransfer ft,
String id,
String streamMethod) |
void |
addListener(EventType eventType,
Listener listener) |
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 |
removeListener(Listener listener) |
void |
sendNoValidStreams(FileTransferRequestEvent be) |
void |
sendStreamInitiationOffer(FileTransfer ft,
String[] streamMethods,
StreamInitiationOfferAsyncCallback callback) |
void |
setObservable(Observable parentObservable)
Set the new instance of Observable.
|
void |
setPacketWriter(PacketWriter packetWriter)
Set PacketWriter.
|
public static final String XMLNS_SI
public static final String XMLNS_SI_FILE
public static final EventType RequestEventType
public FileTransferModule(SessionObject sessionObject)
public void acceptStreamInitiation(FileTransfer ft, String id, String streamMethod) 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 process(IQ iq) throws XMLException, JaxmppException
XMLExceptionJaxmppExceptionpublic void rejectStreamInitiation(FileTransfer ft, String id) throws JaxmppException
JaxmppExceptionpublic void removeListener(Listener listener)
public void sendNoValidStreams(FileTransferRequestEvent be) throws JaxmppException
JaxmppExceptionpublic void sendStreamInitiationOffer(FileTransfer ft, String[] streamMethods, StreamInitiationOfferAsyncCallback callback) throws XMLException, JaxmppException
XMLExceptionJaxmppExceptionpublic void setPacketWriter(PacketWriter packetWriter)
PacketWriterAwaresetPacketWriter in interface PacketWriterAwarepacketWriter - PacketWriterpublic void setObservable(Observable parentObservable)
ObservableAwaresetObservable in interface ObservableAwareparentObservable - new instance of ObservableCopyright © 2006–2014 Tigase. All rights reserved.