]> WPIA git - gigi.git/blob - src/org/cacert/gigi/pages/Page.java
Move setContentType out.
[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 abstract void doGet(ServletRequest req, ServletResponse resp)
16                         throws IOException;
17
18         public void doPost(ServletRequest req, ServletResponse resp)
19                         throws IOException {
20                 doGet(req, resp);
21         }
22
23         public String getTitle() {
24                 return title;
25         }
26
27         public void setTitle(String title) {
28                 this.title = title;
29         }
30 }