@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { dispatch(request, response); }
requestContext.init(portletConfig, getServletContext(), hreq, hresp, responseContext); requestContext.init(portletConfig, getServletContext(), request, response, responseContext); requestContext.setExecutingRequestBody(true); responseContext.init(portletConfig, request, response); beforeInvoke(portletRequest, portletResponse, portletConfig); notify(event, true, null); notify(event, false, null); } catch (Throwable th) { this.getServletContext().log("Error during portlet destroy.", th); notify(event, false, ex); throw new ServletException(ex); request.removeAttribute(PortletInvokerService.FILTER_MANAGER); afterInvoke(portletResponse);
portletName = getInitParameter(PORTLET_NAME); final ServletContext servletContext = getServletContext(); final ClassLoader paClassLoader = Thread.currentThread().getContextClassLoader(); startTimer.schedule(new TimerTask() {
public void destroy() { synchronized (getServletContext()) { if (startTimer != null) { startTimer.cancel(); startTimer = null; } else if (started && portletContext != null) { started = false; contextService.unregister(portletContext); if (invoker != null) { try { invoker.destroy(); } catch (Exception e) { // ignore } invoker = null; } } super.destroy(); } }
contextService = PlutoServices.getServices().getPortletContextService(); try { ServletConfig sConfig = getServletConfig(); if (sConfig == null) { String msg = "Problem obtaining servlet configuration(getServletConfig() returns null).";
@Override protected void doPut(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { dispatch(request, response); }
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { dispatch(request, response); }