| Modifier and Type | Class and Description |
|---|---|
| public class |
| Modifier and Type | Field and Description |
|---|---|
| protected ChannelAsyncOutputStream | |
| protected ChannelAsyncOutputStream | |
| protected final CloseFuture | |
| protected Command | |
| protected final AtomicBoolean | |
| public static final List | |
| protected final StandardEnvironment | |
| protected OutputStream | |
| protected Buffer | |
| protected ChannelDataReceiver | |
| protected OutputStream | |
| protected ChannelDataReceiver | |
| protected Buffer | |
| protected String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| protected void | |
| protected void | doWriteData(byte[] data, int off, long len)
Implements abstract org.
|
| protected void | doWriteExtendedData(byte[] data, int off, long len)
Implements abstract org.
|
| public StandardEnvironment | |
| protected Closeable | |
| protected int | |
| public ServerSession | |
| protected RequestHandler. | |
| protected RequestHandler. | |
| protected RequestHandler. | |
| protected RequestHandler. | |
| protected RequestHandler. | |
| protected RequestHandler. | |
| public void | handleEof()
Overrides org. Implements org. Invoked when |
| protected RequestHandler. | |
| protected RequestHandler. | |
| protected RequestHandler. | handleInternalRequest(String
The request type requestType, boolean Whether reply is requested wantReply, Buffer The buffer)Buffer containing extra request-specific dataOverrides org. Called by |
| protected RequestHandler. | |
| protected RequestHandler. | handlePtyReqParsed(String term, int tColumns, int tRows, int tWidth, int tHeight, Map<PtyMode, Integer> ptyModes)
|
| protected RequestHandler. | |
| protected RequestHandler. | |
| protected RequestHandler. | |
| protected RequestHandler. | |
| protected RequestHandler. | |
| protected RequestHandler. | |
| public void | handleWindowAdjust(Buffer
The rest of the message data buffer)Buffer after decoding the channel identifiersOverrides org. Implements org. Invoked when |
| protected RequestHandler. | |
| protected RequestHandler. | |
| protected RequestHandler. | |
| protected RequestHandler. | handleX11ForwardingParsed(String requestType, ServerSession session, boolean singleConnection, String authProtocol, String authCookie, int screenId)
|
| protected boolean | |
| protected boolean | |
| protected RequestHandler. | |
| protected Command | Returns: The updated command instance - ifnull then the request that initially caused the
creation of the command is failed and the original command (if any) destroyed (eventually)Note if a different command instance than the input one is returned, then it is up to the implementor to take care of the wrapping or destruction of the original command instance. The request that caused the command to be created requestType, Command The created command)Command - may be nullCalled by |
| protected IoWriteFuture | sendResponse(Buffer buffer, String req, RequestHandler.
Overrides org.
|
| public void | setDataReceiver(ChannelDataReceiver
The receiver)ChannelDataReceiver instanceFor |
| public void | setExtendedDataWriter(ChannelDataReceiver
The extendedDataWriter)ChannelDataReceiver.A special Note by default any such data sent to the channel session causes an exception, but specific implementations may choose to register such a receiver (e.g., for custom usage of the STDERR stream). |
| asyncErr | back to summary |
|---|---|
| protected ChannelAsyncOutputStream asyncErr | |
| asyncOut | back to summary |
|---|---|
| protected ChannelAsyncOutputStream asyncOut | |
| commandExitFuture | back to summary |
|---|---|
| protected final CloseFuture commandExitFuture | |
| commandInstance | back to summary |
|---|---|
| protected Command commandInstance | |
| commandStarted | back to summary |
|---|---|
| protected final AtomicBoolean commandStarted | |
| DEFAULT_HANDLERS | back to summary |
|---|---|
| public static final List<ChannelRequestHandler> DEFAULT_HANDLERS | |
| env | back to summary |
|---|---|
| protected final StandardEnvironment env | |
| err | back to summary |
|---|---|
| protected OutputStream err | |
| extendedDataBuffer | back to summary |
|---|---|
| protected Buffer extendedDataBuffer | |
| extendedDataWriter | back to summary |
|---|---|
| protected ChannelDataReceiver extendedDataWriter | |
| out | back to summary |
|---|---|
| protected OutputStream out | |
| receiver | back to summary |
|---|---|
| protected ChannelDataReceiver receiver | |
| receiverBuffer | back to summary |
|---|---|
| protected Buffer receiverBuffer | |
| type | back to summary |
|---|---|
| protected String type | |
| ChannelSession | back to summary |
|---|---|
| public ChannelSession() | |
| ChannelSession | back to summary |
|---|---|
| public ChannelSession(Collection<? extends RequestHandler<Channel>> handlers) | |
| addEnvVariable | back to summary |
|---|---|
| protected void addEnvVariable(String name, String value) | |
| closeImmediately0 | back to summary |
|---|---|
| protected void closeImmediately0() | |
| closeShell | back to summary |
|---|---|
| protected void closeShell(int exitValue, boolean closeImmediately) throws IOException | |
| doWriteData | back to summary |
|---|---|
| protected void doWriteData(byte[] data, int off, long len) throws IOException Implements abstract org.
| |
| doWriteExtendedData | back to summary |
|---|---|
| protected void doWriteExtendedData(byte[] data, int off, long len) throws IOException Implements abstract org.
| |
| getEnvironment | back to summary |
|---|---|
| public StandardEnvironment getEnvironment() | |
| getInnerCloseable | back to summary |
|---|---|
| protected Closeable getInnerCloseable() Overrides org.
| |
| getPtyModeValue | back to summary |
|---|---|
| protected int getPtyModeValue(PtyMode mode) | |
| getSession | back to summary |
|---|---|
| public ServerSession getSession() Overrides org. Implements org.
| |
| handleAgentForwarding | back to summary |
|---|---|
| protected RequestHandler. | |
| handleAgentForwardingParsed | back to summary |
|---|---|
| protected RequestHandler. | |
| handleBreak | back to summary |
|---|---|
| protected RequestHandler. | |
| handleBreakParsed | back to summary |
|---|---|
| protected RequestHandler. | |
| handleEnv | back to summary |
|---|---|
| protected RequestHandler. | |
| handleEnvParsed | back to summary |
|---|---|
| protected RequestHandler. | |
| handleEof | back to summary |
|---|---|
| public void handleEof() throws IOException Overrides org. Implements org. Doc from org. Invoked when
| |
| handleExec | back to summary |
|---|---|
| protected RequestHandler. | |
| handleExecParsed | back to summary |
|---|---|
| protected RequestHandler. | |
| handleInternalRequest | back to summary |
|---|---|
| protected RequestHandler. Overrides org. Doc from org. Called by
| |
| handlePtyReq | back to summary |
|---|---|
| protected RequestHandler. | |
| handlePtyReqParsed | back to summary |
|---|---|
| protected RequestHandler. | |
| handleShell | back to summary |
|---|---|
| protected RequestHandler. | |
| handleShellParsed | back to summary |
|---|---|
| protected RequestHandler. | |
| handleSignal | back to summary |
|---|---|
| protected RequestHandler. | |
| handleSignalParsed | back to summary |
|---|---|
| protected RequestHandler. | |
| handleSubsystem | back to summary |
|---|---|
| protected RequestHandler. | |
| handleSubsystemParsed | back to summary |
|---|---|
| protected RequestHandler. | |
| handleWindowAdjust | back to summary |
|---|---|
| public void handleWindowAdjust(Buffer buffer) throws IOException Overrides org. Implements org. Doc from org. Invoked when
| |
| handleWindowChange | back to summary |
|---|---|
| protected RequestHandler. | |
| handleWindowChangeParsed | back to summary |
|---|---|
| protected RequestHandler. | |
| handleX11Forwarding | back to summary |
|---|---|
| protected RequestHandler. | |
| handleX11ForwardingParsed | back to summary |
|---|---|
| protected RequestHandler. | |
| isValidXauth | back to summary |
|---|---|
| protected boolean isValidXauth(String auth) | |
| mayWrite | back to summary |
|---|---|
| protected boolean mayWrite() Overrides org.
| |
| prepareChannelCommand | back to summary |
|---|---|
| protected RequestHandler. | |
| prepareCommand | back to summary |
|---|---|
| protected Command prepareCommand(String requestType, Command command) throws IOException Called by
| |
| sendResponse | back to summary |
|---|---|
| protected IoWriteFuture sendResponse(Buffer buffer, String req, RequestHandler. Overrides org.
| |
| setDataReceiver | back to summary |
|---|---|
| public void setDataReceiver(ChannelDataReceiver receiver) For
| |
| setExtendedDataWriter | back to summary |
|---|---|
| public void setExtendedDataWriter(ChannelDataReceiver extendedDataWriter) A special Note by default any such data sent to the channel session causes an exception, but specific
implementations may choose to register such a receiver (e.g., for custom usage of the STDERR stream). A good
place in the code to register such a writer would be in commands that also implement
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addCloseFutureListener(SshFutureListener<CloseFuture>
The notification listener)SshFutureListener - never nullImplements org. Pre-register a listener to be informed when resource is closed. |
| public CloseFuture | close(boolean
true if the resource should be shut down abruptly, false for a
graceful closeImplements org. Close this resource asynchronously and return a future. |
| public boolean | isClosed()
Implements org. Returns |
| public boolean | isClosing()
Implements org. Returns |
| public void | removeCloseFutureListener(SshFutureListener<CloseFuture>
The register listener)SshFutureListener - never null. Ignored if not registered or
resource already closedImplements org. Remove a pre-registered close event listener |
| CommandCloseable | back to summary |
|---|---|
| public CommandCloseable() | |
| addCloseFutureListener | back to summary |
|---|---|
| public void addCloseFutureListener(SshFutureListener<CloseFuture> listener) Implements org. Doc from org. Pre-register a listener to be informed when resource is closed. If resource is already closed, the listener will be invoked immediately and not registered for future notification
| |
| close | back to summary |
|---|---|
| public CloseFuture close(boolean immediately) Implements org. Doc from org. Close this resource asynchronously and return a future. Resources support two closing modes: a graceful mode which will cleanly close the resource and an immediate mode which will close the resources abruptly.
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Implements org. Doc from org. Returns
| |
| isClosing | back to summary |
|---|---|
| public boolean isClosing() Implements org. Doc from org. Returns
| |
| removeCloseFutureListener | back to summary |
|---|---|
| public void removeCloseFutureListener(SshFutureListener<CloseFuture> listener) Implements org. Doc from org. Remove a pre-registered close event listener
| |