public class TelnetCLIConnection extends Object implements CLIConnection
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.net.telnet.TelnetClient |
telnet |
| Constructor and Description |
|---|
TelnetCLIConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(Map<String,Object> params)
Establishes a session connection to a network host and creates and stores
session parameters.
|
void |
disconnect()
Disconnects the session to the host.
|
InputStream |
inputStream() |
OutputStream |
outputStream() |
public void connect(Map<String,Object> params) throws IOException
CLIConnectionconnect in interface CLIConnectionparams - Parameters used to connect connection to the hostIOException - if any IOException when
communication with the NE.public void disconnect()
throws IOException
CLIConnectiondisconnect in interface CLIConnectionIOException - if any IOException when
communication with the hostpublic InputStream inputStream()
inputStream in interface CLIConnectionpublic OutputStream outputStream()
outputStream in interface CLIConnectionCopyright © 2016 iTransformers Labs. All rights reserved.