This class is used by the various handlers in the project as the base class for their implementation.

### Hierarchy

- ZosmfBaseHandler

### Implements

- any

## Index

### Properties

- mArguments
- mHandlerParams
- mSession

### Accessors

- console
- data
- format
- progress

### Methods

- fail
- process
- processCmd

## Properties

### Protected mArguments

mArguments: ICommandArguments

- Defined in @zowe/zosmf-for-zowe-sdk/src/ZosmfBaseHandler.ts:42

Command line arguments passed

### Protected mHandlerParams

mHandlerParams: IHandlerParameters

- Defined in @zowe/zosmf-for-zowe-sdk/src/ZosmfBaseHandler.ts:47

Full set of command handler parameters from imperative

### Protected mSession

mSession: AbstractSession

- Defined in @zowe/zosmf-for-zowe-sdk/src/ZosmfBaseHandler.ts:37

The session creating from the command line arguments / profile

## Accessors

### console

- get console(): IHandlerResponseConsoleApi

- - Defined in @zowe/zosmf-for-zowe-sdk/src/ZosmfBaseHandler.ts:86

  Returns the console interface for the command handler

  #### Returns IHandlerResponseConsoleApi

### data

- get data(): IHandlerResponseDataApi

- - Defined in @zowe/zosmf-for-zowe-sdk/src/ZosmfBaseHandler.ts:102

  Returns the format interface for the command handler

  #### Returns IHandlerResponseDataApi

### format

- get format(): IHandlerFormatOutputApi

- - Defined in @zowe/zosmf-for-zowe-sdk/src/ZosmfBaseHandler.ts:94

  Returns the format interface for the command handler

  #### Returns IHandlerFormatOutputApi

### progress

- get progress(): IHandlerProgressApi

- - Defined in @zowe/zosmf-for-zowe-sdk/src/ZosmfBaseHandler.ts:110

  Returns the format interface for the command handler

  #### Returns IHandlerProgressApi

## Methods

### fail

- fail(err: IImperativeError): void

- - Defined in @zowe/zosmf-for-zowe-sdk/src/ZosmfBaseHandler.ts:78

  Fail the command with an imperative error

  #### Parameters

  - ##### err: IImperativeError

    the imperative error parameters

  #### Returns void

### process

- process(commandParameters: IHandlerParameters): Promise<void>

- - Defined in @zowe/zosmf-for-zowe-sdk/src/ZosmfBaseHandler.ts:57

  This will grab the arguments and create a session before calling the subclass {@link ZosmfBaseHandler#processWithSession} method.

  #### Parameters

  - ##### commandParameters: IHandlerParameters

    Command parameters sent by imperative.

  #### Returns Promise<void>

### Abstract processCmd

- processCmd(commandParameters: IHandlerParameters): Promise<void>

- - Defined in @zowe/zosmf-for-zowe-sdk/src/ZosmfBaseHandler.ts:120

  This is called by the {@link ZosmfBaseHandler#process} after it creates a session.

  #### Parameters

  - ##### commandParameters: IHandlerParameters

    Command parameters sent to the handler.

  #### Returns Promise<void>

Generated using TypeDoc