Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/ServerSessionCallback.java @ 308:42b15aaa7ac7 ganymed
merge
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 30 Jul 2014 14:21:50 -0700 |
parents | 071eccdff8ea |
children |
comparison
equal
deleted
inserted
replaced
306:90e47d99ea54 | 308:42b15aaa7ac7 |
---|---|
24 * request an acknowledgment). In these cases, if you need to invoke | 24 * request an acknowledgment). In these cases, if you need to invoke |
25 * methods on the {@link ServerSession} or plan to execute long-running activity, then please do this from within a new {@link Thread}.</b> | 25 * methods on the {@link ServerSession} or plan to execute long-running activity, then please do this from within a new {@link Thread}.</b> |
26 * <p/> | 26 * <p/> |
27 * If you want to signal a fatal error, then please throw an <code>IOException</code>. Currently, this will | 27 * If you want to signal a fatal error, then please throw an <code>IOException</code>. Currently, this will |
28 * tear down the whole SSH connection. | 28 * tear down the whole SSH connection. |
29 * | 29 * |
30 * @see ServerSession | 30 * @see ServerSession |
31 * | 31 * |
32 * @author Christian | 32 * @author Christian |
33 * | 33 * |
34 */ | 34 */ |
35 public interface ServerSessionCallback | 35 public interface ServerSessionCallback { |
36 { | 36 public Runnable requestPtyReq(ServerSession ss, PtySettings pty) throws IOException; |
37 public Runnable requestPtyReq(ServerSession ss, PtySettings pty) throws IOException; | |
38 | 37 |
39 public Runnable requestEnv(ServerSession ss, String name, String value) throws IOException; | 38 public Runnable requestEnv(ServerSession ss, String name, String value) throws IOException; |
40 | 39 |
41 public Runnable requestShell(ServerSession ss) throws IOException; | 40 public Runnable requestShell(ServerSession ss) throws IOException; |
42 | 41 |
43 public Runnable requestExec(ServerSession ss, String command) throws IOException; | 42 public Runnable requestExec(ServerSession ss, String command) throws IOException; |
44 | 43 |
45 public Runnable requestSubsystem(ServerSession ss, String subsystem) throws IOException; | 44 public Runnable requestSubsystem(ServerSession ss, String subsystem) throws IOException; |
46 | 45 |
47 /** | 46 /** |
48 * 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. | 47 * 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. |
49 * | 48 * |
50 * @param ss the corresponding session | 49 * @param ss the corresponding session |
51 * @param term_width_columns | 50 * @param term_width_columns |
52 * @param term_height_rows | 51 * @param term_height_rows |
53 * @param term_width_pixels | 52 * @param term_width_pixels |
54 */ | 53 */ |
55 public void requestWindowChange(ServerSession ss, int term_width_columns, int term_height_rows, | 54 public void requestWindowChange(ServerSession ss, int term_width_columns, int term_height_rows, |
56 int term_width_pixels, int term_height_pixels) throws IOException; | 55 int term_width_pixels, int term_height_pixels) throws IOException; |
57 | 56 |
58 /** | 57 /** |
59 * A signal can be delivered to the remote process/service. Some systems may not implement signals, in which case they SHOULD ignore this message. | 58 * A signal can be delivered to the remote process/service. Some systems may not implement signals, in which case they SHOULD ignore this message. |
60 * | 59 * |
61 * @param ss the corresponding session | 60 * @param ss the corresponding session |
62 * @param signal (a string without the "SIG" prefix) | 61 * @param signal (a string without the "SIG" prefix) |
63 * @return | 62 * @return |
64 * @throws IOException | 63 * @throws IOException |
65 */ | 64 */ |
66 | 65 |
67 } | 66 } |