ClientProxyConnector has only
support for sending a message; replies get routed through the Ssh session,
and don't get back to this proxy connector. Augment the interface so that the
session can know when to route messages received to the proxy connector, and
when to start handling them itself.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | TIMEOUT_PROPERTY
A property key for a session property defining the timeout for setting up the proxy connection. |
| Modifier and Type | Method and Description |
|---|---|
| public void | messageReceived(IoSession
to use for writing data session, Readable received data buffer)Handle a received message. |
| public void | runWhenDone(Callable<Void>
operation to run command)Runs |
| TIMEOUT_PROPERTY | back to summary |
|---|---|
| public static final String TIMEOUT_PROPERTY A property key for a session property defining the timeout for setting up the proxy connection. | |
| messageReceived | back to summary |
|---|---|
| public void messageReceived(IoSession session, Readable buffer) throws Exception Handle a received message. | |
| runWhenDone | back to summary |
|---|---|
| public void runWhenDone(Callable<Void> command) throws Exception Runs | |