Class AttachmentExpressionBuilder

java.lang.Object
org.apache.camel.attachment.AttachmentExpressionBuilder

public class AttachmentExpressionBuilder extends Object
  • Constructor Details

    • AttachmentExpressionBuilder

      public AttachmentExpressionBuilder()
  • Method Details

    • attachments

      public static org.apache.camel.Expression attachments()
    • attachmentsSize

      public static org.apache.camel.Expression attachmentsSize()
    • attachmentContent

      public static org.apache.camel.Expression attachmentContent(String key, String type)
    • attachmentContentHeader

      public static org.apache.camel.Expression attachmentContentHeader(String key, String name, String type)
    • attachmentContentType

      public static org.apache.camel.Expression attachmentContentType(String key)
    • attachmentExpression

      public static org.apache.camel.Expression attachmentExpression(String attachmentName)
      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 return
      mandatory - whether the attachment is mandatory and if not present an exception is thrown
      Returns:
      an expression object which will return the attachment value
    • attachmentOgnlExpression

      public static org.apache.camel.Expression attachmentOgnlExpression(String ognl)
      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