]> WPIA git - gigi.git/blob - src/org/cacert/gigi/pages/Page.java
Pages in a own package
[gigi.git] / src / org / cacert / gigi / pages / Page.java
1 package org.cacert.gigi.pages;
2
3 import java.io.IOException;
4
5 import javax.servlet.ServletRequest;
6 import javax.servlet.ServletResponse;
7
8 public abstract class Page {
9         private String title;
10
11         public Page(String title) {
12                 this.title = title;
13         }
14
15         public void doGet(ServletRequest req, ServletResponse resp)
16                         throws IOException {
17                 resp.setContentType("text/html");
18         }
19
20         public void doPost(ServletRequest req, ServletResponse resp)
21                         throws IOException {
22                 doGet(req, resp);
23         }
24
25         public String getTitle() {
26                 return title;
27         }
28
29         public void setTitle(String title) {
30                 this.title = title;
31         }
32 }