org.apache.camel.util
Class ExchangeHelper
java.lang.Object
org.apache.camel.util.ExchangeHelper
public class ExchangeHelper
- extends Object
Some helper methods for working with Exchange
objects
- Version:
- $Revision: 532790 $
Method Summary |
static
|
resolveEndpoint(E exchange,
Object value)
Attempts to resolve the endpoint for the given value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExchangeHelper
public ExchangeHelper()
resolveEndpoint
public static <E extends Exchange> Endpoint<E> resolveEndpoint(E exchange,
Object value)
throws NoSuchEndpointException
- Attempts to resolve the endpoint for the given value
- Parameters:
exchange
- the message exchange being processedvalue
- the value which can be an Endpoint
or an object which provides a String representation
of an endpoint via Object.toString()
- Returns:
- the endpoint
- Throws:
NoSuchEndpointException
- if the endpoint cannot be resolved
Copyright © 2007 Apache Software Foundation. All Rights Reserved.