View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.module.spring.remoting;
8   
9   /**
10   * A server-side service to receive and process ComplexData.
11   */
12  public class DoSomeWork implements WorkInterface
13  {
14      public String executeByteArray(byte[] input)
15      {
16          return executeString(new String(input));
17      }
18  
19      public String executeString(String input)
20      {
21          return "You said " + input;
22      }
23  
24      public ComplexData executeComplexity(ComplexData input)
25      {
26          input.setSomeString(input.getSomeString() + " Received");
27          input.setSomeInteger(new Integer(input.getSomeInteger().intValue() + 1));
28          return input;
29      }
30  }