public void destroy() { portalDriver.destroy(); }
public void contextDestroyed(ServletContextEvent sce) { realStartupListener.contextDestroyed(sce); }
public PlutoPortalDriverFilter() { this.portalDriver = new PortalDriverFilter(); }
public static synchronized ResourceConfig getResourceConfig() { if (resourceConfig == null) { init(PortalStartupListener.getServletContext()); } return resourceConfig; } }
private void checkInit() { if (!initialized) { init(org.apache.pluto.driver.PortalStartupListener.getServletContext()); } } }
public PortalStartupListener() { this.realStartupListener = new org.apache.pluto.driver.PortalStartupListener(); }
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { request.setAttribute("org_apache_pluto_embedded_portletIds", portletIds); request.setAttribute("org_apache_pluto_embedded_extraStyles", styles); portalDriver.doFilter(request, response, chain); }
public void contextInitialized(ServletContextEvent sce) { ServletContext wrapped = new WrappedServletContext(sce.getServletContext()); realStartupListener.contextInitialized(new ServletContextEvent(wrapped)); }
public void init(FilterConfig filterConfig) throws ServletException { portalDriver.init(filterConfig); this.filterConfig = filterConfig; String ids = System.getProperty("org.apache.pluto.embedded.portletIds"); String extraStyles = System.getProperty("org.apache.pluto.embedded.extraStyles"); if (extraStyles != null) { styles = extraStyles.split(","); } if (ids == null || "".equals(ids.trim())) { throw new ServletException( "No portlet id specified. Please set the system property \"org.apache.pluto.embedded.portletIds\""); } portletIds = encodePortletIds(ids.split(",")); }