01: package org.wso2.esb.services.tos;
02:
03: import org.apache.synapse.MessageContext;
04: import org.apache.synapse.mediators.AbstractMediator;
05:
06: /**
07: * Created by IntelliJ IDEA.
08: * User: ruwan
09: * Date: Sep 19, 2007
10: * Time: 10:12:50 AM
11: * To change this template use File | Settings | File Templates.
12: */
13: public class TestClass extends AbstractMediator {
14:
15: private String name;
16:
17: private String age;
18:
19: private String address;
20:
21: public String getName() {
22: return name;
23: }
24:
25: public void setName(String name) {
26: this .name = name;
27: }
28:
29: public String getAge() {
30: return age;
31: }
32:
33: public void setAge(String age) {
34: this .age = age;
35: }
36:
37: public String getAddress() {
38: return address;
39: }
40:
41: public void setAddress(String address) {
42: this .address = address;
43: }
44:
45: public boolean mediate(MessageContext synCtx) {
46: System.out.println("Name: " + name + "\nAddress: " + address
47: + "\nAge: " + age);
48: return false; //To change body of implemented methods use File | Settings | File Templates.
49: }
50: }
|