com.ibm.websphere.dhframework.faults

Interface FaultSelector

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

  1. public interface FaultSelector
  2. 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.

Nested Class Summary

Modifier and Type Interface and Description
  1. static class
FaultSelector.ResponseType

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

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getFaultName(java.lang.Object source)
Gets the native fault name from the headers from the context or from the source Object
  1. 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

Field Detail

  1. static final java.lang.String COPYRIGHT
See Also:

Method Detail

getResponseType

  1. 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

  1. 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.