public class SimpleServerSessionCallback extends Object implements ServerSessionCallback
Note: you should derive from this class instead of implementing
the ServerSessionCallback interface directly. This way
your code works also in case the interface gets extended in future
versions.
| Constructor and Description |
|---|
SimpleServerSessionCallback() |
| Modifier and Type | Method and Description |
|---|---|
Runnable |
requestEnv(ServerSession ss,
String name,
String value)
By default, silently ignore passwd environment variables.
|
Runnable |
requestExec(ServerSession ss,
String command) |
Runnable |
requestPtyReq(ServerSession ss,
PtySettings pty) |
Runnable |
requestShell(ServerSession ss) |
Runnable |
requestSubsystem(ServerSession ss,
String subsystem) |
void |
requestWindowChange(ServerSession ss,
int term_width_columns,
int term_height_rows,
int term_width_pixels,
int term_height_pixels)
When the window (terminal) size changes on the client side, it MAY send a message to the other side to inform it of the new dimensions.
|
public Runnable requestShell(ServerSession ss) throws IOException
requestShell in interface ServerSessionCallbackIOExceptionpublic Runnable requestExec(ServerSession ss, String command) throws IOException
requestExec in interface ServerSessionCallbackIOExceptionpublic Runnable requestSubsystem(ServerSession ss, String subsystem) throws IOException
requestSubsystem in interface ServerSessionCallbackIOExceptionpublic Runnable requestPtyReq(ServerSession ss, PtySettings pty) throws IOException
requestPtyReq in interface ServerSessionCallbackIOExceptionpublic Runnable requestEnv(ServerSession ss, String name, String value) throws IOException
requestEnv in interface ServerSessionCallbackIOExceptionpublic void requestWindowChange(ServerSession ss, int term_width_columns, int term_height_rows, int term_width_pixels, int term_height_pixels) throws IOException
ServerSessionCallbackrequestWindowChange in interface ServerSessionCallbackss - the corresponding sessionIOExceptionCopyright © 2014. All Rights Reserved.