1 16 17 package org.apache.jetspeed.services.webpage; 18 19 import javax.servlet.http.HttpServletRequest ; 21 import javax.servlet.http.HttpServletResponse ; 22 import javax.servlet.ServletConfig ; 23 import javax.servlet.http.HttpServlet ; 24 import javax.servlet.ServletException ; 25 26 import java.io.IOException ; 28 29 import java.util.Collection ; 31 32 33 43 44 interface WebPageService 45 { 46 47 48 public final static String SERVICE_NAME = "WebPageService"; 49 50 59 60 public void get(HttpServlet servlet, 61 HttpServletRequest request, 62 HttpServletResponse response) 63 throws ServletException , IOException ; 64 65 66 75 public void post(HttpServlet servlet, 76 HttpServletRequest request, 77 HttpServletResponse response) 78 throws ServletException , IOException ; 79 80 87 public boolean init(ServletConfig config) 88 throws ServletException , IOException ; 89 90 94 public void destroy(); 95 96 97 102 public boolean isInit(); 103 104 109 public Collection getSessions(); 110 111 117 public SessionMap getSession(String id); 118 119 124 public Collection getSites(); 125 126 127 132 public String getErrorString(); 133 } 134 135 | Popular Tags |