Package org.apache.sshd.common.channel
Interface RequestHandler<T>
-
- Type Parameters:
T- Request type
- All Known Subinterfaces:
ChannelRequestHandler,ConnectionServiceRequestHandler
- All Known Implementing Classes:
AbstractChannelExitRequestHandler,AbstractChannelRequestHandler,AbstractConnectionServiceRequestHandler,AbstractOpenSshHostKeysHandler,AbstractRequestHandler,CancelTcpipForwardHandler,ExitSignalChannelRequestHandler,ExitStatusChannelRequestHandler,KeepAliveHandler,NoMoreSessionsHandler,OpenSshHostKeysHandler,OpenSshHostKeysHandler,PuttyRequestHandler,TcpipForwardHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface RequestHandler<T>
A global request handler.- Author:
- Apache MINA SSHD Project
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRequestHandler.Result
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RequestHandler.Resultprocess(T t, String request, boolean wantReply, Buffer buffer)Process an SSH request.
-
-
-
Method Detail
-
process
RequestHandler.Result process(T t, String request, boolean wantReply, Buffer buffer) throws Exception
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.- Parameters:
t- The input parameterrequest- The request stringwantReply- Whether a reply is requestedbuffer- TheBufferwith 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.Unsupportedvalue should be returned
-
-