]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/pages/Page.java
Added title attribute + moved page to pages pacckage, too
[gigi.git] / src / org / cacert / gigi / pages / Page.java
similarity index 62%
rename from src/org/cacert/gigi/Page.java
rename to src/org/cacert/gigi/pages/Page.java
index 77ffbb673f516c9ee89cb0271252a1f7220b4650..18eb2944083e858331d2fd375ddb6edd862ff450 100644 (file)
@@ -1,4 +1,4 @@
-package org.cacert.gigi;
+package org.cacert.gigi.pages;
 
 import java.io.IOException;
 
 
 import java.io.IOException;
 
@@ -6,6 +6,12 @@ import javax.servlet.ServletRequest;
 import javax.servlet.ServletResponse;
 
 public abstract class Page {
 import javax.servlet.ServletResponse;
 
 public abstract class Page {
+       private String title;
+
+       public Page(String title) {
+               this.title = title;
+       }
+
        public void doGet(ServletRequest req, ServletResponse resp)
                        throws IOException {
                resp.setContentType("text/html");
        public void doGet(ServletRequest req, ServletResponse resp)
                        throws IOException {
                resp.setContentType("text/html");
@@ -15,4 +21,12 @@ public abstract class Page {
                        throws IOException {
                doGet(req, resp);
        }
                        throws IOException {
                doGet(req, resp);
        }
+
+       public String getTitle() {
+               return title;
+       }
+
+       public void setTitle(String title) {
+               this.title = title;
+       }
 }
 }