com.ibm.websphere.http.selectors

Class HTTPFunctionSelector

  • java.lang.Object
    • com.ibm.websphere.http.selectors.HTTPFunctionSelector
  • All Implemented Interfaces:
    commonj.connector.runtime.BindingContext, commonj.connector.runtime.FunctionSelector, java.io.Serializable


    public abstract class HTTPFunctionSelector
    extends java.lang.Object
    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

      Fields 
      Modifier and Type Field and Description
      static 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
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      abstract 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.
      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.
      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
    • Constructor Detail

      • HTTPFunctionSelector

        public HTTPFunctionSelector()
    • Method Detail

      • generateEISFunctionName

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

        public abstract java.lang.String generateEISFunctionName(HTTPControl cp,
                                               HTTPHeaders headers,
                                               HTTPInputStream input)
                                                          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

        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.
IBM Business Process ManagerTM
Release 8