Package org.apache.sshd.common.channel
Interface ChannelRequestHandler
-
- All Superinterfaces:
RequestHandler<Channel>
- All Known Implementing Classes:
AbstractChannelExitRequestHandler
,AbstractChannelRequestHandler
,ExitSignalChannelRequestHandler
,ExitStatusChannelRequestHandler
,PuttyRequestHandler
public interface ChannelRequestHandler extends RequestHandler<Channel>
- Author:
- Apache MINA SSHD Project
-
-
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 Function<ChannelRequestHandler,RequestHandler<Channel>>
CHANN2HNDLR
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RequestHandler.Result
process(Channel channel, String request, boolean wantReply, Buffer buffer)
Process an SSH request.
-
-
-
Field Detail
-
CHANN2HNDLR
static final Function<ChannelRequestHandler,RequestHandler<Channel>> CHANN2HNDLR
-
-
Method Detail
-
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
-
-