|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.sshd.Channel
com.maverick.sshd.SessionChannel
com.maverick.sshd.shell.VirtualShell
public class VirtualShell
| Nested Class Summary | |
|---|---|
static interface |
VirtualShell.WindowSizeChangeListener
|
| Nested classes/interfaces inherited from class com.maverick.sshd.Channel |
|---|
Channel.QueuedData |
| Field Summary |
|---|
| Fields inherited from class com.maverick.sshd.SessionChannel |
|---|
CHANNEL_TYPE |
| Fields inherited from class com.maverick.sshd.Channel |
|---|
connection, localwindow, localWindowLock, state |
| Constructor Summary | |
|---|---|
VirtualShell()
|
|
| Method Summary | |
|---|---|
void |
addWindowSizeChangeListener(VirtualShell.WindowSizeChangeListener listener)
|
protected boolean |
allocatePseudoTerminal(String term,
int cols,
int rows,
int width,
int height,
byte[] modes)
If the client requests a pseudo terminal for the session this method will be invoked before the shell, exec or subsystem is started. |
protected void |
changeWindowDimensions(int cols,
int rows,
int width,
int height)
When the window (terminal) size changes on the client side, it MAY send notification in which case this method will be invoked to notify the session that a change has occurred. |
protected boolean |
executeCommand(String cmd)
Invoked when the user wants to execute a command |
String |
getInformation()
|
protected void |
onChannelClosed()
Called when the channel has been closed to enable resources to be freed. |
protected void |
onChannelOpenFailure()
Called when the remote side fails to open a channel in response to our request. |
protected void |
onLocalEOF()
Called when the local side is EOF. |
protected void |
onSessionOpen()
Called once the session is open and data can be sent/received. |
protected void |
processSignal(String signal)
A signal can be delivered to the process by the client. |
protected void |
processStdinData(byte[] data)
just writes the input data to the outputstream of the 'input' field. |
void |
removeWindowSizeChangeListener(VirtualShell.WindowSizeChangeListener listener)
|
protected boolean |
setEnvironmentVariable(String name,
String value)
If the client requests that an environment variable be set this method will be invoked. |
protected boolean |
startShell()
Invoked when the user wants to start a shell. |
| Methods inherited from class com.maverick.sshd.SessionChannel |
|---|
createChannel, evaluateWindowSpace, getSessionIdentifier, haltIncomingData, idle, onChannelClosing, onChannelData, onChannelFree, onChannelOpen, onChannelOpenConfirmation, onChannelRequest, onExtendedData, onRemoteEOF, openChannel, resumeIncomingData, sendExitStatus, sendStderrData, sendStderrData, sendStdoutData, sendStdoutData |
| Methods inherited from class com.maverick.sshd.Channel |
|---|
addEventListener, addInputListener, addOutputListener, canClose, close, getConnection, getContext, getLocalId, getLocalPacket, getLocalWindow, getName, getQueueSize, getRemoteId, getRemotePacket, getRemoteWindow, hasQueuedData, isClosed, isClosing, isEOF, isLocalEOF, isOpen, isRemoteEOF, onRemoteClose, onWindowAdjust, queueSize, registerExtendedData, removeEventListener, sendChannelData, sendChannelData, sendChannelRequest, sendEOF, sendExtendedData, sendRequestResponse, sendWindowAdjust |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VirtualShell()
| Method Detail |
|---|
public void addWindowSizeChangeListener(VirtualShell.WindowSizeChangeListener listener)
public void removeWindowSizeChangeListener(VirtualShell.WindowSizeChangeListener listener)
protected void processStdinData(byte[] data)
processStdinData in class SessionChannelSessionChannel.processStdinData(byte[])protected boolean executeCommand(String cmd)
SessionChannel
executeCommand in class SessionChannel
protected void changeWindowDimensions(int cols,
int rows,
int width,
int height)
SessionChannel
changeWindowDimensions in class SessionChannelprotected void onSessionOpen()
SessionChannel
onSessionOpen in class SessionChannelprotected boolean startShell()
SessionChannel
startShell in class SessionChannel
protected boolean allocatePseudoTerminal(String term,
int cols,
int rows,
int width,
int height,
byte[] modes)
SessionChannel
allocatePseudoTerminal in class SessionChannel
protected boolean setEnvironmentVariable(String name,
String value)
SessionChannel
setEnvironmentVariable in class SessionChannelprotected void onChannelOpenFailure()
Channel
onChannelOpenFailure in class Channelprotected void processSignal(String signal)
SessionChannel
processSignal in class SessionChannelprotected void onChannelClosed()
Channel
onChannelClosed in class Channelprotected void onLocalEOF()
Channel
onLocalEOF in class Channelpublic String getInformation()
getInformation in class Channel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||