com.ibm.websphere.dhframework.faults

Interface FaultSelector

  • All Superinterfaces:
    commonj.connector.runtime.BindingContext, java.io.Serializable


    public interface FaultSelector
    extends commonj.connector.runtime.BindingContext
    A Fault Selector that determines if the input data is a business fault, runtime fault or a normal response. It also determines the native fault name.
    • 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
      java.lang.String getFaultName(java.lang.Object source)
      Gets the native fault name from the headers from the context or from the source Object
      FaultSelector.ResponseType getResponseType(java.lang.Object source)
      This method looks at the source object or headers from the context to determine if the response is fault or not.
      • Methods inherited from interface commonj.connector.runtime.BindingContext

        setBindingContext
    • Method Detail

      • getResponseType

        FaultSelector.ResponseType getResponseType(java.lang.Object source)
        This method looks at the source object or headers from the context to determine if the response is fault or not.
        Parameters:
        source - This can be of type InputStream, Reader or Java Object like an exception Object.
        Returns:
        Whether the response is a normal response, business fault or runtime exception.
      • getFaultName

        java.lang.String getFaultName(java.lang.Object source)
        Gets the native fault name from the headers from the context or from the source Object
        Parameters:
        source - This can be either InputStream, Reader or Java Object like an Exception Object
        Returns:
        The native fault name.
IBM Business Process ManagerTM
Release 8