public class FileTransferManager extends Object implements tigase.jaxmpp.core.client.xmpp.modules.ContextAware, FileTransferNegotiator.NegotiationFailureHandler, FileTransferNegotiator.NegotiationRejectHandler, FileTransferNegotiator.NegotiationRequestHandler, ConnectionManager.ConnectionEstablishedHandler, tigase.jaxmpp.core.client.Property
| Modifier and Type | Class and Description |
|---|---|
static interface |
FileTransferManager.FileTransferFailureHandler |
static interface |
FileTransferManager.FileTransferProgressHandler |
static interface |
FileTransferManager.FileTransferRejectedHandler |
static interface |
FileTransferManager.FileTransferRequestHandler |
static interface |
FileTransferManager.FileTransferSuccessHandler |
FileTransferNegotiator.NegotiationFailureHandler.FileTransferNegotiationFailureEventFileTransferNegotiator.NegotiationRejectHandler.FileTransferNegotiationRejectEventFileTransferNegotiator.NegotiationRequestHandler.FileTransferNegotiationRequestEventConnectionManager.ConnectionEstablishedHandler.ConnectionEstablishedEvent| Modifier and Type | Field and Description |
|---|---|
protected tigase.jaxmpp.core.client.Context |
context |
| Constructor and Description |
|---|
FileTransferManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptFile(FileTransfer ft) |
void |
addNegotiator(FileTransferNegotiator negotiator) |
protected static String |
getCapsNode(tigase.jaxmpp.core.client.xmpp.stanzas.Presence presence) |
Class<FileTransferManager> |
getPropertyClass() |
static void |
initialize(tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
boolean experimental) |
void |
onConnectionEstablished(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.xmpp.modules.connection.ConnectionSession connectionSession,
Socket socket) |
void |
onFileTransferNegotiationFailure(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer fileTransfer) |
void |
onFileTransferNegotiationReject(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer fileTransfer) |
void |
onFileTransferNegotiationRequest(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer fileTransfer) |
void |
rejectFile(FileTransfer ft) |
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 |
setContext(tigase.jaxmpp.core.client.Context context) |
void |
setJaxmpp(tigase.jaxmpp.core.client.JaxmppCore jaxmpp) |
protected static String getCapsNode(tigase.jaxmpp.core.client.xmpp.stanzas.Presence presence) throws tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.xml.XMLExceptionpublic static void initialize(tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
boolean experimental)
public void acceptFile(FileTransfer ft) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void addNegotiator(FileTransferNegotiator negotiator)
public Class<FileTransferManager> getPropertyClass()
getPropertyClass in interface tigase.jaxmpp.core.client.Propertypublic void onConnectionEstablished(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.xmpp.modules.connection.ConnectionSession connectionSession,
Socket socket)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
onConnectionEstablished in interface ConnectionManager.ConnectionEstablishedHandlertigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void onFileTransferNegotiationFailure(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer fileTransfer)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
onFileTransferNegotiationFailure in interface FileTransferNegotiator.NegotiationFailureHandlertigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void onFileTransferNegotiationReject(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer fileTransfer)
onFileTransferNegotiationReject in interface FileTransferNegotiator.NegotiationRejectHandlerpublic void onFileTransferNegotiationRequest(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer fileTransfer)
onFileTransferNegotiationRequest in interface FileTransferNegotiator.NegotiationRequestHandlerpublic void rejectFile(FileTransfer ft) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic 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 setContext(tigase.jaxmpp.core.client.Context context)
setContext in interface tigase.jaxmpp.core.client.xmpp.modules.ContextAwarepublic void setJaxmpp(tigase.jaxmpp.core.client.JaxmppCore jaxmpp)
Copyright © 2006–2022 Tigase. All rights reserved.