public class JingleFileTransferNegotiator extends FileTransferNegotiatorAbstract implements ConnectionSessionHandler, tigase.jaxmpp.core.client.xmpp.modules.jingle.JingleModule.JingleSessionAcceptHandler, tigase.jaxmpp.core.client.xmpp.modules.jingle.JingleModule.JingleSessionInitiationHandler, tigase.jaxmpp.core.client.xmpp.modules.jingle.JingleModule.JingleSessionTerminateHandler, ConnectionManager.ConnectionEstablishedHandler
tigase.jaxmpp.core.client.xmpp.modules.jingle.JingleModule.JingleSessionAcceptHandler.JingleSessionAcceptEventtigase.jaxmpp.core.client.xmpp.modules.jingle.JingleModule.JingleSessionInitiationHandler.JingleSessionInitiationEventtigase.jaxmpp.core.client.xmpp.modules.jingle.JingleModule.JingleSessionTerminateHandler.JingleSessionTerminateEventConnectionManager.ConnectionEstablishedHandler.ConnectionEstablishedEventFileTransferNegotiator.NegotiationFailureHandler, FileTransferNegotiator.NegotiationRejectHandler, FileTransferNegotiator.NegotiationRequestHandler, FileTransferNegotiator.NegotiationSuccessHandler| Modifier and Type | Field and Description |
|---|---|
static String |
JINGLE_FT_XMLNS |
context, ftManager| Constructor and Description |
|---|
JingleFileTransferNegotiator() |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptFile(tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft) |
String[] |
getFeatures() |
tigase.jaxmpp.core.client.xmpp.modules.connection.ConnectionSession |
getSession(String sid) |
protected List<tigase.jaxmpp.core.client.xmpp.modules.jingle.Transport> |
getTransports(tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
FileTransfer ft) |
boolean |
isSupported(tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft) |
void |
onConnectionEstablished(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.xmpp.modules.connection.ConnectionSession connectionSession,
Socket socket) |
void |
onJingleSessionAccept(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.JID sender,
String sid,
tigase.jaxmpp.core.client.xml.Element description,
List<tigase.jaxmpp.core.client.xmpp.modules.jingle.Transport> transports,
tigase.jaxmpp.core.client.xmpp.utils.MutableBoolean handled) |
void |
onJingleSessionInitiation(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.JID sender,
String sid,
tigase.jaxmpp.core.client.xml.Element desc,
List<tigase.jaxmpp.core.client.xmpp.modules.jingle.Transport> transports,
tigase.jaxmpp.core.client.xmpp.utils.MutableBoolean handled) |
void |
onJingleSessionTerminate(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.JID sender,
String sid,
tigase.jaxmpp.core.client.xmpp.utils.MutableBoolean handled) |
void |
registerListeners(tigase.jaxmpp.core.client.JaxmppCore jaxmpp) |
void |
rejectFile(tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft) |
void |
sendFile(tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft) |
void |
setContext(tigase.jaxmpp.core.client.Context context) |
void |
unregisterListeners(tigase.jaxmpp.core.client.JaxmppCore jaxmpp) |
fireOnFailure, fireOnReject, fireOnRequest, fireOnSuccesspublic static final String JINGLE_FT_XMLNS
public void acceptFile(tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
acceptFile in interface FileTransferNegotiatortigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic String[] getFeatures()
getFeatures in interface FileTransferNegotiatorpublic tigase.jaxmpp.core.client.xmpp.modules.connection.ConnectionSession getSession(String sid)
getSession in interface ConnectionSessionHandlerprotected List<tigase.jaxmpp.core.client.xmpp.modules.jingle.Transport> getTransports(tigase.jaxmpp.core.client.JaxmppCore jaxmpp, FileTransfer ft) throws tigase.jaxmpp.core.client.xml.XMLException, tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.xml.XMLExceptiontigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic boolean isSupported(tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft)
isSupported in interface FileTransferNegotiatorpublic 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 onJingleSessionAccept(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.JID sender,
String sid,
tigase.jaxmpp.core.client.xml.Element description,
List<tigase.jaxmpp.core.client.xmpp.modules.jingle.Transport> transports,
tigase.jaxmpp.core.client.xmpp.utils.MutableBoolean handled)
onJingleSessionAccept in interface tigase.jaxmpp.core.client.xmpp.modules.jingle.JingleModule.JingleSessionAcceptHandlerpublic void onJingleSessionInitiation(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.JID sender,
String sid,
tigase.jaxmpp.core.client.xml.Element desc,
List<tigase.jaxmpp.core.client.xmpp.modules.jingle.Transport> transports,
tigase.jaxmpp.core.client.xmpp.utils.MutableBoolean handled)
onJingleSessionInitiation in interface tigase.jaxmpp.core.client.xmpp.modules.jingle.JingleModule.JingleSessionInitiationHandlerpublic void onJingleSessionTerminate(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.JID sender,
String sid,
tigase.jaxmpp.core.client.xmpp.utils.MutableBoolean handled)
onJingleSessionTerminate in interface tigase.jaxmpp.core.client.xmpp.modules.jingle.JingleModule.JingleSessionTerminateHandlerpublic void registerListeners(tigase.jaxmpp.core.client.JaxmppCore jaxmpp)
registerListeners in interface FileTransferNegotiatorpublic void rejectFile(tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
rejectFile in interface FileTransferNegotiatortigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void sendFile(tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
tigase.jaxmpp.core.client.xmpp.modules.filetransfer.FileTransfer ft)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
sendFile in interface FileTransferNegotiatortigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void setContext(tigase.jaxmpp.core.client.Context context)
setContext in interface tigase.jaxmpp.core.client.xmpp.modules.ContextAwaresetContext in class FileTransferNegotiatorAbstractpublic void unregisterListeners(tigase.jaxmpp.core.client.JaxmppCore jaxmpp)
unregisterListeners in interface FileTransferNegotiatorCopyright © 2006–2016 Tigase. All rights reserved.