Tabnine Logo
SFTPEngine.getOperativeProtocolVersion
Code IndexAdd Tabnine to your IDE (free)

How to use
getOperativeProtocolVersion
method
in
net.schmizz.sshj.sftp.SFTPEngine

Best Java code snippets using net.schmizz.sshj.sftp.SFTPEngine.getOperativeProtocolVersion (Showing top 7 results out of 315)

origin: hierynomus/sshj

public int version() {
  return engine.getOperativeProtocolVersion();
}
origin: hierynomus/sshj

public void handle()
    throws SFTPException {
  Response resp = new Response(packet, engine.getOperativeProtocolVersion());
  Promise<Response, SFTPException> promise = promises.remove(resp.getRequestID());
  log.debug("Received {} packet", resp.getType());
  if (promise == null)
    throw new SFTPException("Received [" + resp.readType() + "] response for request-id " + resp.getRequestID()
        + ", no such request was made");
  else
    promise.deliver(resp);
}
origin: com.hierynomus/sshj

public int version() {
  return engine.getOperativeProtocolVersion();
}
origin: net.schmizz/sshj

public int version() {
  return engine.getOperativeProtocolVersion();
}
origin: iterate-ch/cyberduck

private boolean isSpaceAvailableExtensionAvailable() {
  try {
    return session.sftp().getOperativeProtocolVersion() >= MIN_SFTP_SPACE_AVAILABLE_VERSION;
  }
  catch(BackgroundException e) {
    return false;
  }
}
origin: com.hierynomus/sshj

public void handle()
    throws SFTPException {
  Response resp = new Response(packet, engine.getOperativeProtocolVersion());
  Promise<Response, SFTPException> promise = promises.remove(resp.getRequestID());
  log.debug("Received {} packet", resp.getType());
  if (promise == null)
    throw new SFTPException("Received [" + resp.readType() + "] response for request-id " + resp.getRequestID()
        + ", no such request was made");
  else
    promise.deliver(resp);
}
origin: net.schmizz/sshj

public void handle()
    throws SFTPException {
  Response resp = new Response(packet, engine.getOperativeProtocolVersion());
  Promise<Response, SFTPException> promise = promises.remove(resp.getRequestID());
  log.debug("Received {} packet", resp.getType());
  if (promise == null)
    throw new SFTPException("Received [" + resp.readType() + "] response for request-id " + resp.getRequestID()
                    + ", no such request was made");
  else
    promise.deliver(resp);
}
net.schmizz.sshj.sftpSFTPEnginegetOperativeProtocolVersion

Popular methods of SFTPEngine

  • open
  • makeDir
  • stat
  • <init>
  • canonicalize
  • close
  • getPathHelper
  • getSubsystem
  • init
  • lstat
  • openDir
  • readLink
  • openDir,
  • readLink,
  • remove,
  • removeDir,
  • rename,
  • request,
  • setAttributes,
  • symlink,
  • doRequest

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now