com.ibm.websphere.http.selectors
Class HTTPFunctionSelector
java.lang.Object
com.ibm.websphere.http.selectors.HTTPFunctionSelector
public abstract class HTTPFunctionSelector
- extends java.lang.Object
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.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
HTTPFunctionSelector
public HTTPFunctionSelector()
generateEISFunctionName
public final java.lang.String generateEISFunctionName(java.lang.Object[] args)
throws SelectorException
- Unmarshalls parameters and calls an overloaded generateEISFunctionName() method
with a more intuitive argument list: HTTPControl, HTTPHeaders, and HTTPInputStream.
- 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:
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 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 valuesheaders
- http headersinput
- HTTP input stream containing the http entity body, if any
- Returns:
- The native method name
- Throws:
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.
- Parameters:
bindingContext
- Binding Context.