Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/SimpleServerSessionCallback.java @ 273:91a31873c42a ganymed
start conversion from trilead to ganymed
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 18 Jul 2014 11:21:46 -0700 |
parents | |
children | 071eccdff8ea |
comparison
equal
deleted
inserted
replaced
272:ce2f4e397703 | 273:91a31873c42a |
---|---|
1 /* | |
2 * Copyright (c) 2006-2013 Christian Plattner. All rights reserved. | |
3 * Please refer to the LICENSE.txt for licensing details. | |
4 */ | |
5 | |
6 package ch.ethz.ssh2; | |
7 | |
8 import java.io.IOException; | |
9 | |
10 /** | |
11 * A basic ServerSessionCallback implementation. | |
12 * <p> | |
13 * Note: you should derive from this class instead of implementing | |
14 * the {@link ServerSessionCallback} interface directly. This way | |
15 * your code works also in case the interface gets extended in future | |
16 * versions. | |
17 * | |
18 * @author Christian | |
19 * | |
20 */ | |
21 public class SimpleServerSessionCallback implements ServerSessionCallback | |
22 { | |
23 public Runnable requestShell(ServerSession ss) throws IOException | |
24 { | |
25 return null; | |
26 } | |
27 | |
28 public Runnable requestExec(ServerSession ss, String command) throws IOException | |
29 { | |
30 return null; | |
31 } | |
32 | |
33 public Runnable requestSubsystem(ServerSession ss, String subsystem) throws IOException | |
34 { | |
35 return null; | |
36 } | |
37 | |
38 public Runnable requestPtyReq(ServerSession ss, PtySettings pty) throws IOException | |
39 { | |
40 return null; | |
41 } | |
42 | |
43 /** | |
44 * By default, silently ignore passwd environment variables. | |
45 */ | |
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 | |
57 public void requestWindowChange(ServerSession ss, int term_width_columns, int term_height_rows, | |
58 int term_width_pixels, int term_height_pixels) throws IOException | |
59 { | |
60 } | |
61 | |
62 } |