public class Socks5FileTransferNegotiator extends FileTransferNegotiatorAbstract implements ConnectionManager.ConnectionEstablishedHandler, FileTransferModule.FileTransferRequestHandler
ConnectionManager.ConnectionEstablishedHandler.ConnectionEstablishedEvent
FileTransferModule.FileTransferRequestHandler.FileTransferRequestEvent
FileTransferNegotiator.NegotiationFailureHandler, FileTransferNegotiator.NegotiationRejectHandler, FileTransferNegotiator.NegotiationRequestHandler, FileTransferNegotiator.NegotiationSuccessHandler
context, 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, fireOnSuccess
public void acceptFile(JaxmppCore jaxmpp, FileTransfer ft) throws JaxmppException
acceptFile
in interface FileTransferNegotiator
JaxmppException
public String[] getFeatures()
getFeatures
in interface FileTransferNegotiator
public boolean isSupported(JaxmppCore jaxmpp, FileTransfer ft)
isSupported
in interface FileTransferNegotiator
public void onConnectionEstablished(SessionObject sessionObject, ConnectionSession connectionSession, Socket socket) throws JaxmppException
onConnectionEstablished
in interface ConnectionManager.ConnectionEstablishedHandler
JaxmppException
public void onFileTransferRequest(SessionObject sessionObject, FileTransfer fts, String id, List<String> streamMethods)
onFileTransferRequest
in interface FileTransferModule.FileTransferRequestHandler
public void registerListeners(JaxmppCore jaxmpp)
registerListeners
in interface FileTransferNegotiator
public void rejectFile(JaxmppCore jaxmpp, FileTransfer ft) throws JaxmppException
rejectFile
in interface FileTransferNegotiator
JaxmppException
public void sendFile(JaxmppCore jaxmpp, FileTransfer ft) throws JaxmppException
sendFile
in interface FileTransferNegotiator
JaxmppException
public void sendFile2(JaxmppCore jaxmpp, FileTransfer ft) throws JaxmppException
JaxmppException
public void setContext(Context context)
setContext
in interface ContextAware
setContext
in class FileTransferNegotiatorAbstract
public void unregisterListeners(JaxmppCore jaxmpp)
unregisterListeners
in interface FileTransferNegotiator
Copyright © 2006–2023 Tigase. All rights reserved.