com.ibm.websphere.sca.mq.selector

Class MQFunctionSelector

  1. java.lang.Object
  2. extended bycom.ibm.websphere.sca.mq.selector.MQFunctionSelector
All implemented interfaces:
commonj.connector.runtime.FunctionSelector

  1. public abstract class MQFunctionSelector
  2. extends java.lang.Object
  3. 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

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT

Constructor Summary

Constructor and Description
MQFunctionSelector()

Method Summary

Modifier and Type Method and Description
  1. abstract
  2. 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.
  1. 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

Field Detail

  1. public static final java.lang.String COPYRIGHT
See Also:

Constructor Detail

MQFunctionSelector

  1. public MQFunctionSelector()

Method Detail

generateEISFunctionName

  1. public final java.lang.String generateEISFunctionName( java.lang.Object[] arg)
  2. 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

  1. public abstract java.lang.String generateEISFunctionName( MQMD md,
  2. java.lang.String bodyFormat,
  3. java.util.List headers,
  4. MQDataInputStream input)
  5. throws java.io.IOException
  6. 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