Package org.apache.sshd.server.global
Class TcpipForwardHandler
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.session.helpers.AbstractConnectionServiceRequestHandler
-
- org.apache.sshd.server.global.TcpipForwardHandler
-
- All Implemented Interfaces:
RequestHandler<ConnectionService>
,ConnectionServiceRequestHandler
public class TcpipForwardHandler extends AbstractConnectionServiceRequestHandler
Handler for "tcpip-forward" global request.- Author:
- Apache MINA SSHD Project
- See Also:
- RFC4254 section 7
-
-
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 TcpipForwardHandler
INSTANCE
static String
REQUEST
static IntUnaryOperator
RESPONSE_BUFFER_GROWTH_FACTOR
Default growth factor function used to resize response buffers-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Fields inherited from interface org.apache.sshd.common.session.ConnectionServiceRequestHandler
SVC2HNDLR
-
-
Constructor Summary
Constructors Constructor Description TcpipForwardHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestHandler.Result
process(ConnectionService connectionService, String request, boolean wantReply, Buffer buffer)
Process an SSH request.
-
-
-
Field Detail
-
REQUEST
public static final String REQUEST
- See Also:
- Constant Field Values
-
RESPONSE_BUFFER_GROWTH_FACTOR
public static final IntUnaryOperator RESPONSE_BUFFER_GROWTH_FACTOR
Default growth factor function used to resize response buffers
-
INSTANCE
public static final TcpipForwardHandler INSTANCE
-
-
Method Detail
-
process
public RequestHandler.Result process(ConnectionService connectionService, 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 interfaceConnectionServiceRequestHandler
- Specified by:
process
in interfaceRequestHandler<ConnectionService>
- Overrides:
process
in classAbstractConnectionServiceRequestHandler
- Parameters:
connectionService
- 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
-
-