process
public RequestHandler.Result process(ConnectionService connectionService,
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.
- Specified by:
process
in interface RequestHandler<ConnectionService>
- Specified by:
process
in interface ConnectionServiceRequestHandler
- Overrides:
process
in class AbstractConnectionServiceRequestHandler
- Parameters:
connectionService
- The input parameter
request
- The request string
wantReply
- Whether a reply is requested
buffer
- The Buffer
with request specific data
- Returns:
- The
RequestHandler.Result
- Throws:
Exception
- If failed to handle the request - Note: in
order to signal an unsupported request the RequestHandler.Result.Unsupported
value should be returned