|
|||||||||
| 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.UnsupportedSession
public class UnsupportedSession
This is a basic session that provides a message to the user to inform them that a shell or command cannot be executed because the server does not support an interactive session.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.maverick.sshd.Channel |
|---|
Channel.QueuedData |
| Field Summary |
|---|
| Fields inherited from class com.maverick.sshd.SessionChannel |
|---|
MAX_WINDOW_SPACE, MIN_WINDOW_SPACE |
| Fields inherited from class com.maverick.sshd.Channel |
|---|
connection, localwindow, localWindowLock |
| Constructor Summary | |
|---|---|
UnsupportedSession()
|
|
| Method Summary | |
|---|---|
protected boolean |
allocatePseudoTerminal(java.lang.String parm1,
int parm2,
int parm3,
int parm4,
int parm5,
byte[] parm6)
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(java.lang.String cmd)
Invoked when the user wants to execute a command |
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 |
onRemoteEOF()
The remote side has reported EOF so no more data will be received. |
protected void |
onSessionOpen()
Called once the session is open and data can be sent/received. |
protected void |
processSignal(java.lang.String signal)
A signal can be delivered to the process by the client. |
protected void |
processStderrData(byte[] data)
|
protected void |
processStdinData(byte[] data)
Data has arrived on the session's stdin stream. |
protected boolean |
setEnvironmentVariable(java.lang.String name,
java.lang.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, openChannel, resumeIncomingData, sendChannelDataWithBuffering, sendExitStatus, sendStderrData, sendStderrData, sendStdoutData, sendStdoutData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnsupportedSession()
| Method Detail |
|---|
protected void processStdinData(byte[] data)
SessionChannel
processStdinData in class SessionChannelprotected void processStderrData(byte[] data)
protected void onChannelClosed()
Channel
onChannelClosed in class Channelprotected boolean executeCommand(java.lang.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 void onLocalEOF()
Channel
onLocalEOF in class Channelprotected boolean startShell()
SessionChannel
startShell in class SessionChannel
protected boolean allocatePseudoTerminal(java.lang.String parm1,
int parm2,
int parm3,
int parm4,
int parm5,
byte[] parm6)
SessionChannel
allocatePseudoTerminal in class SessionChannelprotected void processSignal(java.lang.String signal)
SessionChannel
processSignal in class SessionChannelprotected void onRemoteEOF()
SessionChannel
onRemoteEOF in class SessionChannel
protected boolean setEnvironmentVariable(java.lang.String name,
java.lang.String value)
SessionChannel
setEnvironmentVariable in class SessionChannelprotected void onChannelOpenFailure()
Channel
onChannelOpenFailure in class Channel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||