Class ExitStatusChannelRequestHandler
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.channel.AbstractRequestHandler<Channel>
-
- org.apache.sshd.common.channel.AbstractChannelRequestHandler
-
- org.apache.sshd.client.channel.exit.AbstractChannelExitRequestHandler<Integer>
-
- org.apache.sshd.client.channel.exit.ExitStatusChannelRequestHandler
-
- All Implemented Interfaces:
ChannelRequestHandler,RequestHandler<Channel>,NamedResource
public class ExitStatusChannelRequestHandler extends AbstractChannelExitRequestHandler<Integer>
- Author:
- Apache MINA SSHD Project
- See Also:
- RFC4254 section 6.10
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.sshd.common.channel.RequestHandler
RequestHandler.Result
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAME-
Fields inherited from class org.apache.sshd.client.channel.exit.AbstractChannelExitRequestHandler
holder, notifier
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Fields inherited from interface org.apache.sshd.common.channel.ChannelRequestHandler
CHANN2HNDLR
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Constructor Summary
Constructors Constructor Description ExitStatusChannelRequestHandler(AtomicReference<Integer> holder, EventNotifier<? super String> notifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()protected IntegerprocessRequestValue(Channel channel, int exitStatus)protected IntegerprocessRequestValue(Channel channel, String request, Buffer buffer)Invoked by default fromAbstractChannelExitRequestHandler.process(Channel, String, boolean, Buffer)when a request matching the handler's name is received-
Methods inherited from class org.apache.sshd.client.channel.exit.AbstractChannelExitRequestHandler
getEvent, notifyStateChanged, process
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExitStatusChannelRequestHandler
public ExitStatusChannelRequestHandler(AtomicReference<Integer> holder, EventNotifier<? super String> notifier)
-
-
Method Detail
-
getName
public final String getName()
-
processRequestValue
protected Integer processRequestValue(Channel channel, String request, Buffer buffer) throws Exception
Description copied from class:AbstractChannelExitRequestHandlerInvoked by default fromAbstractChannelExitRequestHandler.process(Channel, String, boolean, Buffer)when a request matching the handler's name is received- Specified by:
processRequestValuein classAbstractChannelExitRequestHandler<Integer>- Parameters:
channel- TheChannelthrough which the request was receivedrequest- The received request - Note: guaranteed to match the handler's name if invoked fromAbstractChannelExitRequestHandler.process(Channel, String, boolean, Buffer)buffer- The receivedBufferfor extracting the data- Returns:
- The extracted data - if
nullthen request is ignored andUnsupportedis returned - Throws:
Exception- If failed to process the received request buffer
-
-