public class FileTransferManager extends Object implements tigase.jaxmpp.core.client.xmpp.modules.ObservableAware
| Modifier and Type | Field and Description |
|---|---|
protected tigase.jaxmpp.core.client.observer.Listener<ConnectionEvent> |
connectionEventListener |
static tigase.jaxmpp.core.client.observer.EventType |
FILE_TRANSFER_FAILURE |
static tigase.jaxmpp.core.client.observer.EventType |
FILE_TRANSFER_PROGRESS |
static tigase.jaxmpp.core.client.observer.EventType |
FILE_TRANSFER_REJECTED |
static tigase.jaxmpp.core.client.observer.EventType |
FILE_TRANSFER_REQUEST |
static tigase.jaxmpp.core.client.observer.EventType |
FILE_TRANSFER_SUCCESS |
protected tigase.jaxmpp.core.client.observer.Listener<tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransferEvent> |
negotiationListener |
protected tigase.jaxmpp.core.client.observer.Observable |
observable |
| Constructor and Description |
|---|
FileTransferManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptFile(FileTransfer ft) |
void |
addListener(tigase.jaxmpp.core.client.observer.EventType eventType,
tigase.jaxmpp.core.client.observer.Listener<? extends tigase.jaxmpp.core.client.observer.BaseEvent> listener) |
void |
addNegotiator(FileTransferNegotiator negotiator) |
protected static String |
getCapsNode(tigase.jaxmpp.core.client.xmpp.stanzas.Presence presence) |
void |
rejectFile(FileTransfer ft) |
void |
removeListener(tigase.jaxmpp.core.client.observer.EventType eventType,
tigase.jaxmpp.core.client.observer.Listener<? extends tigase.jaxmpp.core.client.observer.BaseEvent> listener) |
void |
removeNegotiator(FileTransferNegotiator negotiator) |
FileTransfer |
sendFile(tigase.jaxmpp.core.client.JID peer,
File file) |
FileTransfer |
sendFile(tigase.jaxmpp.core.client.JID peer,
String filename,
long fileSize,
InputStream is,
Date lastModified) |
void |
setJaxmpp(Jaxmpp jaxmpp) |
void |
setObservable(tigase.jaxmpp.core.client.observer.Observable observableParent) |
public static final tigase.jaxmpp.core.client.observer.EventType FILE_TRANSFER_FAILURE
public static final tigase.jaxmpp.core.client.observer.EventType FILE_TRANSFER_PROGRESS
public static final tigase.jaxmpp.core.client.observer.EventType FILE_TRANSFER_REJECTED
public static final tigase.jaxmpp.core.client.observer.EventType FILE_TRANSFER_REQUEST
public static final tigase.jaxmpp.core.client.observer.EventType FILE_TRANSFER_SUCCESS
protected tigase.jaxmpp.core.client.observer.Observable observable
protected tigase.jaxmpp.core.client.observer.Listener<ConnectionEvent> connectionEventListener
protected tigase.jaxmpp.core.client.observer.Listener<tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransferEvent> negotiationListener
public void setJaxmpp(Jaxmpp jaxmpp)
public void setObservable(tigase.jaxmpp.core.client.observer.Observable observableParent)
setObservable in interface tigase.jaxmpp.core.client.xmpp.modules.ObservableAwarepublic void addListener(tigase.jaxmpp.core.client.observer.EventType eventType,
tigase.jaxmpp.core.client.observer.Listener<? extends tigase.jaxmpp.core.client.observer.BaseEvent> listener)
public void removeListener(tigase.jaxmpp.core.client.observer.EventType eventType,
tigase.jaxmpp.core.client.observer.Listener<? extends tigase.jaxmpp.core.client.observer.BaseEvent> listener)
public void addNegotiator(FileTransferNegotiator negotiator)
public void removeNegotiator(FileTransferNegotiator negotiator)
public FileTransfer sendFile(tigase.jaxmpp.core.client.JID peer, File file) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic FileTransfer sendFile(tigase.jaxmpp.core.client.JID peer, String filename, long fileSize, InputStream is, Date lastModified) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void acceptFile(FileTransfer ft) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void rejectFile(FileTransfer ft) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected static String getCapsNode(tigase.jaxmpp.core.client.xmpp.stanzas.Presence presence) throws tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.xml.XMLExceptionCopyright © 2006–2014 Tigase. All rights reserved.