Logo Search packages:      
Sourcecode: jenkins-trilead-ssh2 version File versions  Download package

synchronized SCPClient com::trilead::ssh2::Connection::createSCPClient (  ) throws IOException [inline]

Create a very basic SCPClient that can be used to copy files from/to the SSH-2 server.

Works only after one has passed successfully the authentication step. There is no limit on the number of concurrent SCP clients.

Note: This factory method will probably disappear in the future.

Returns:
A SCPClient object.
Exceptions:
IOException

Definition at line 849 of file Connection.java.

      {
            if (tm == null)
                  throw new IllegalStateException("Cannot create SCP client, you need to establish a connection first.");

            if (!authenticated)
                  throw new IllegalStateException("Cannot create SCP client, connection is not authenticated.");

            return new SCPClient(this);
      }

Generated by  Doxygen 1.6.0   Back to index