Package org.apache.sshd.common.session
Interface ConnectionServiceRequestHandler
-
- All Superinterfaces:
RequestHandler<ConnectionService>
- All Known Implementing Classes:
AbstractConnectionServiceRequestHandler
,AbstractOpenSshHostKeysHandler
,CancelTcpipForwardHandler
,KeepAliveHandler
,NoMoreSessionsHandler
,OpenSshHostKeysHandler
,OpenSshHostKeysHandler
,TcpipForwardHandler
public interface ConnectionServiceRequestHandler extends RequestHandler<ConnectionService>
- 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<ConnectionServiceRequestHandler,RequestHandler<ConnectionService>>
SVC2HNDLR
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RequestHandler.Result
process(ConnectionService service, String request, boolean wantReply, Buffer buffer)
Process an SSH request.
-
-
-
Field Detail
-
SVC2HNDLR
static final Function<ConnectionServiceRequestHandler,RequestHandler<ConnectionService>> SVC2HNDLR
-
-
Method Detail
-
process
RequestHandler.Result process(ConnectionService service, 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<ConnectionService>
- Parameters:
service
- 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
-
-