/[projects]/miscJava/Test4Simple/src/main/java/dk/thoerup/webservice/TestResponse.java
ViewVC logotype

Annotation of /miscJava/Test4Simple/src/main/java/dk/thoerup/webservice/TestResponse.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2517 - (hide annotations) (download)
Tue Apr 28 05:54:46 2015 UTC (9 years, 1 month ago) by torben
File size: 658 byte(s)
Finally - jersey + moxy works :)
1 torben 2517 package dk.thoerup.webservice;
2    
3     import java.io.Serializable;
4    
5     import javax.xml.bind.annotation.XmlRootElement;
6    
7     @XmlRootElement
8     public class TestResponse implements Serializable {
9     private static final long serialVersionUID = 1L;
10    
11     private int id;
12     private String name;
13    
14     public TestResponse() { //no-arg constructor MUST be present for moxy to work
15     }
16    
17     public TestResponse(int i, String n) {
18     this.id = i;
19     this.name = n;
20     }
21    
22     public int getId() {
23     return id;
24     }
25    
26     public String getName() {
27     return name;
28     }
29    
30     public void setId(int i) {
31     this.id = i;
32     }
33    
34     public void setName(String n) {
35     this.name = n;
36     }
37     }

  ViewVC Help
Powered by ViewVC 1.1.20