com.ibm.websphere.http.selectors

Class HTTPFunctionSelector

  1. java.lang.Object
  2. extended bycom.ibm.websphere.http.selectors.HTTPFunctionSelector
All implemented interfaces:
commonj.connector.runtime.BindingContext, commonj.connector.runtime.FunctionSelector, java.io.Serializable

  1. public abstract class HTTPFunctionSelector
  2. extends java.lang.Object
  3. implements commonj.connector.runtime.FunctionSelector, commonj.connector.runtime.BindingContext
A helper class which makes it easier to write FunctionSelectors for use with HTTP Exports. The commonj.connection.runtime.FunctionSelector interface provides a single method which takes an array of arbitrary objects as a solitary argument. HTTPFunctionSelector implements this method by calling an abstract method with a more descriptive argument list. An implementation of HTTPFunctionSelector will implement the new abstract method with the descriptive argument list.
See Also:
Serialized Form

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT
Fields inherited from interface commonj.connector.runtime.BindingContext
BINDING_COMMUNICATION, BINDING_COMMUNICATION_INBOUND, BINDING_COMMUNICATION_OUTBOUND, BINDING_CONFIGURATION, BINDING_INVOCATION, BINDING_INVOCATION_FAULT, BINDING_INVOCATION_REQUEST, BINDING_INVOCATION_RESPONSE, BINDING_NAME, BINDING_REGISTRY, BINDING_TYPE, BINDING_TYPE_EIS, BINDING_TYPE_HTTP, BINDING_TYPE_JMS, EXPECTED_TYPE, INTERACTION_SPEC

Constructor Summary

Constructor and Description
HTTPFunctionSelector()

Method Summary

Modifier and Type Method and Description
  1. abstract
  2. java.lang.String
generateEISFunctionName(HTTPControl cp,HTTPHeaders headers,HTTPInputStream input)
A more descriptive HTTP-specific method to extract a native method name using the FunctionSelector interface.
  1. java.lang.String
generateEISFunctionName(java.lang.Object[] args)
Unmarshalls parameters and calls an overloaded generateEISFunctionName() method with a more intuitive argument list: HTTPControl, HTTPHeaders, and HTTPInputStream.
  1. void
setBindingContext(java.util.Map bindingContext)
Set Binding Context on the Data Binding.
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

HTTPFunctionSelector

  1. public HTTPFunctionSelector()

Method Detail

generateEISFunctionName

  1. public final java.lang.String generateEISFunctionName( java.lang.Object[] args)
  2. throws commonj.connector.runtime.SelectorException
Unmarshalls parameters and calls an overloaded generateEISFunctionName() method with a more intuitive argument list: HTTPControl, HTTPHeaders, and HTTPInputStream.
Specified by:
generateEISFunctionName in interface commonj.connector.runtime.FunctionSelector
Parameters:
args - HTTP binding objects. args[0] is instance of HTTPControl, args[1] is instance of HTTPHeaders, arg[2] is instance of HTTPInputStream.
Returns:
The native method name
Throws:
commonj.connector.runtime.SelectorException - Thrown if input is invalid or native method cannot be determined

generateEISFunctionName

  1. public abstract java.lang.String generateEISFunctionName( HTTPControl cp,
  2. HTTPHeaders headers,
  3. HTTPInputStream input)
  4. throws commonj.connector.runtime.SelectorException
A more descriptive HTTP-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 HTTP message by extracting the relevant data from the provided HTTP-centric parameters.
Parameters:
cp - control parameters containing addition http header values
headers - http headers
input - HTTP input stream containing the http entity body, if any
Returns:
The native method name
Throws:
commonj.connector.runtime.SelectorException - Thrown if input is invalid or native method cannot be determined

setBindingContext

  1. public void setBindingContext(java.util.Map bindingContext)
Set Binding Context on the Data Binding.
Specified by:
setBindingContext in interface commonj.connector.runtime.BindingContext
Parameters:
bindingContext - Binding Context.