Working with Java NE Connection Handlers

The NE Connection Handlers with Java implementation manage the connections with network elements based on the communication parameters in an NE Template.

When implementing Java NE Connection Handlers, see the following topics:

About Java NE Connection Handlers

The Java implementation NE Connection Handler needs to implement the IConnectionHandler interface, which provides a common interface for interacting with connections and requires few methods to be written.

Different types of NE Connection Handlers can be created:

  • Telnet: When you create a new telnet NE Connection Handler, it generates code for telnet connections. This extends the telnet connection to support the interface. The NE Connection Handler editor indicates where additional code is required.

  • Custom: Create this NE Connection Handler if the connections are not telnet. Custom Connection Handlers generate a skeleton to implement the IconnectionHandler and extends the base NE connection class. The NE Connection Handler editor indicates where additional code is required.

Related Topics

Creating New NE Connection Handlers

Generating a Telnet NE Connection Handler Implementation

Generating a Custom NE Connection Handler Implementation

Modeling Entities

Creating New NE Connection Handlers

You use the NE Connection Handler Wizard to create new NE Connection Handler entities.

To create a new NE Connection Handler entity:

  1. Select Studio, select New, select Activation, then select NE Connection Handler.

    The NE Connection Handler Wizard appears.

  2. Select the project for this element and enter a name for the entity.

  3. (Optional) Select a location for the entity.

    By default, Design Studio saves the entity to your default workspace location. You can enter a folder name in the Folder field or select a location different from the system-provided default. To select a different location:

    1. Click the Folder field Browse button.

    2. Navigate to the directory in which to save the entity.

    3. Click OK.

  4. Click Finish to create the NE Connection Handler.

Related Topics

Working with Java NE Connection Handlers

Modeling Entities

Generating a Telnet NE Connection Handler Implementation

You need to generate a Telnet Network Element Connection Handler implementation if you want to extend a telnet connection to support the interface.

To generate a Telnet NE Connection Handler Implementation:

  1. Create an NE Connection Handler with the NE Connection Handler Wizard.

    See "Working with Java NE Connection Handlers" for more information.

  2. In the Studio Projects view, double-click the entity to open the NE Connection Handler editor.

  3. In the editor, enter a description and select Java Connection Handler as the NE Connection Handler type.

  4. Click Add.

    The Vendor, Technology, and Software Load fields are populated.

  5. Click New.

    The Studio Activation Java Connection Handler Wizard appears.

  6. Ensure that Telnet appears in the Connection Type field.

    Note:

    Ensure that a dot does not precede the package name. If a dot precedes the package name, remove it.
  7. Click Finish.

    The code is generated ready for implementation.

    Note:

    The code is generated once but not synchronized (that is, it will not be rewritten and the developer owns the generated class).

Related Topics

Working with Java NE Connection Handlers

Modeling Entities

NE Connection Handler Editor Editor Tab

Generating a Custom NE Connection Handler Implementation

Generate a custom NE Connection Handler implementation if you want to extend the base NE connection class of a connection other than telnet.

To generate a custom NE Connection Handler implementation:

  1. Create an NE Connection Handler with the NE Connection Handler Wizard.

    See "Working with Java NE Connection Handlers" for more information.

  2. In the Studio Projects view, double-click the entity to open the NE Connection Handler editor.

  3. In the editor, enter a description and select Java Connection Handler as the NE Connection Handler type.

  4. Click Add.

    The Vendor, Technology, and Software Load fields are populated.

  5. Click New.

    The Studio Activation Java Connection Handler Wizard appears.

  6. Select Custom in the Connection Type field.

    Note:

    Ensure that a dot does not precede the package name. If a dot precedes the package name, remove it.
  7. Click Finish.

    The code is generated ready for implementation.

    Note:

    The code is generated once but not synchronized (that is, it will not be rewritten and the developer owns the generated class).

Related Topics

Working with Java NE Connection Handlers

Generating a Telnet NE Connection Handler Implementation

Modeling Entities

NE Connection Handler Editor Editor Tab