Class TelnetConnection

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Close the connection.
      void connectionChanged​(RemoteConnectionChangeEvent event)
      Notifies this listener that the status of a connection has changed.
      IRemoteProcess getCommandShell​(int flags)
      Get a remote process that runs a command shell on the remote system.
      java.lang.String getHostname()
      Obtain the hostname associated with this connection.
      java.lang.String getPassphrase()
      Get the pass phrase associated with this connection.
      java.lang.String getPassword()
      Get the password associated with this connection.
      int getPort()
      Obtain the port associated with this connection
      IRemoteConnection getRemoteConnection()  
      int getTimeout()
      Obtain the timeout used when establishing the connection.
      java.lang.String getUsername()
      Obtain the username associated with this connection.
      boolean isOpen()
      Test if the connection is open.
      void open​(org.eclipse.core.runtime.IProgressMonitor monitor)
      Open the connection.
      void setHostname​(java.lang.String hostname)
      Set the hostname associated with this connection.
      void setPassphrase​(java.lang.String passphrase)
      Set the pass phrase associated with this connection.
      void setPassword​(java.lang.String password)
      Set the password associated with this connection.
      void setPort​(int port)
      Set the port used for the connection.
      void setTimeout​(int timeout)
      Set the timeout used when establishing the connection.
      void setUseLoginShell​(boolean useLogingShell)
      Set the flag indicating a login shell should be stated for this connection.
      void setUsePassword​(boolean usePassword)
      Set the connection to try password authentication first.
      void setUsername​(java.lang.String username)
      Set the username associated with this connection.
      protected void terminated​(TelnetCommandShell shell)  
      boolean useLoginShell()
      Obtain the flag that indicates a login shell should be started once the connection is established
      boolean usePassword()
      Get the value of the use password authentication flag.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait