Class AbstractConnectionServiceRequestHandler
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.session.helpers.AbstractConnectionServiceRequestHandler
- All Implemented Interfaces:
RequestHandler<ConnectionService>,ConnectionServiceRequestHandler
- Direct Known Subclasses:
AbstractOpenSshHostKeysHandler,CancelTcpipForwardHandler,KeepAliveHandler,NoMoreSessionsHandler,TcpipForwardHandler
public abstract class AbstractConnectionServiceRequestHandler
extends AbstractLoggingBean
implements ConnectionServiceRequestHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.sshd.common.channel.RequestHandler
RequestHandler.Result -
Field Summary
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
logFields inherited from interface org.apache.sshd.common.session.ConnectionServiceRequestHandler
SVC2HNDLR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess(ConnectionService connectionService, String request, boolean wantReply, Buffer buffer) Process an SSH request.
-
Constructor Details
-
AbstractConnectionServiceRequestHandler
protected AbstractConnectionServiceRequestHandler()
-
-
Method Details
-
process
public RequestHandler.Result process(ConnectionService connectionService, String request, boolean wantReply, Buffer buffer) throws Exception Description copied from interface:RequestHandlerProcess 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:
processin interfaceConnectionServiceRequestHandler- Specified by:
processin interfaceRequestHandler<ConnectionService>- Parameters:
connectionService- 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
-