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
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 |
---|---|
|
COPYRIGHT
|
Constructor Summary
Constructor and Description |
---|
MQFunctionSelector()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
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.
|
|
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
COPYRIGHT
- public static final java.lang.String COPYRIGHT
See Also:
Constructor Detail
MQFunctionSelector
- public MQFunctionSelector()
Method Detail
generateEISFunctionName
- public final java.lang.String generateEISFunctionName( java.lang.Object[] arg)
- throws commonj.connector.runtime.SelectorException
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
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.