Package org.apache.camel.attachment
Class CSimpleAttachmentHelper
java.lang.Object
org.apache.camel.attachment.CSimpleAttachmentHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectattachmentContent(org.apache.camel.Exchange exchange, String key) static <T> TattachmentContentAs(org.apache.camel.Exchange exchange, String key, Class<T> type) static StringattachmentContentAsText(org.apache.camel.Exchange exchange, String key) static StringattachmentContentType(org.apache.camel.Exchange exchange, String key) static StringattachmentHeader(org.apache.camel.Exchange exchange, String key, String name) static <T> TattachmentHeaderAs(org.apache.camel.Exchange exchange, String key, String name, Class<T> type) attachments(org.apache.camel.Exchange exchange) static intattachmentsSize(org.apache.camel.Exchange exchange)
-
Constructor Details
-
CSimpleAttachmentHelper
public CSimpleAttachmentHelper()
-
-
Method Details
-
attachments
-
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
-
attachmentHeader
-
attachmentHeaderAs
-