public interface Transport
NetconfSession constructor takes a
transport mechanism to be responsible for the actual sending and receiving
of NETCONF protocol messages over the wire. SSHSession and
TCPSession implements the Transport interface.SSHSession,
TCPSession| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the Transport session/connection.
|
void |
flush()
Signals that the final chunk of data has be printed to the output
transport stream.
|
void |
print(int i)
Prints an integer to the transport output stream.
|
void |
print(java.lang.String s)
Prints a string to the transport output stream.
|
void |
println(int i)
Prints an integer to the transport output stream and an additional line
break.
|
void |
println(java.lang.String s)
Prints a string to the transport output stream and an additional line
break.
|
java.lang.StringBuffer |
readOne()
Reads "one" reply from the transport input stream.
|
boolean |
ready()
Tell whether this transport is ready to be read.
|
boolean ready()
throws java.io.IOException
java.io.IOExceptionjava.lang.StringBuffer readOne()
throws java.io.IOException,
JNCException
java.io.IOExceptionJNCExceptionvoid print(int i)
void print(java.lang.String s)
void println(int i)
void println(java.lang.String s)
void flush()
This method furthermore flushes the transport output stream buffer.
void close()