Package com.jcraft.jsch
Class ChannelSubsystem
- java.lang.Object
-
- com.jcraft.jsch.Channel
-
- com.jcraft.jsch.ChannelSession
-
- com.jcraft.jsch.ChannelSubsystem
-
- All Implemented Interfaces:
java.lang.Runnable
public class ChannelSubsystem extends ChannelSession
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jcraft.jsch.Channel
Channel.MyPipedInputStream, Channel.PassiveInputStream, Channel.PassiveOutputStream
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
pty
(package private) java.lang.String
subsystem
(package private) boolean
want_reply
(package private) boolean
xforwading
-
Fields inherited from class com.jcraft.jsch.ChannelSession
agent_forwarding, env, tcol, terminal_mode, thp, trow, ttype, twp
-
Fields inherited from class com.jcraft.jsch.Channel
close, connected, connectTimeout, eof_local, eof_remote, exitstatus, id, index, io, lmpsize, lwsize, lwsize_max, notifyme, open_confirmation, recipient, reply, rmpsize, rwsize, SSH_MSG_CHANNEL_OPEN_CONFIRMATION, SSH_MSG_CHANNEL_OPEN_FAILURE, SSH_MSG_CHANNEL_WINDOW_ADJUST, SSH_OPEN_ADMINISTRATIVELY_PROHIBITED, SSH_OPEN_CONNECT_FAILED, SSH_OPEN_RESOURCE_SHORTAGE, SSH_OPEN_UNKNOWN_CHANNEL_TYPE, thread, type
-
-
Constructor Summary
Constructors Constructor Description ChannelSubsystem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getErrStream()
(package private) void
init()
void
setErrStream(java.io.OutputStream out)
void
setPty(boolean foo)
Allocate a Pseudo-Terminal.void
setSubsystem(java.lang.String foo)
void
setWantReply(boolean foo)
void
setXForwarding(boolean foo)
Enable the X11 forwarding.void
start()
-
Methods inherited from class com.jcraft.jsch.ChannelSession
run, sendRequests, setAgentForwarding, setEnv, setEnv, setEnv, setPtySize, setPtyType, setPtyType, setTerminalMode
-
Methods inherited from class com.jcraft.jsch.Channel
addRemoteWindowSize, close, connect, connect, del, disconnect, disconnect, eof, eof_remote, genChannelOpenPacket, getChannel, getChannel, getData, getExitStatus, getExtInputStream, getId, getInputStream, getOutputStream, getRecipient, getSession, isClosed, isConnected, isEOF, sendChannelOpen, sendOpenConfirmation, sendOpenFailure, sendSignal, setExitStatus, setExtOutputStream, setExtOutputStream, setInputStream, setInputStream, setLocalPacketSize, setLocalWindowSize, setLocalWindowSizeMax, setOutputStream, setOutputStream, setRecipient, setRemotePacketSize, setRemoteWindowSize, setSession, write, write, write_ext
-
-
-
-
Method Detail
-
setXForwarding
public void setXForwarding(boolean foo)
Description copied from class:ChannelSession
Enable the X11 forwarding. Refer to RFC4254 6.3.1. Requesting X11 Forwarding.- Overrides:
setXForwarding
in classChannelSession
-
setPty
public void setPty(boolean foo)
Description copied from class:ChannelSession
Allocate a Pseudo-Terminal. Refer to RFC4254 6.2. Requesting a Pseudo-Terminal.- Overrides:
setPty
in classChannelSession
-
setWantReply
public void setWantReply(boolean foo)
-
setSubsystem
public void setSubsystem(java.lang.String foo)
-
start
public void start() throws JSchException
- Overrides:
start
in classChannel
- Throws:
JSchException
-
init
void init() throws JSchException
- Overrides:
init
in classChannel
- Throws:
JSchException
-
setErrStream
public void setErrStream(java.io.OutputStream out)
-
getErrStream
public java.io.InputStream getErrStream() throws java.io.IOException
- Throws:
java.io.IOException
-
-