ConnectorBase class

The ConnectorBase class is the base class for a low-level Java connector. It is part of the AppSide_Connector package. From this class, a connector developer must derive a connector class and implement the abstract methods for the connector. This derived class contains the code for the application-specific component of the connector.

Note:
The CWConnectorAgent class is the Java connector library method that is a wrapper for the ConnectorBase class of the low-level Java connector library. Most Java-connector development should use the Java connector library. For more information on the classes of the Java connector library, see Overview of the Java connector library.
Important:
All low-level Java connectors must extend this abstract class, which contains the following abstract methods: init(), getVersion(), getBOHandlerForBO(), pollForEvents(), and terminate(). Developers must provide implementations for these abstract methods.

Table 148 summarizes the methods in the ConnectorBase class.

Table 148.

Member methods of the ConnectorBase class
Member method Description Page
executeCollaboration() Sends business object request to a collaboration. executeCollaboration()
getBOHandlerForBO() Retrieves the handler for a business object. getBOHandlerForBO()
getCollabNames() Retrieves a list of collaboration names that are available to process business object requests. getCollabNames()
getSupportedBusObjNames() Retrieves a list of supported business objects for the connector. getSupportedBusObjNames()
getVersion() Retrieves the version of the application connector. getVersion()
gotApplEvent() Sends a business object to InterChange Server. gotApplEvent()
init() Initializes the connector and establishes a connection with the application. init()
isAgentCapableOfPolling() Determines whether this connector-agent process can perform polling. isAgentCapableOfPolling()
isSubscribed() Checks if subscriptions exist for the business object and verb combination. isSubscribed()
pollForEvents() Polls an application for changes to business objects. pollForEvents()
terminate() Closes the connection with the application and frees allocated resources. terminate()

Copyright IBM Corp. 1997, 2004