org.opennms.netmgt.provision.detector.ssh.client
Class SshClient

java.lang.Object
  extended by org.opennms.netmgt.provision.detector.ssh.client.SshClient
All Implemented Interfaces:
Client<NullRequest,SshResponse>

public class SshClient
extends Object
implements Client<NullRequest,SshResponse>

Author:
thedesloge

Constructor Summary
SshClient()
           
 
Method Summary
 void close()
           
 void connect(InetAddress address, int port, int timeout)
           
 SshResponse receiveBanner()
           
 SshResponse sendRequest(NullRequest request)
           
 void setBanner(String banner)
           
 void setClientBanner(String clientBanner)
           
 void setMatch(String match)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SshClient

public SshClient()
Method Detail

close

public void close()
Specified by:
close in interface Client<NullRequest,SshResponse>

connect

public void connect(InetAddress address,
                    int port,
                    int timeout)
             throws IOException,
                    Exception
Specified by:
connect in interface Client<NullRequest,SshResponse>
Throws:
IOException
Exception

receiveBanner

public SshResponse receiveBanner()
                          throws IOException,
                                 Exception
Specified by:
receiveBanner in interface Client<NullRequest,SshResponse>
Throws:
IOException
Exception

sendRequest

public SshResponse sendRequest(NullRequest request)
                        throws IOException,
                               Exception
Specified by:
sendRequest in interface Client<NullRequest,SshResponse>
Throws:
IOException
Exception

setBanner

public void setBanner(String banner)

setMatch

public void setMatch(String match)

setClientBanner

public void setClientBanner(String clientBanner)


Copyright © 2009. All Rights Reserved.