org.apache.camel
Class Expressions

java.lang.Object
  extended by org.apache.camel.Expressions

public class Expressions
extends Object

Version:
$Revision: $

Constructor Summary
Expressions()
           
 
Method Summary
static
<E extends Exchange>
Expression<E>
constantExpression(Object value)
          Returns an expression for the contant value
static
<E extends Exchange>
Expression<E>
headerExpression(String headerName)
          Returns an expression for the header value with the given name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Expressions

public Expressions()
Method Detail

headerExpression

public static <E extends Exchange> Expression<E> headerExpression(String headerName)
Returns an expression for the header value with the given name

Parameters:
headerName - the name of the header the expression will return
Returns:
an expression object which will return the header value

constantExpression

public static <E extends Exchange> Expression<E> constantExpression(Object value)
Returns an expression for the contant value

Parameters:
value - the value the expression will return
Returns:
an expression object which will return the constant value


Copyright © 2007 Apache Software Foundation. All Rights Reserved.