|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UndeliverableMessageHandler
Called when the ADK cannot dispatch an inbound message to a message handler.
The ADK does not require that you implement this interface. However, if you
want to customize the default error handling, you can implement this interface
and register your handler with a Zone or the Agent object. This is done by
calling the Zone.setErrorHandler or Agent.setErrorHandler
methods. The class framework attempts to call the zone handler first followed
by the agent handler.
UndeliverableMessageHandler is called in the following situations:
onDispatchError method is invoked.
This condition may arise if you are using topic classes but have not
established a Topic for the SIF data object type associated
with the incoming message.
<SIF_Ack>
<SIF_Error>
<SIF_Category>0</SIF_Category>
<SIF_Code>0</SIF_Code>
<SIF_Desc>The agent does not support this object type</SIF_Desc>
<SIF_ExtendedDesc>BusInfo</SIF_ExtendedDesc>
</SIF_Error>
</SIF_Ack>
| Method Summary | |
|---|---|
boolean |
onDispatchError(SIFMessagePayload message,
Zone zone,
MessageInfo info)
Called when the ADK cannot dispatch a SIF_Event, SIF_Request, or SIF_Response message |
| Method Detail |
|---|
boolean onDispatchError(SIFMessagePayload message,
Zone zone,
MessageInfo info)
throws SIFException
message - The message that failed to dispatchzone - The zone the message was received oninfo - Additional information about the message (e.g. its header fields)
SIFException - If a SIFException is thrown, the ADK returns a SIF_Ack message
to the Zone Integration Server using the error category, error code,
description and extended description provided by the exception.
Otherwise, a success SIF_Ack is returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||