org.opennms.netmgt.provision.detector.ssh.client
Class SshClient
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SshClient
public SshClient()
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.