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.http.HttpServlet ; 23 import javax.servlet.ServletConfig ; 24 import javax.servlet.ServletException ; 25 26 import java.io.IOException ; 28 29 import java.util.Collection ; 31 32 41 42 public class WebPageManager 43 { 44 45 private static WebPageService service = null; 47 48 49 53 private static WebPageService getService() 54 { 55 if (service == null) 56 { 57 service = new JetspeedWebPageService(); 59 } 60 return service; 61 } 62 63 66 public static boolean isInit() 67 { 68 return getService().isInit(); 69 } 70 71 74 public static void get(HttpServlet servlet, 75 HttpServletRequest request, 76 HttpServletResponse response) 77 throws ServletException , IOException 78 { 79 getService().get(servlet, request, response); 80 } 81 82 85 public static void post(HttpServlet servlet, 86 HttpServletRequest request, 87 HttpServletResponse response) 88 throws ServletException , IOException 89 { 90 getService().post(servlet, request, response); 91 } 92 93 94 97 public static void init(ServletConfig config) 98 throws ServletException , IOException 99 { 100 getService().init(config); 101 } 102 103 106 public static void destroy() 107 { 108 getService().destroy(); 109 } 110 111 114 public static Collection getSessions() 115 { 116 return getService().getSessions(); 117 } 118 119 122 public static SessionMap getSession(String id) 123 { 124 return getService().getSession(id); 125 } 126 127 130 public static Collection getSites() 131 { 132 return getService().getSites(); 133 } 134 135 138 public static String getErrorString() 139 { 140 return getService().getErrorString(); 141 } 142 143 } 144 | Popular Tags |