Package org.apache.camel.attachment
Class AttachmentExpressionBuilder
java.lang.Object
org.apache.camel.attachment.AttachmentExpressionBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.camel.ExpressionattachmentContent(String key, String type) static org.apache.camel.ExpressionattachmentContentHeader(String key, String name, String type) static org.apache.camel.Expressionstatic org.apache.camel.ExpressionattachmentExpression(String attachmentName) Returns an expression for the attachment value of exchange with the given namestatic org.apache.camel.ExpressionattachmentExpression(org.apache.camel.Expression attachmentName, boolean mandatory) Returns an expression for the attachment value of exchange with the given namestatic org.apache.camel.ExpressionReturns an expression for the attachment value of exchange with the given name invoking methods defined in a simple OGNL notationstatic org.apache.camel.Expressionstatic org.apache.camel.Expression
-
Constructor Details
-
AttachmentExpressionBuilder
public AttachmentExpressionBuilder()
-
-
Method Details
-
attachments
public static org.apache.camel.Expression attachments() -
attachmentsSize
public static org.apache.camel.Expression attachmentsSize() -
attachmentContent
-
attachmentContentHeader
-
attachmentContentType
-
attachmentExpression
Returns an expression for the attachment value of exchange with the given name- Parameters:
attachmentName- the name of the attachment the expression will return- Returns:
- an expression object which will return the property value
-
attachmentExpression
public static org.apache.camel.Expression attachmentExpression(org.apache.camel.Expression attachmentName, boolean mandatory) Returns an expression for the attachment value of exchange with the given name- Parameters:
attachmentName- the name of the attachment the expression will returnmandatory- whether the attachment is mandatory and if not present an exception is thrown- Returns:
- an expression object which will return the attachment value
-
attachmentOgnlExpression
Returns an expression for the attachment value of exchange with the given name invoking methods defined in a simple OGNL notation- Parameters:
ognl- methods to invoke on the attachment in a simple OGNL syntax
-