Class CSimpleAttachmentHelper

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

public class CSimpleAttachmentHelper extends Object
  • Constructor Details

    • CSimpleAttachmentHelper

      public CSimpleAttachmentHelper()
  • Method Details

    • attachments

      public static Map<String,jakarta.activation.DataHandler> attachments(org.apache.camel.Exchange exchange)
    • attachmentsSize

      public static int attachmentsSize(org.apache.camel.Exchange exchange)
    • attachmentContent

      public static Object attachmentContent(org.apache.camel.Exchange exchange, String key) throws Exception
      Throws:
      Exception
    • attachmentContentAsText

      public static String attachmentContentAsText(org.apache.camel.Exchange exchange, String key) throws Exception
      Throws:
      Exception
    • attachmentContentAs

      public static <T> T attachmentContentAs(org.apache.camel.Exchange exchange, String key, Class<T> type) throws Exception
      Throws:
      Exception
    • attachmentContentType

      public static String attachmentContentType(org.apache.camel.Exchange exchange, String key)
    • attachmentHeader

      public static String attachmentHeader(org.apache.camel.Exchange exchange, String key, String name)
    • attachmentHeaderAs

      public static <T> T attachmentHeaderAs(org.apache.camel.Exchange exchange, String key, String name, Class<T> type)