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) booleanpty(package private) java.lang.Stringsubsystem(package private) booleanwant_reply(package private) booleanxforwading-
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.InputStreamgetErrStream()(package private) voidinit()voidsetErrStream(java.io.OutputStream out)voidsetPty(boolean foo)Allocate a Pseudo-Terminal.voidsetSubsystem(java.lang.String foo)voidsetWantReply(boolean foo)voidsetXForwarding(boolean foo)Enable the X11 forwarding.voidstart()-
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:ChannelSessionEnable the X11 forwarding. Refer to RFC4254 6.3.1. Requesting X11 Forwarding.- Overrides:
setXForwardingin classChannelSession
-
setPty
public void setPty(boolean foo)
Description copied from class:ChannelSessionAllocate a Pseudo-Terminal. Refer to RFC4254 6.2. Requesting a Pseudo-Terminal.- Overrides:
setPtyin classChannelSession
-
setWantReply
public void setWantReply(boolean foo)
-
setSubsystem
public void setSubsystem(java.lang.String foo)
-
start
public void start() throws JSchException- Overrides:
startin classChannel- Throws:
JSchException
-
init
void init() throws JSchException
- Overrides:
initin 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
-
-