com.foxsmart.ic.net
Class MindTermSshConsoleClient

java.lang.Object
  extended by com.mindbright.ssh.SSHClientUserAdaptor
      extended by com.mindbright.ssh.SSHConsoleClient
          extended by com.foxsmart.ic.net.MindTermSshConsoleClient
All Implemented Interfaces:
com.mindbright.ssh.SSHClientUser, com.mindbright.ssh.SSHConsole, com.mindbright.sshcommon.SSHConsoleRemote

public class MindTermSshConsoleClient
extends com.mindbright.ssh.SSHConsoleClient

Extends the standard Mindterm SSH Console Client by adding a shellWithException method.


Field Summary
 
Fields inherited from class com.mindbright.ssh.SSHConsoleClient
client, DEFAULT_COPY_BUFFER_SZ, inBottom, inTop, proxyUser, sshHost, stderr, stdin, stdout
 
Fields inherited from class com.mindbright.ssh.SSHClientUserAdaptor
interactor, sshPort
 
Constructor Summary
MindTermSshConsoleClient(java.lang.String sshHost, int port, com.mindbright.ssh.SSHAuthenticator authenticator, com.mindbright.ssh.SSHInteractor interactor)
          Construct a MindTermSshConsoleCLient.
MindTermSshConsoleClient(java.lang.String sshHost, int port, com.mindbright.ssh.SSHAuthenticator authenticator, com.mindbright.ssh.SSHInteractor interactor, int bufferSize)
          Construct a MindTermSshConsoleCLient.
 
Method Summary
 boolean shellWithException()
          This method performs the same functionality as the shell method although this one throws the original exception rather than eating the exception and returning a boolean.
 
Methods inherited from class com.mindbright.ssh.SSHConsoleClient
changeStdErr, changeStdOut, close, close, command, command, getProxyConnection, getStdIn, getStdOut, getTerminal, print, println, serverConnect, serverDisconnect, setClientUser, shell, stderrWriteString, stdoutWriteString, wantPTY
 
Methods inherited from class com.mindbright.ssh.SSHClientUserAdaptor
getAliveInterval, getCompressionLevel, getDisplay, getInteractor, getMaxPacketSz, getSrvHost, getSrvPort, wantX11Forward
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MindTermSshConsoleClient

public MindTermSshConsoleClient(java.lang.String sshHost,
                                int port,
                                com.mindbright.ssh.SSHAuthenticator authenticator,
                                com.mindbright.ssh.SSHInteractor interactor)
                         throws java.io.IOException
Construct a MindTermSshConsoleCLient.

Parameters:
sshHost - the SSH host.
port - the port.
authenticator - the authenticator.
interactor - the interactor.
Throws:
java.io.IOException - if any problems were encountered.

MindTermSshConsoleClient

public MindTermSshConsoleClient(java.lang.String sshHost,
                                int port,
                                com.mindbright.ssh.SSHAuthenticator authenticator,
                                com.mindbright.ssh.SSHInteractor interactor,
                                int bufferSize)
                         throws java.io.IOException
Construct a MindTermSshConsoleCLient.

Parameters:
sshHost - the SSH host.
port - the port.
authenticator - the authenticator.
interactor - the interactor.
bufferSize - the buffer size.
Throws:
java.io.IOException - if any problems were encountered.
Method Detail

shellWithException

public boolean shellWithException()
                           throws java.io.IOException
This method performs the same functionality as the shell method although this one throws the original exception rather than eating the exception and returning a boolean.

Returns:
true when no exceptions are thrown.
Throws:
java.io.IOException - if any problems were encountered.


Copyright © 2005-2008 Fox Smart, Inc. All Rights Reserved.