Mercurial > 510Connectbot
comparison app/src/main/java/ch/ethz/ssh2/SimpleServerSessionCallback.java @ 438:d29cce60f393
migrate from Eclipse to Android Studio
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 03 Dec 2015 11:23:55 -0800 |
parents | src/ch/ethz/ssh2/SimpleServerSessionCallback.java@071eccdff8ea |
children |
comparison
equal
deleted
inserted
replaced
437:208b31032318 | 438:d29cce60f393 |
---|---|
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 public Runnable requestShell(ServerSession ss) throws IOException { | |
23 return null; | |
24 } | |
25 | |
26 public Runnable requestExec(ServerSession ss, String command) throws IOException { | |
27 return null; | |
28 } | |
29 | |
30 public Runnable requestSubsystem(ServerSession ss, String subsystem) throws IOException { | |
31 return null; | |
32 } | |
33 | |
34 public Runnable requestPtyReq(ServerSession ss, PtySettings pty) throws IOException { | |
35 return null; | |
36 } | |
37 | |
38 /** | |
39 * By default, silently ignore passwd environment variables. | |
40 */ | |
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 } | |
52 | |
53 } |