public class AttachmentWrapper
extends org.apache.camel.impl.DefaultAttachment
Constructor and Description |
---|
AttachmentWrapper(DataHandler dh) |
AttachmentWrapper(DataSource ds) |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String headerName,
String headerValue) |
DataHandler |
getDataHandler() |
String |
getHeader(String name) |
List<String> |
getHeaderAsList(String name) |
Collection<String> |
getHeaderNames() |
void |
removeHeader(String headerName) |
void |
setHeader(String headerName,
String headerValue) |
public AttachmentWrapper(DataHandler dh)
public AttachmentWrapper(DataSource ds)
public DataHandler getDataHandler()
getDataHandler
in interface org.apache.camel.Attachment
getDataHandler
in class org.apache.camel.impl.DefaultAttachment
public String getHeader(String name)
getHeader
in interface org.apache.camel.Attachment
getHeader
in class org.apache.camel.impl.DefaultAttachment
public List<String> getHeaderAsList(String name)
getHeaderAsList
in interface org.apache.camel.Attachment
getHeaderAsList
in class org.apache.camel.impl.DefaultAttachment
public void addHeader(String headerName, String headerValue)
addHeader
in interface org.apache.camel.Attachment
addHeader
in class org.apache.camel.impl.DefaultAttachment
public void setHeader(String headerName, String headerValue)
setHeader
in interface org.apache.camel.Attachment
setHeader
in class org.apache.camel.impl.DefaultAttachment
public void removeHeader(String headerName)
removeHeader
in interface org.apache.camel.Attachment
removeHeader
in class org.apache.camel.impl.DefaultAttachment
public Collection<String> getHeaderNames()
getHeaderNames
in interface org.apache.camel.Attachment
getHeaderNames
in class org.apache.camel.impl.DefaultAttachment
Copyright © 2020 SAP. All Rights Reserved.