()
| 39 | public void setWantReply(boolean foo){ want_reply=foo; } |
| 40 | public void setSubsystem(String foo){ subsystem=foo; } |
| 41 | public void start() throws JSchException{ |
| 42 | Session _session=getSession(); |
| 43 | try{ |
| 44 | Request request; |
| 45 | if(xforwading){ |
| 46 | request=new RequestX11(); |
| 47 | request.request(_session, this); |
| 48 | } |
| 49 | if(pty){ |
| 50 | request=new RequestPtyReq(); |
| 51 | request.request(_session, this); |
| 52 | } |
| 53 | request=new RequestSubsystem(); |
| 54 | ((RequestSubsystem)request).request(_session, this, subsystem, want_reply); |
| 55 | } |
| 56 | catch(Exception e){ |
| 57 | if(e instanceof JSchException){ throw (JSchException)e; } |
| 58 | if(e instanceof Throwable) |
| 59 | throw new JSchException("ChannelSubsystem", (Throwable)e); |
| 60 | throw new JSchException("ChannelSubsystem"); |
| 61 | } |
| 62 | if(io.in!=null){ |
| 63 | thread=new Thread(this); |
| 64 | thread.setName("Subsystem for "+_session.host); |
| 65 | if(_session.daemon_thread){ |
| 66 | thread.setDaemon(_session.daemon_thread); |
| 67 | } |
| 68 | thread.start(); |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | void init() throws JSchException { |
| 73 | io.setInputStream(getSession().in); |
nothing calls this directly
no test coverage detected