SessionHelper

This is a helper class for other samples. This sample demonstrates how to implement reusable session-specific methods (logon and logoff) that can be accessed by other classes or applications.

Refer to the comments in the sample source for further information. The samples are located on the P8 Documentation CD or ESD image in:

   ecm_help\developer_help\process_java_api\Developer Files\samples\api

See also Running the API Samples.

Methods

General descriptions of the SessionHelper methods follow:

SessionHelper()

The constructor initializes variables for the user name, password, connectionPoint_URL specification, and the logger object. These variables are used by the logon method.

logon()

The logon method invokes VWSession.logon with the variables set by the SessionHelper constructor, and checks for errors.

logoff()

The logoff method invokes VWSession.logoff and checks for errors. It can either log exceptions or print a stack trace.