com.ibm.websphere.sca.mq.selector

Class MQFunctionSelector

  • java.lang.Object
    • com.ibm.websphere.sca.mq.selector.MQFunctionSelector
  • All Implemented Interfaces:
    commonj.connector.runtime.FunctionSelector


    public abstract class MQFunctionSelector
    extends java.lang.Object
    implements commonj.connector.runtime.FunctionSelector
    A helper class which makes it easier to write FunctionSelectors for use with WMQ Exports.

    The commonj.connection.runtime.FunctionSelector interface provides a single method which takes an array of arbitrary objects as a solitary argument.

    MQFunctionSelector implements this method by calling an abstract method with a more descriptive argument list. An implementation of MQFunctionSelector will implement the new abstract method with the descriptive argument list.

    See Also:
    FunctionSelector
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      abstract java.lang.String generateEISFunctionName(MQMD md, java.lang.String bodyFormat, java.util.List headers, MQDataInputStream input)
      A more descriptive WMQ-specific method to extract a native method name using the FunctionSelector interface.
      java.lang.String generateEISFunctionName(java.lang.Object[] arg)
      Given an array of arguments, returns the selected native method name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MQFunctionSelector

        public MQFunctionSelector()
    • Method Detail

      • generateEISFunctionName

        public final java.lang.String generateEISFunctionName(java.lang.Object[] arg)
                                                       throws commonj.connector.runtime.SelectorException
        Given an array of arguments, returns the selected native method name.

        This implementation calls the more descriptive, abstract method, and is an implementation of the generateEISFunctionName method from commonj.connector.runtime.FunctionSelector. An implementation of this MQFunctionSelector interface is not required to override this method.

        Specified by:
        generateEISFunctionName in interface commonj.connector.runtime.FunctionSelector
        Returns:
        A string containing the native method name.
        Throws:
        commonj.connector.runtime.SelectorException
        See Also:
        FunctionSelector.generateEISFunctionName(Object[])
      • generateEISFunctionName

        public abstract java.lang.String generateEISFunctionName(MQMD md,
                                               java.lang.String bodyFormat,
                                               java.util.List headers,
                                               MQDataInputStream input)
                                                          throws java.io.IOException,
                                                                 commonj.connector.runtime.SelectorException
        A more descriptive WMQ-specific method to extract a native method name using the FunctionSelector interface.

        Implement this method to provide a native function name from the contents of a WMQ message by extracting the relevant data from the provided WMQ-centric parameters.

        Returns:
        A string containing the native method name.
        Throws:
        java.io.IOException
        commonj.connector.runtime.SelectorException
IBM Business Process ManagerTM
Release 8