com.ibm.websphere.dhframework.faults
Interface FaultSelector
All Superinterfaces:
commonj.connector.runtime.BindingContext, java.io.Serializable
- public interface FaultSelector
- extends commonj.connector.runtime.BindingContext
Nested Class Summary
Modifier and Type | Interface and Description |
---|---|
|
FaultSelector.ResponseType
|
Field Summary
Modifier and Type | Field and Description |
---|---|
|
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 |
---|---|
|
getFaultName(java.lang.Object source)
Gets the native fault name from the headers from the context or from the
source Object
|
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
COPYRIGHT
- static final java.lang.String COPYRIGHT
See Also:
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.