|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jcraft.jsch.Channel com.jcraft.jsch.ChannelSubsystem
public class ChannelSubsystem
Field Summary | |
---|---|
protected boolean |
agent_forwarding
|
protected java.util.Hashtable |
env
|
protected int |
tcol
|
protected byte[] |
terminal_mode
|
protected int |
thp
|
protected int |
trow
|
protected java.lang.String |
ttype
|
protected int |
twp
|
Fields inherited from class com.jcraft.jsch.Channel |
---|
type |
Constructor Summary | |
---|---|
ChannelSubsystem()
|
Method Summary | |
---|---|
java.io.InputStream |
getErrStream()
|
void |
run()
|
protected void |
sendRequests()
|
void |
setAgentForwarding(boolean enable)
Enable the agent forwarding. |
void |
setEnv(byte[] name,
byte[] value)
Set the environment variable. |
void |
setEnv(java.util.Hashtable env)
Deprecated. Use setEnv(String, String) or setEnv(byte[], byte[]) instead. |
void |
setEnv(java.lang.String name,
java.lang.String value)
Set the environment variable. |
void |
setErrStream(java.io.OutputStream out)
|
void |
setPty(boolean foo)
Allocate a Pseudo-Terminal. |
void |
setPtySize(int col,
int row,
int wp,
int hp)
Change the window dimension interactively. |
void |
setPtyType(java.lang.String ttype)
Set the terminal type. |
void |
setPtyType(java.lang.String ttype,
int col,
int row,
int wp,
int hp)
Set the terminal type. |
void |
setSubsystem(java.lang.String foo)
|
void |
setTerminalMode(byte[] terminal_mode)
Set the terminal mode. |
void |
setWantReply(boolean foo)
|
void |
setXForwarding(boolean foo)
Enable the X11 forwarding. |
void |
start()
|
Methods inherited from class com.jcraft.jsch.Channel |
---|
connect, connect, disconnect, genChannelOpenPacket, getExitStatus, getExtInputStream, getId, getInputStream, getOutputStream, getSession, isClosed, isConnected, isEOF, sendChannelOpen, sendOpenConfirmation, sendOpenFailure, sendSignal, setExtOutputStream, setExtOutputStream, setInputStream, setInputStream, setOutputStream, setOutputStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean agent_forwarding
protected java.util.Hashtable env
protected java.lang.String ttype
protected int tcol
protected int trow
protected int twp
protected int thp
protected byte[] terminal_mode
Constructor Detail |
---|
public ChannelSubsystem()
Method Detail |
---|
public void setXForwarding(boolean foo)
public void setPty(boolean foo)
public void setWantReply(boolean foo)
public void setSubsystem(java.lang.String foo)
public void start() throws JSchException
start
in class Channel
JSchException
public void setErrStream(java.io.OutputStream out)
public java.io.InputStream getErrStream() throws java.io.IOException
java.io.IOException
public void setAgentForwarding(boolean enable)
enable
- public void setEnv(java.util.Hashtable env)
setEnv(String, String)
or setEnv(byte[], byte[])
instead.
setEnv(String, String)
,
setEnv(byte[], byte[])
public void setEnv(java.lang.String name, java.lang.String value)
name
and value
are needed to be passed
to the remote in your favorite encoding,
use setEnv(byte[], byte[])
.
Refer to RFC4254 6.4 Environment Variable Passing.
name
- A name for environment variable.value
- A value for environment variable.public void setEnv(byte[] name, byte[] value)
name
- A name of environment variable.value
- A value of environment variable.setEnv(String, String)
public void setTerminalMode(byte[] terminal_mode)
terminal_mode
- public void setPtySize(int col, int row, int wp, int hp)
col
- terminal width, columnsrow
- terminal height, rowswp
- terminal width, pixelshp
- terminal height, pixelspublic void setPtyType(java.lang.String ttype)
ttype
- terminal type(for example, "vt100")setPtyType(String, int, int, int, int)
public void setPtyType(java.lang.String ttype, int col, int row, int wp, int hp)
ttype
- terminal type(for example, "vt100")col
- terminal width, columnsrow
- terminal height, rowswp
- terminal width, pixelshp
- terminal height, pixelsprotected void sendRequests() throws java.lang.Exception
java.lang.Exception
public void run()
run
in interface java.lang.Runnable
run
in class Channel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |