IBM FileNet P8, Version 5.2.1            

SessionHelper

This class 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.

For more information, see the comments in the sample source. The samples are supplied in the Developer samples section of the IBM® FileNet® P8 Platform publication library.

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.



Last updated: October 2015
sessionhelper.htm

© Copyright IBM Corporation 2015.