/** * Author: * xtbj@cn.ibm.com */ import { ICommandHandler, IHandlerParameters, Session } from "@zowe/imperative"; /** * This class is used by the various netview handlers as the base class for their implementation. * All handlers should extend this class whenever possible */ export declare abstract class NVBaseHandler implements ICommandHandler { /** * This will grab the netview profile and create a session before calling the subclass * Same with the process function in base plugin, * Will find a menthod to merge it into base plugin in later roadmap. * {@link NVBaseHandler#processWithSession} method. * * @param {IHandlerParameters} commandParameters Command parameters sent by imperative. * * @returns {Promise} */ process(commandParameters: IHandlerParameters): Promise; /** * This is called by the {@link NVBaseHandler#process} after it creates a session. Should * be used so that every class does not have to instantiate the session object. * * @param {IHandlerParameters} commandParameters Command parameters sent to the handler. * @param {AbstractSession} session The session object generated from the NetView profile. * @param {IProfile} nvProfile The NetView profile that was loaded for the command. * * @returns {Promise} The response from the underlying cics api call. */ abstract processWithSession(commandParameters: IHandlerParameters, session: Session): Promise; }