Interface InteractiveSession

All Known Implementing Classes:
SSHSession, TelnetSession

public interface InteractiveSession
The Interface InteractiveSession.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Disconnect.
    boolean
    Gets the debug.
    boolean
    Checks if is connected.
    void
    send(String cmd)
    Sends the.
    waitfor(String... searchElements)
    Waitfor.
  • Method Details

    • send

      void send(String cmd) throws IOException
      Sends the.
      Parameters:
      cmd - the cmd
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • waitfor

      String waitfor(String... searchElements) throws IOException
      Waitfor.
      Parameters:
      searchElements - the search elements
      Returns:
      the string
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • isConnected

      boolean isConnected()
      Checks if is connected.
      Returns:
      true, if is connected
    • disconnect

      void disconnect()
      Disconnect.
    • getDebug

      boolean getDebug()
      Gets the debug.
      Returns:
      the debug