Package org.mule.impl

Examples of org.mule.impl.MuleMessage


        Map properties = new HashMap();
        for (Iterator iter = message.getPropertyNames().iterator(); iter.hasNext();) {
            String name = (String) iter.next();
            properties.put(name, message.getProperty(name));
        }
        return new MuleMessage(body, properties);
    }
View Full Code Here


            properties.put(s, message.getProperty(s));
        }
        if (message.getSecuritySubject() != null) {
            properties.put(MuleProperties.MULE_USER_PROPERTY, message.getSecuritySubject());
        }
        return new MuleMessage(source, properties);
    }
View Full Code Here

                    result = getOutMessage(me);
                } catch (NoMessageException noMessageException) {
                    return null;
                }
                done(me);
                return new MuleMessage(new JbiMessageAdapter(result));
            } else {
                getContext().getDeliveryChannel().send(me);

                return null;
            }
View Full Code Here

    public void onMessageExchange(MessageExchangeEvent event) throws MessageExchangeException {
        try {
            if (event.getEventType() == MessageExchangeEvent.IN_RCVD_EVENT) {
                com.fs.pxe.sfwk.spi.MessageExchange me = event.getMessageExchange();
                Message input = me.lastInput();
                result = new MuleMessage(input.getMessage());

            } else if (event.getEventType() == MessageExchangeEvent.OUT_RCVD_EVENT) {
                com.fs.pxe.sfwk.spi.MessageExchange me = event.getMessageExchange();
                Message output = me.lastOutput();
                result = new MuleMessage(output.getMessage());
            } else if (event.getEventType() == MessageExchangeEvent.IN_FAULT_EVENT ||
                    event.getEventType() == MessageExchangeEvent.OUT_FAULT_EVENT) {
                com.fs.pxe.sfwk.spi.MessageExchange me = event.getMessageExchange();
                //todo what needs to be passed in here??
                Message fault = me.lastFault(null);
                result = new MuleMessage(fault.getMessage());
                result.setExceptionPayload(new ExceptionPayload(new Exception("Failed to process PXE Bpel event. See Message payload for details: " + fault.getDescription())));

            }
            lock.countDown();
View Full Code Here

        UMOMessage msg;
        msg = context.getMessage();
        String payload = (String)msg.getPayload();
        String[] strings = payload.split(";");

        msg = new MuleMessage(strings[0]);

        for (int i = 1; i < strings.length; i++)
        {
            msg.addAttachment(strings[i], new DataHandler(new FileDataSource("./src/test/resources/"
                                                                             + strings[i])));
View Full Code Here

TOP

Related Classes of org.mule.impl.MuleMessage

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.