public class Socks5FileTransferNegotiator extends FileTransferNegotiatorAbstract implements ConnectionManager.ConnectionEstablishedHandler, FileTransferModule.FileTransferRequestHandler
ConnectionManager.ConnectionEstablishedHandler.ConnectionEstablishedEventFileTransferModule.FileTransferRequestHandler.FileTransferRequestEventFileTransferNegotiator.NegotiationFailureHandler, FileTransferNegotiator.NegotiationRejectHandler, FileTransferNegotiator.NegotiationRequestHandler, FileTransferNegotiator.NegotiationSuccessHandlercontext, ftManager| Constructor and Description |
|---|
Socks5FileTransferNegotiator() |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptFile(JaxmppCore jaxmpp,
FileTransfer ft) |
String[] |
getFeatures() |
boolean |
isSupported(JaxmppCore jaxmpp,
FileTransfer ft) |
void |
onConnectionEstablished(SessionObject sessionObject,
ConnectionSession connectionSession,
Socket socket) |
void |
onFileTransferRequest(SessionObject sessionObject,
FileTransfer fts,
String id,
List<String> streamMethods) |
void |
registerListeners(JaxmppCore jaxmpp) |
void |
rejectFile(JaxmppCore jaxmpp,
FileTransfer ft) |
void |
sendFile(JaxmppCore jaxmpp,
FileTransfer ft) |
void |
sendFile2(JaxmppCore jaxmpp,
FileTransfer ft) |
void |
setContext(Context context) |
void |
unregisterListeners(JaxmppCore jaxmpp) |
fireOnFailure, fireOnReject, fireOnRequest, fireOnSuccesspublic void acceptFile(JaxmppCore jaxmpp, FileTransfer ft) throws JaxmppException
acceptFile in interface FileTransferNegotiatorJaxmppExceptionpublic String[] getFeatures()
getFeatures in interface FileTransferNegotiatorpublic boolean isSupported(JaxmppCore jaxmpp, FileTransfer ft)
isSupported in interface FileTransferNegotiatorpublic void onConnectionEstablished(SessionObject sessionObject, ConnectionSession connectionSession, Socket socket) throws JaxmppException
onConnectionEstablished in interface ConnectionManager.ConnectionEstablishedHandlerJaxmppExceptionpublic void onFileTransferRequest(SessionObject sessionObject, FileTransfer fts, String id, List<String> streamMethods)
onFileTransferRequest in interface FileTransferModule.FileTransferRequestHandlerpublic void registerListeners(JaxmppCore jaxmpp)
registerListeners in interface FileTransferNegotiatorpublic void rejectFile(JaxmppCore jaxmpp, FileTransfer ft) throws JaxmppException
rejectFile in interface FileTransferNegotiatorJaxmppExceptionpublic void sendFile(JaxmppCore jaxmpp, FileTransfer ft) throws JaxmppException
sendFile in interface FileTransferNegotiatorJaxmppExceptionpublic void sendFile2(JaxmppCore jaxmpp, FileTransfer ft) throws JaxmppException
JaxmppExceptionpublic void setContext(Context context)
setContext in interface ContextAwaresetContext in class FileTransferNegotiatorAbstractpublic void unregisterListeners(JaxmppCore jaxmpp)
unregisterListeners in interface FileTransferNegotiatorCopyright © 2006–2020 Tigase. All rights reserved.