Package org.apache.sshd.server.global
Class NoMoreSessionsHandler
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.session.helpers.AbstractConnectionServiceRequestHandler
-
- org.apache.sshd.server.global.NoMoreSessionsHandler
-
- All Implemented Interfaces:
RequestHandler<ConnectionService>,ConnectionServiceRequestHandler
public class NoMoreSessionsHandler extends AbstractConnectionServiceRequestHandler
Handler for "no-more-sessions@xxx" global request.- Author:
- Apache MINA SSHD Project
- See Also:
- OpenSSH protocol section 2.2
-
-
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 NoMoreSessionsHandlerINSTANCE-
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 NoMoreSessionsHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestHandler.Resultprocess(ConnectionService connectionService, String request, boolean wantReply, Buffer buffer)Process an SSH request.
-
-
-
Field Detail
-
INSTANCE
public static final NoMoreSessionsHandler INSTANCE
-
-
Method Detail
-
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>- Overrides:
processin classAbstractConnectionServiceRequestHandler- 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
-
-