/** * Helper method to serve up the <code>edit</code> mode. * <p> * The default implementation throws an exception. * * @param request * the portlet request * @param response * the render response * * @exception PortletException * if the portlet cannot fulfill the request * @exception UnavailableException * if the portlet is unavailable to perform render at this * time * @exception PortletSecurityException * if the portlet cannot fulfill this request due to * security reasons * @exception java.io.IOException * if the streaming causes an I/O problem * */ protected void doEdit(RenderRequest request, RenderResponse response) throws PortletException, java.io.IOException { throw new PortletException("doEdit method not implemented"); }
/** * Helper method to serve up the <code>help</code> mode. * <p> * The default implementation throws an exception. * * @param request * the portlet request * @param response * the render response * * @exception PortletException * if the portlet cannot fulfill the request * @exception UnavailableException * if the portlet is unavailable to perform render at this * time * @exception PortletSecurityException * if the portlet cannot fulfill this request due to * security reasons * @exception java.io.IOException * if the streaming causes an I/O problem */ protected void doHelp(RenderRequest request, RenderResponse response) throws PortletException, java.io.IOException { throw new PortletException("doHelp method not implemented"); }
/** * Helper method to serve up the mandatory <code>view</code> mode. * <p> * The default implementation throws an exception. * * @param request * the portlet request * @param response * the render response * * @exception PortletException * if the portlet cannot fulfill the request * @exception UnavailableException * if the portlet is unavailable to perform render at this * time * @exception PortletSecurityException * if the portlet cannot fulfill this request due to * security reasons * @exception java.io.IOException * if the streaming causes an I/O problem * */ protected void doView(RenderRequest request, RenderResponse response) throws PortletException, java.io.IOException { throw new PortletException("doView method not implemented"); }
throw new PortletException(e);
throw new PortletException(e);
throw new PortletException(e); throw new PortletException("processAction method not implemented");
throw new PortletException(e);
throw new PortletException(e);
throw new PortletException(e); doHelp(request, response); } else { throw new PortletException("unknown portlet mode: " + mode);
protected void doAbout( RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException { throw new PortletException("doAbout method not implemented"); }
protected void doConfig( RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException { throw new PortletException("doConfig method not implemented"); }
protected void doEditGuest( RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException { throw new PortletException("doEditGuest method not implemented"); }
protected void doPreview( RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException { throw new PortletException("doPreview method not implemented"); }
protected void doEditDefaults( RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException { throw new PortletException("doEditDefaults method not implemented"); }
protected void doPrint( RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException { throw new PortletException("doPrint method not implemented"); }
doDispatch(request, response); } else { throw new PortletException("Unknown value of the 'javax.portlet.render_part' request attribute");
protected void checkPath(String path) throws PortletException { if (Validator.isNotNull(path) && !isValidPath(path)) { throw new PortletException( "Path " + path + " is not accessible by this portlet"); } }
protected LegacyApplication getNewApplication(PortletRequest request) throws PortletException { try { Class<? extends LegacyApplication> applicationClass = getApplicationClass(); return ReflectTools.createInstance(applicationClass); } catch (Exception e) { throw new PortletException(e); } }
@Override public boolean serveResource( ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws PortletException { try { doServeResource(resourceRequest, resourceResponse); return !SessionErrors.isEmpty(resourceRequest); } catch (PortletException pe) { throw pe; } catch (Exception e) { throw new PortletException(e); } }
@Override public boolean validateForm( ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException { try { doValidateForm(actionRequest, actionResponse); return SessionErrors.isEmpty(actionRequest); } catch (PortletException pe) { throw pe; } catch (Exception e) { throw new PortletException(e); } }