com.ibm.connectors

Class AbstractRequestConnector

  • java.lang.Object
    • com.ibm.connectors.AbstractRequestConnector
  • All Implemented Interfaces:
    Connector, RequestConnector


    public abstract class AbstractRequestConnector
    extends java.lang.Object
    implements RequestConnector
    Provides an empty RequestConnector implementation for extenders to fill in with provider-specific code.
    • Constructor Detail

      • AbstractRequestConnector

        public AbstractRequestConnector()
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: Connector
        Returns the name allocated by the runtime to this connector when it was initialsed.
        Specified by:
        getName in interface Connector
        Returns:
        the name of the connector
        See Also:
        Connector.getName()
      • getProperties

        public java.util.Properties getProperties()
        Description copied from interface: Connector
        Returns the properties object passed to connector when it was initialised
        Specified by:
        getProperties in interface Connector
        Returns:
        the connector's properties
        See Also:
        Connector.getProperties()
      • getProperty

        public java.lang.String getProperty(java.lang.String name)
        Utility method to return a property of a particular name
        Parameters:
        name - property name
        Returns:
        property value
      • getCallback

        public ConnectorCallback getCallback()
        Description copied from interface: Connector
        Returns a callback object that the connector can use to feed data and results back to the host application. Used mainly for event input, and the results of asynchronous output/request.
        Specified by:
        getCallback in interface Connector
        Returns:
        the application callback
        See Also:
        Connector.getCallback()
      • getLogger

        public java.util.logging.Logger getLogger()
        Description copied from interface: Connector
        Returns a java.util.Logger which uses the connector's name, to enable the connector to log to the host application's logging mechanism
        Specified by:
        getLogger in interface Connector
        Returns:
        the connector's assigned logger object
        See Also:
        Connector.getLogger()
      • onInitialise

        protected void onInitialise()
                             throws java.lang.Exception
        Method called after initialisation state has been saved. Connectors may use this method to initialise themselves as needed.
        Throws:
        java.lang.Exception
IBM TM
CommonTM Connector API