Uses of Class
jakarta.portlet.PortletException
-
Packages that use PortletException Package Description jakarta.portlet The jakarta.portlet package defines the API for the Jakarta Portlet Specification V4.0.jakarta.portlet.filter The jakarta.portlet.filter package defines the filter APIs for the Jakarta Portlet Specification. -
-
Uses of PortletException in jakarta.portlet
Subclasses of PortletException in jakarta.portlet Modifier and Type Class Description classPortletModeExceptionThePortletModeExceptionis thrown when a portlet tries to use or set a portlet mode that is not supported by the current runtime environment or the portlet.classPortletSecurityExceptionA portlet should throw aPortletSecurityExceptionwhen a call fails because of security reasons.
Additionally it can be thrown by the portal/portlet-container.classReadOnlyExceptionTheReadOnlyExceptionis thrown when a portlet tries to change the value for a read-only preference attribute.classUnavailableExceptionThe portlet should throw theUnavailableExceptionwhen the portlet is either temporarily or permanently unavailable to handle requests.classValidatorExceptionTheValidatorExceptionis thrown by thevalidatemethod of a PreferencesValidator when the validation of a preference failed.classWindowStateExceptionTheWindowStateExceptionis thrown when a portlet tries to use a window state that is not supported by the current runtime environment or the portlet.Methods in jakarta.portlet that throw PortletException Modifier and Type Method Description <T extends PortletAsyncListener>
TPortletAsyncContext. createPortletAsyncListener(Class<T> cls)Instantiates the givenPortletAsyncListenerclass.protected booleanGenericPortlet. dispatchAnnotatedActionMethod(String name, ActionRequest request, ActionResponse response)Dispatches an action request to an annotated action method.protected booleanGenericPortlet. dispatchAnnotatedEventMethod(String name, EventRequest request, EventResponse response)Dispatches an event request to an annotated event method.protected booleanGenericPortlet. dispatchAnnotatedRenderMethod(String name, RenderRequest request, RenderResponse response)Dispatches an render request to an annotated render method.protected voidGenericPortlet. doDispatch(RenderRequest request, RenderResponse response)The default implementation of this method routes the render request to: method annotated with@RenderModeand the name of the portlet mode a set of helper methods depending on the current portlet mode the portlet is currently in.protected voidGenericPortlet. doEdit(RenderRequest request, RenderResponse response)Helper method to serve up theeditmode.protected voidGenericPortlet. doHeaders(RenderRequest request, RenderResponse response)Used by the render method to set the response properties and headers.protected voidGenericPortlet. doHelp(RenderRequest request, RenderResponse response)Helper method to serve up thehelpmode.protected voidGenericPortlet. doView(RenderRequest request, RenderResponse response)Helper method to serve up the mandatoryviewmode.voidPortletRequestDispatcher. forward(PortletRequest request, PortletResponse response)Forwards a portlet request from a portlet to another resource (servlet, JSP file, or HTML file) on the server.jakarta.servlet.http.PartClientDataRequest. getPart(String name)Gets the Part with the given name.Collection<jakarta.servlet.http.Part>ClientDataRequest. getParts()Gets all the Part components of this request, provided that it is of type multipart/form-data.voidPortletRequestDispatcher. include(PortletRequest request, PortletResponse response)Includes the content of a resource (servlet, JSP page, HTML file) in the response.voidPortletRequestDispatcher. include(RenderRequest request, RenderResponse response)Includes the content of a resource (servlet, JSP page, HTML file) in the response.voidGenericPortlet. init()A convenience method which can be overridden so that there's no need to callsuper.init(config).voidGenericPortlet. init(PortletConfig config)Called by the portlet container to indicate to a portlet that the portlet is being placed into service.voidPortlet. init(PortletConfig config)Called by the portlet container to indicate to a portlet that the portlet is being placed into service.voidGenericPortlet. processAction(ActionRequest request, ActionResponse response)Called by the portlet container to allow the portlet to process an action request.voidPortlet. processAction(ActionRequest request, ActionResponse response)Called by the portlet container to allow the portlet to process an action request.voidEventPortlet. processEvent(EventRequest request, EventResponse response)Called by the portlet container requesting the portlet to process a specific event.voidGenericPortlet. processEvent(EventRequest request, EventResponse response)The default implementation tries to dispatch to a method annotated with@ProcessEventthat matches the event name or, if no such method is found just sets the current render parameters on the response.
Note that the annotated methods needs to be public in order to be allowed to be called byGenericPortlet.voidGenericPortlet. render(RenderRequest request, RenderResponse response)The default implementation of this method sets the headers using thedoHeadersmethod, sets the title using thegetTitlemethod and invokes thedoDispatchmethod.voidPortlet. render(RenderRequest request, RenderResponse response)Called by the portlet container to allow the portlet to generate the content of the response based on its current state.voidGenericPortlet. renderHeaders(HeaderRequest request, HeaderResponse response)V3 method implementing the headers stage within the render phase.voidHeaderPortlet. renderHeaders(HeaderRequest request, HeaderResponse response)Called by the portlet container to allow the portlet to set response headers and generate markup for overall response document head section.voidGenericPortlet. serveResource(ResourceRequest request, ResourceResponse response)Default resource serving.voidResourceServingPortlet. serveResource(ResourceRequest request, ResourceResponse response)Called by the portlet container to allow the portlet to generate the resource content based on its current state. -
Uses of PortletException in jakarta.portlet.filter
Methods in jakarta.portlet.filter that throw PortletException Modifier and Type Method Description <T extends PortletAsyncListener>
TPortletAsyncContextWrapper. createPortletAsyncListener(Class<T> cls)voidActionFilter. doFilter(ActionRequest request, ActionResponse response, FilterChain chain)ThedoFiltermethod of the Filter is called by the portlet container each time a action request/response pair is passed through the chain due to a client request for a portlet method at the end of the chain.voidEventFilter. doFilter(EventRequest request, EventResponse response, FilterChain chain)ThedoFiltermethod of the Filter is called by the portlet container each time a event request/response pair is passed through the chain due to a client request for a portlet method at the end of the chain.voidFilterChain. doFilter(ActionRequest request, ActionResponse response)Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the portlet at the end of the chain to be invoked.voidFilterChain. doFilter(EventRequest request, EventResponse response)Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the portlet at the end of the chain to be invoked.voidFilterChain. doFilter(RenderRequest request, RenderResponse response)Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the portlet at the end of the chain to be invoked.voidFilterChain. doFilter(ResourceRequest request, ResourceResponse response)Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the portlet at the end of the chain to be invoked.voidHeaderFilter. doFilter(HeaderRequest request, HeaderResponse response, HeaderFilterChain chain)ThedoFiltermethod of the Filter is called by the portlet container each time a header request/response pair is passed through the chain due to a client request for a portlet method at the end of the chain.voidHeaderFilterChain. doFilter(HeaderRequest request, HeaderResponse response)Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the portlet at the end of the chain to be invoked.voidRenderFilter. doFilter(RenderRequest request, RenderResponse response, FilterChain chain)ThedoFiltermethod of the Filter is called by the portlet container each time a render request/response pair is passed through the chain due to a client request for a portlet method at the end of the chain.voidResourceFilter. doFilter(ResourceRequest request, ResourceResponse response, FilterChain chain)ThedoFiltermethod of the Filter is called by the portlet container each time a resource request/response pair is passed through the chain due to a client request for a portlet method at the end of the chain.voidPortletRequestDispatcherWrapper. forward(PortletRequest request, PortletResponse response)jakarta.servlet.http.PartClientDataRequestWrapper. getPart(String name)Collection<jakarta.servlet.http.Part>ClientDataRequestWrapper. getParts()voidPortletRequestDispatcherWrapper. include(PortletRequest request, PortletResponse response)voidPortletRequestDispatcherWrapper. include(RenderRequest request, RenderResponse response)voidPortletFilter. init(FilterConfig filterConfig)Called by the portlet container to indicate to a filter that it is being placed into service.
-