comparison src/ch/ethz/ssh2/SimpleServerSessionCallback.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
12 * <p> 12 * <p>
13 * Note: you should derive from this class instead of implementing 13 * Note: you should derive from this class instead of implementing
14 * the {@link ServerSessionCallback} interface directly. This way 14 * the {@link ServerSessionCallback} interface directly. This way
15 * your code works also in case the interface gets extended in future 15 * your code works also in case the interface gets extended in future
16 * versions. 16 * versions.
17 * 17 *
18 * @author Christian 18 * @author Christian
19 * 19 *
20 */ 20 */
21 public class SimpleServerSessionCallback implements ServerSessionCallback 21 public class SimpleServerSessionCallback implements ServerSessionCallback {
22 { 22 public Runnable requestShell(ServerSession ss) throws IOException {
23 public Runnable requestShell(ServerSession ss) throws IOException 23 return null;
24 { 24 }
25 return null;
26 }
27 25
28 public Runnable requestExec(ServerSession ss, String command) throws IOException 26 public Runnable requestExec(ServerSession ss, String command) throws IOException {
29 { 27 return null;
30 return null; 28 }
31 }
32 29
33 public Runnable requestSubsystem(ServerSession ss, String subsystem) throws IOException 30 public Runnable requestSubsystem(ServerSession ss, String subsystem) throws IOException {
34 { 31 return null;
35 return null; 32 }
36 }
37
38 public Runnable requestPtyReq(ServerSession ss, PtySettings pty) throws IOException
39 {
40 return null;
41 }
42 33
43 /** 34 public Runnable requestPtyReq(ServerSession ss, PtySettings pty) throws IOException {
44 * By default, silently ignore passwd environment variables. 35 return null;
45 */ 36 }
46 public Runnable requestEnv(ServerSession ss, String name, String value) throws IOException
47 {
48 return new Runnable()
49 {
50 public void run()
51 {
52 /* Do nothing */
53 }
54 };
55 }
56 37
57 public void requestWindowChange(ServerSession ss, int term_width_columns, int term_height_rows, 38 /**
58 int term_width_pixels, int term_height_pixels) throws IOException 39 * By default, silently ignore passwd environment variables.
59 { 40 */
60 } 41 public Runnable requestEnv(ServerSession ss, String name, String value) throws IOException {
42 return new Runnable() {
43 public void run() {
44 /* Do nothing */
45 }
46 };
47 }
48
49 public void requestWindowChange(ServerSession ss, int term_width_columns, int term_height_rows,
50 int term_width_pixels, int term_height_pixels) throws IOException {
51 }
61 52
62 } 53 }