1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 package org.utgenome.gwt.utgb.server.app;
26
27 import java.io.IOException;
28
29 import javax.servlet.ServletException;
30 import javax.servlet.http.HttpServletRequest;
31 import javax.servlet.http.HttpServletResponse;
32
33 import org.utgenome.gwt.utgb.server.RequestHandlerBase;
34
35
36
37
38
39
40 public class Hello extends RequestHandlerBase
41 {
42
43
44
45 private static final long serialVersionUID = 1L;
46 private String name = "";
47 private int year = 2005;
48
49 public Hello()
50 {}
51
52 public void handle(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
53 {
54 response.getWriter().println("Hello! " + name + ": " + year);
55 }
56
57 public String getName()
58 {
59 return name;
60 }
61
62 public void setName(String name)
63 {
64 this.name = name;
65 }
66
67 public int getYear()
68 {
69 return year;
70 }
71
72 public void setYear(int year)
73 {
74 this.year = year;
75 }
76
77
78
79
80
81
82
83 }
84
85
86
87