Package org.apache.sshd.common.channel
Interface ChannelRequestHandler
- All Superinterfaces:
RequestHandler<Channel>
- All Known Implementing Classes:
AbstractChannelExitRequestHandler
,AbstractChannelRequestHandler
,ExitSignalChannelRequestHandler
,ExitStatusChannelRequestHandler
,PuttyRequestHandler
- Author:
- Apache MINA SSHD Project
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.sshd.common.channel.RequestHandler
RequestHandler.Result
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Function<ChannelRequestHandler,
RequestHandler<Channel>> -
Method Summary
Modifier and TypeMethodDescriptionProcess an SSH request.
-
Field Details
-
CHANN2HNDLR
-
-
Method Details
-
process
RequestHandler.Result process(Channel channel, String request, boolean wantReply, Buffer buffer) throws Exception Description copied from interface:RequestHandler
Process an SSH request. If an exception is thrown, the ConnectionService will send a failure message if needed and the request will be considered handled.- Specified by:
process
in interfaceRequestHandler<Channel>
- Parameters:
channel
- The input parameterrequest
- The request stringwantReply
- Whether a reply is requestedbuffer
- TheBuffer
with request specific data- Returns:
- The
RequestHandler.Result
- Throws:
Exception
- If failed to handle the request - Note: in order to signal an unsupported request theRequestHandler.Result.Unsupported
value should be returned
-