} catch (final MalformedURLException e1) {
throw new SendFileTransferException(Messages.AbstractRetrieveFileTransfer_MalformedURLException);
}
}
ISendFileTransferContainerAdapter fileTransfer = Activator.getDefault().getSendFileTransfer(protocol);
// If no handler setup for this protocol then throw
if (fileTransfer == null) {
if (protocol.equalsIgnoreCase("file")) { //$NON-NLS-1$
fileTransfer = new LocalFileOutgoingFileTransfer();
}
}
if (fileTransfer == null) {
throw new SendFileTransferException(NLS.bind(Messages.MultiProtocolOutgoingAdapter_EXCEPTION_NO_PROTOCOL_HANDER, targetID));
}
fileTransfer.setConnectContextForAuthentication(connectContext);
fileTransfer.setProxy(proxy);
fileTransfer.sendOutgoingRequest(targetID, outgoingFile, transferListener, options);
}