T - Request type@FunctionalInterface public interface RequestHandler<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
RequestHandler.Result |
| Modifier and Type | Method and Description |
|---|---|
RequestHandler.Result |
process(T t,
String request,
boolean wantReply,
Buffer buffer)
Process an SSH request.
|
RequestHandler.Result process(T t, String request, boolean wantReply, Buffer buffer) throws Exception
t - The input parameterrequest - The request stringwantReply - Whether a reply is requestedbuffer - The Buffer with request specific dataRequestHandler.ResultException - If failed to handle the request - Note: in order to signal an unsupported request the
RequestHandler.Result.Unsupported value should be returnedCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.