()
| 39 | } |
| 40 | |
| 41 | public void start() throws JSchException{ |
| 42 | Session _session=getSession(); |
| 43 | try{ |
| 44 | sendRequests(); |
| 45 | |
| 46 | Request request=new RequestShell(); |
| 47 | request.request(_session, this); |
| 48 | } |
| 49 | catch(Exception e){ |
| 50 | if(e instanceof JSchException) throw (JSchException)e; |
| 51 | if(e instanceof Throwable) |
| 52 | throw new JSchException("ChannelShell", (Throwable)e); |
| 53 | throw new JSchException("ChannelShell"); |
| 54 | } |
| 55 | |
| 56 | if(io.in!=null){ |
| 57 | thread=new Thread(this); |
| 58 | thread.setName("Shell for "+_session.host); |
| 59 | if(_session.daemon_thread){ |
| 60 | thread.setDaemon(_session.daemon_thread); |
| 61 | } |
| 62 | thread.start(); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | void init() throws JSchException { |
| 67 | io.setInputStream(getSession().in); |
nothing calls this directly
no test coverage detected