Class SimpleExpressionBuilder

java.lang.Object
org.apache.camel.language.simple.SimpleExpressionBuilder

public final class SimpleExpressionBuilder extends Object
Expression builder used by the simple language.
  • Method Details

    • headersOgnlExpression

      public static org.apache.camel.Expression headersOgnlExpression(String ognl)
      Returns the expression for the exchanges inbound message header invoking methods defined in a simple OGNL notation
      Parameters:
      ognl - methods to invoke on the header in a simple OGNL syntax
    • messageHistoryExpression

      public static org.apache.camel.Expression messageHistoryExpression(boolean detailed)
      Returns the message history (including exchange details or not)
    • collateExpression

      public static org.apache.camel.Expression collateExpression(String expression, int group)
      Returns an iterator to collate (iterate) the given expression
    • skipExpression

      public static org.apache.camel.Expression skipExpression(String expression, int number)
      Returns an iterator to skip (iterate) the given expression
    • joinExpression

      public static org.apache.camel.Expression joinExpression(String expression, String separator, String prefix)
      Joins together the values from the expression
    • randomExpression

      public static org.apache.camel.Expression randomExpression(String min, String max)
      Returns a random number between min and max (exclusive)
    • randomExpression

      public static org.apache.camel.Expression randomExpression(int max)
      Returns a random number between 0 and max (exclusive)
    • randomExpression

      public static org.apache.camel.Expression randomExpression(int min, int max)
      Returns a random number between min and max (exclusive)
    • newEmptyExpression

      public static org.apache.camel.Expression newEmptyExpression(String type)
      Returns a new empty object of the given type
    • uuidExpression

      public static org.apache.camel.Expression uuidExpression(String generator)
      Returns a uuid string based on the given generator (default, classic, short, simple)
    • fileNameExpression

      public static org.apache.camel.Expression fileNameExpression()
    • fileOnlyNameExpression

      public static org.apache.camel.Expression fileOnlyNameExpression()
    • fileNameNoExtensionExpression

      public static org.apache.camel.Expression fileNameNoExtensionExpression()
    • fileNameNoExtensionSingleExpression

      public static org.apache.camel.Expression fileNameNoExtensionSingleExpression()
    • fileOnlyNameNoExtensionExpression

      public static org.apache.camel.Expression fileOnlyNameNoExtensionExpression()
    • fileOnlyNameNoExtensionSingleExpression

      public static org.apache.camel.Expression fileOnlyNameNoExtensionSingleExpression()
    • fileExtensionExpression

      public static org.apache.camel.Expression fileExtensionExpression()
    • fileExtensionSingleExpression

      public static org.apache.camel.Expression fileExtensionSingleExpression()
    • fileParentExpression

      public static org.apache.camel.Expression fileParentExpression()
    • filePathExpression

      public static org.apache.camel.Expression filePathExpression()
    • fileAbsolutePathExpression

      public static org.apache.camel.Expression fileAbsolutePathExpression()
    • fileAbsoluteExpression

      public static org.apache.camel.Expression fileAbsoluteExpression()
    • fileSizeExpression

      public static org.apache.camel.Expression fileSizeExpression()
    • fileLastModifiedExpression

      public static org.apache.camel.Expression fileLastModifiedExpression()
    • dateExpression

      public static org.apache.camel.Expression dateExpression(String command)
    • dateExpression

      public static org.apache.camel.Expression dateExpression(String command, String pattern)
    • dateExpression

      public static org.apache.camel.Expression dateExpression(String commandWithOffsets, String timezone, String pattern)
    • skipIteratorExpression

      public static org.apache.camel.Expression skipIteratorExpression(org.apache.camel.Expression expression, int skip)
    • nullExpression

      public static org.apache.camel.Expression nullExpression()
      Returns the expression for the null value
    • mandatoryBodyOgnlExpression

      public static org.apache.camel.Expression mandatoryBodyOgnlExpression(String name, String ognl)
      Returns the expression for the exchanges inbound message body converted to the given type and invoking methods on the converted body defined in a simple OGNL notation
    • mandatoryBodyExpression

      public static org.apache.camel.Expression mandatoryBodyExpression(String name)
      Returns the expression for the exchanges inbound message body converted to the given type
    • messageOgnlExpression

      public static org.apache.camel.Expression messageOgnlExpression(String name, String ognl)
      Returns the expression for the message converted to the given type and invoking methods on the converted message defined in a simple OGNL notation
    • bodyOgnlExpression

      public static org.apache.camel.Expression bodyOgnlExpression(String name, String ognl)
      Returns the expression for the exchanges inbound message body converted to the given type and invoking methods on the converted body defined in a simple OGNL notation
    • exchangeOgnlExpression

      public static org.apache.camel.Expression exchangeOgnlExpression(String ognl)
      Returns the expression for the exchange invoking methods defined in a simple OGNL notation
      Parameters:
      ognl - methods to invoke on the exchange in a simple OGNL syntax
    • camelContextOgnlExpression

      public static org.apache.camel.Expression camelContextOgnlExpression(String ognl)
      Returns the expression for the exchanges camelContext invoking methods defined in a simple OGNL notation
      Parameters:
      ognl - methods to invoke on the context in a simple OGNL syntax
    • bodyOgnlExpression

      public static org.apache.camel.Expression bodyOgnlExpression(String ognl)
      Returns the expression for the exchanges inbound message body invoking methods defined in a simple OGNL notation
      Parameters:
      ognl - methods to invoke on the body in a simple OGNL syntax
    • cacheExpression

      public static org.apache.camel.Expression cacheExpression(org.apache.camel.Expression expression)
      Returns an expression that caches the evaluation of another expression and returns the cached value, to avoid re-evaluating the expression.
      Parameters:
      expression - the target expression to cache
      Returns:
      the cached value
    • typeExpression

      public static org.apache.camel.Expression typeExpression(String name)
      Returns an expression for a type value
      Parameters:
      name - the type name
      Returns:
      an expression object which will return the type value
    • propertyOgnlExpression

      public static org.apache.camel.Expression propertyOgnlExpression(String ognl)
      Returns an expression for the property value of exchange with the given name invoking methods defined in a simple OGNL notation
      Parameters:
      ognl - methods to invoke on the property in a simple OGNL syntax
    • exchangeExceptionOgnlExpression

      public static org.apache.camel.Expression exchangeExceptionOgnlExpression(String ognl)
      Returns the expression for the exchanges exception invoking methods defined in a simple OGNL notation
      Parameters:
      ognl - methods to invoke on the body in a simple OGNL syntax