Package org.apache.camel.non_wrapper.types

Examples of org.apache.camel.non_wrapper.types.GetPersonResponse


                    public void process(Exchange exchange) throws Exception {
                        // just try to turn the payload to the parameter we want
                        // to use
                        GetPerson request = exchange.getIn().getBody(GetPerson.class);

                        GetPersonResponse reply = new GetPersonResponse();
                        reply.setPersonId(request.getPersonId());
                        exchange.getOut().setBody(reply);
                    }

                });
            }
View Full Code Here


        }
    }

    private class AfterProcessor implements Processor {
        public void process(Exchange e) throws Exception {
            GetPersonResponse gpr = new GetPersonResponse();
            gpr.setName("Bill");
            gpr.setPersonId(e.getOut().getBody(String.class));
            gpr.setSsn("Test");

            MessageContentsList mclOut = new MessageContentsList();
            mclOut.set(0, gpr);
            e.getOut().setBody(mclOut, MessageContentsList.class);
        }
View Full Code Here

TOP

Related Classes of org.apache.camel.non_wrapper.types.GetPersonResponse

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.