public class TcpipForwardHandler extends AbstractConnectionServiceRequestHandler
RequestHandler.Result
Modifier and Type | Field and Description |
---|---|
static TcpipForwardHandler |
INSTANCE |
static String |
REQUEST |
static Int2IntFunction |
RESPONSE_BUFFER_GROWTH_FACTOR
Default growth factor function used to resize response buffers
|
log
SVC2HNDLR
Constructor and Description |
---|
TcpipForwardHandler() |
Modifier and Type | Method and Description |
---|---|
RequestHandler.Result |
process(ConnectionService connectionService,
String request,
boolean wantReply,
Buffer buffer)
Process an SSH request.
|
public static final String REQUEST
public static final Int2IntFunction RESPONSE_BUFFER_GROWTH_FACTOR
public static final TcpipForwardHandler INSTANCE
public RequestHandler.Result process(ConnectionService connectionService, String request, boolean wantReply, Buffer buffer) throws Exception
RequestHandler
process
in interface RequestHandler<ConnectionService>
process
in interface ConnectionServiceRequestHandler
process
in class AbstractConnectionServiceRequestHandler
connectionService
- The input parameterrequest
- The request stringwantReply
- Whether a reply is requestedbuffer
- The Buffer
with request specific dataRequestHandler.Result
Exception
- If failed to handle the request - Note: in
order to signal an unsupported request the RequestHandler.Result.Unsupported
value should be returnedCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.