Package org.switchyard.common.camel

Examples of org.switchyard.common.camel.HandlerDataSource


            }
            message.getContext().setProperty(header, camelMessage.getHeader(header), Scope.MESSAGE);
        }

        for (String attachmentName : camelMessage.getAttachmentNames()) {
            message.addAttachment(attachmentName, new HandlerDataSource(camelMessage.getAttachment(attachmentName)));
        }
       
        return message;
    }
View Full Code Here


    }

    @Override
    public HandlerDataSource getAttachment(String name) {
        DataHandler attachement = super.getAttachment(name);
        return attachement != null ? new HandlerDataSource(attachement) : null;
    }
View Full Code Here

        return attachement != null ? new HandlerDataSource(attachement) : null;
    }

    @Override
    public void removeAttachment(String name) {
        HandlerDataSource attachment = getAttachment(name);
        if (attachment != null) {
            removeAttachment(name);
        }
    }
View Full Code Here

TOP

Related Classes of org.switchyard.common.camel.HandlerDataSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.