Package com.drighetto.essai.axis2.services

Source Code of com.drighetto.essai.axis2.services.SimpleService

package com.drighetto.essai.axis2.services;

import com.dom.PersonCompiled;

/**
* Simple web service
*
* @author Dominique RIGHETTO<br>
*         22 avr. 07<br>
*/
@SuppressWarnings("boxing")
public class SimpleService {

  /**
   * Simple message service
   *
   * @author Dominique RIGHETTO<br>
   *         22 avr. 07<br>
   * @param msg
   *            Message
   * @return Message
   */
  public String writeMessage(String msg) {
    return "Hello ".concat(msg);
  }

  /**
   * Simple message service
   *
   * @author Dominique RIGHETTO<br>
   *         4 mai 07<br>
   * @param p
   * @return String data
   */
  public String getPersonDataV1(Person p) {
    return "NAME : " + p.getName() + " - AGE : " + p.getAge();
  }

  /**
   * Simple message service
   *
   * @author Dominique RIGHETTO<br>
   *         4 mai 07<br>
   * @param pc
   * @return String data
   */
  public String getPersonDataV2(PersonCompiled pc) {
    return "NAME : " + pc.getName() + " - AGE : " + pc.getAge();
  }

  /**
   * Simple message service
   *
   * @author Dominique RIGHETTO<br>
   *         4 mai 07<br>
   * @param p
   * @return String data
   */
  public PersonCompiled getPersonCompiled(Person p) {
    return new PersonCompiled(p.getName(), p.getAge());
  }

  /**
   * Simple message service
   *
   * @author Dominique RIGHETTO<br>
   *         4 mai 07<br>
   * @param pc
   * @return String data
   */
  public Person getPerson(PersonCompiled pc) {
    return new Person(pc.getName(), pc.getAge());
  }

}
TOP

Related Classes of com.drighetto.essai.axis2.services.SimpleService

TOP
Copyright © 2018 www.massapi.com. 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.