org.apache.camel.util
Class ExchangeHelper

java.lang.Object
  extended by org.apache.camel.util.ExchangeHelper

public class ExchangeHelper
extends Object

Some helper methods for working with Exchange objects

Version:
$Revision: 532790 $

Constructor Summary
ExchangeHelper()
           
 
Method Summary
static
<E extends Exchange>
Endpoint<E>
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
 

Constructor Detail

ExchangeHelper

public ExchangeHelper()
Method Detail

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 processed
value - 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.