org.switchyard.quickstarts.demos.orders
Class ExchangeInterceptor
java.lang.Object
org.switchyard.quickstarts.demos.orders.ExchangeInterceptor
- All Implemented Interfaces:
- org.switchyard.ExchangeHandler
public class ExchangeInterceptor
- extends Object
- implements org.switchyard.ExchangeHandler
Method Summary |
protected String |
getMessageContent(org.switchyard.Exchange exchange)
This method returns a string representation of the
message content, or null if no available. |
void |
handleFault(org.switchyard.Exchange exchange)
|
void |
handleMessage(org.switchyard.Exchange exchange)
|
protected void |
init()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExchangeInterceptor
public ExchangeInterceptor()
init
@PostConstruct
protected void init()
handleMessage
public void handleMessage(org.switchyard.Exchange exchange)
throws org.switchyard.HandlerException
- Specified by:
handleMessage
in interface org.switchyard.ExchangeHandler
- Throws:
org.switchyard.HandlerException
handleFault
public void handleFault(org.switchyard.Exchange exchange)
- Specified by:
handleFault
in interface org.switchyard.ExchangeHandler
getMessageContent
protected String getMessageContent(org.switchyard.Exchange exchange)
- This method returns a string representation of the
message content, or null if no available.
- Parameters:
exchange
- The exchange
- Returns:
- The string representation, or null if not possible
Copyright © 2012. All Rights Reserved.