public class ChannelSubsystem extends ChannelSession
AbstractChannel.GracefulChannelCloseable, AbstractChannel.GracefulState
AbstractCloseable.State
ClientChannel.ClientChannelEvent, ClientChannel.Streaming
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_REQUEST_SUBSYSTEM_REPLY
Default value for
REQUEST_SUBSYSTEM_REPLY - according to
RFC4254 section 6.5: |
static String |
REQUEST_SUBSYSTEM_REPLY
Configure whether reply for the "subsystem&quoot; request is required
|
asyncErr, asyncIn, asyncOut, err, exitSignalHolder, exitStatusHolder, in, invertedErr, invertedIn, invertedOut, opened, openFailureLang, openFailureMsg, openFailureReason, openFuture, out, streaming, type
channelListenerProxy, channelListeners, eof, executor, gracefulFuture, gracefulState, handlers, localWindow, remoteWindow, RESPONSE_BUFFER_GROWTH_FACTOR, service, shutdownExecutor
closeFuture, lock, state
log
CHANNEL_EXEC, CHANNEL_SHELL, CHANNEL_SUBSYSTEM
Constructor and Description |
---|
ChannelSubsystem(String subsystem) |
Modifier and Type | Method and Description |
---|---|
protected void |
doOpen() |
String |
getSubsystem()
The subsystem name
|
void |
handleFailure()
Handle channel request failure
|
void |
handleSuccess()
Handle channel request success
|
void |
onClose(Runnable run) |
String |
toString() |
doCloseImmediately, handleInternalRequest, handleXonXoff, pumpInputStream, securedRead
addChannelSignalRequestHandlers, doWriteData, doWriteExtendedData, getAsyncErr, getAsyncIn, getAsyncOut, getErr, getExitSignal, getExitStatus, getIn, getInnerCloseable, getInvertedErr, getInvertedIn, getInvertedOut, getOut, getStreaming, handleOpenFailure, handleOpenSuccess, handleWindowAdjust, open, open, setErr, setIn, setOut, setStreaming, waitFor
addChannelListener, addPendingRequest, addRequestHandler, configureWindow, getChannelListenerProxy, getExecutorService, getId, getLocalWindow, getParentPropertyResolver, getProperties, getRecipient, getRemoteWindow, getSession, handleChannelRequest, handleClose, handleData, handleEof, handleExtendedData, handleRequest, handleUnknownChannelRequest, init, isEofSignalled, isShutdownOnExit, notifyStateChanged, preClose, removeChannelListener, removePendingRequest, sendEof, sendResponse, sendWindowAdjust, setEofSignalled, setExecutorService, setRecipient, setShutdownOnExit, writePacket
doCloseGracefully
builder, close, isClosed, isClosing
close, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
getId, getLocalWindow, getRecipient, getRemoteWindow, getSession, handleClose, handleData, handleEof, handleExtendedData, handleRequest, init
addChannelListener, getChannelListenerProxy, removeChannelListener
getParentPropertyResolver, getProperties
public static final String REQUEST_SUBSYSTEM_REPLY
public static final boolean DEFAULT_REQUEST_SUBSYSTEM_REPLY
Default value for REQUEST_SUBSYSTEM_REPLY
- according to
RFC4254 section 6.5:
It is RECOMMENDED that the reply to these messages be requested and checked.
public ChannelSubsystem(String subsystem)
subsystem
- The subsystem name for the channel - never null
or emptypublic final String getSubsystem()
null
or emptyprotected void doOpen() throws IOException
doOpen
in class ChannelSession
IOException
public void handleSuccess() throws IOException
Channel
handleSuccess
in class AbstractChannel
IOException
- If failed to handlepublic void handleFailure() throws IOException
Channel
handleFailure
in class AbstractChannel
IOException
- If failed to handlepublic void onClose(Runnable run)
public String toString()
toString
in class AbstractChannel
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.