com.ibm.websphere.fabric.da.plugin
Interface ResponseListener
public interface ResponseListener
A Dynamic Assembly plugin that implements the ResponseListener interface can be used
to alter or inspect the response returned from a dynamically invoked service. The plugin
can also be used to manipulate the parent context. Since the parent context is used in
successive dynamic assembly invocations, this provides a mechanism for the response
of one service to affect the behavior of another.
- Version:
- $Id: $
handleResponse
OutboundResponse handleResponse(InboundResponse inbound,
OutboundResponse outbound)
- Allows implementation to inspect the inbound response and return a potentially
modified outbound response. The inbound response argument supplies the invocation context,
the response message body from the target service, and other invocation details. A response
listener implementation may mutate and return the provided outbound response. There are two
ways that the response may be affected:
- Modify the response message in the outbound response.
- Update the parent context in the outbound response.
- Parameters:
inbound
- a non-null InboundResponseoutbound
- a non-null OutboundResponse
- Returns:
- a non-null OutboundResponse
Copyright © 2002-2009 IBM. All Rights Reserved.