com.vaadin.server.

Class VaadinPortlet

    • Field Detail

      • PORTLET_PARAMETER_STYLE

        @Deprecated
        public static final String PORTLET_PARAMETER_STYLE

        Deprecated. As of 7.0. Will likely change or be removed in a future version

        This portlet parameter is used to add styles to the main element. E.g "height:500px" generates a style="height:500px" to the main element.

        See Also:

        Constant Field Values

      • PORTAL_PARAMETER_VAADIN_THEME

        @Deprecated
        public static final String PORTAL_PARAMETER_VAADIN_THEME

        Deprecated. As of 7.0. Will likely change or be removed in a future version

        This portal parameter is used to define the name of the Vaadin theme that is used for all Vaadin applications in the portal.

        See Also:

        Constant Field Values

      • WRITE_AJAX_PAGE_SCRIPT_WIDGETSET_SHOULD_WRITE

        @Deprecated
        public static final String WRITE_AJAX_PAGE_SCRIPT_WIDGETSET_SHOULD_WRITE

        Deprecated. As of 7.0. Will likely change or be removed in a future version

        See Also:

        Constant Field Values

    • Constructor Detail

      • VaadinPortlet

        public VaadinPortlet()
    • Method Detail

      • init

        public void init(PortletConfig config)
                  throws PortletException

        Throws:

        PortletException

      • portletInitialized

        protected void portletInitialized()
                                   throws PortletException

        Throws:

        PortletException

      • handleRequest

        @Deprecated
        protected void handleRequest(PortletRequest request,
                                                 PortletResponse response)
                                          throws PortletException,
                                                 IOException

        Deprecated. As of 7.0. Will likely change or be removed in a future version

        Parameters:

        request -

        response -

        Throws:

        PortletException

        IOException

      • createVaadinRequest

        protected VaadinPortletRequest createVaadinRequest(PortletRequest request)

        Wraps the request in a (possibly portal specific) Vaadin portlet request.

        Parameters:

        request - The original PortletRequest

        Returns:

        A wrapped version of the PortletRequest

      • processEvent

        public void processEvent(EventRequest request,
                                 EventResponse response)
                          throws PortletException,
                                 IOException

        Throws:

        PortletException

        IOException

      • processAction

        public void processAction(ActionRequest request,
                                  ActionResponse response)
                           throws PortletException,
                                  IOException

        Throws:

        PortletException

        IOException

      • doDispatch

        protected void doDispatch(RenderRequest request,
                                  RenderResponse response)
                           throws PortletException,
                                  IOException

        Throws:

        PortletException

        IOException

      • serveResource

        public void serveResource(ResourceRequest request,
                                  ResourceResponse response)
                           throws PortletException,
                                  IOException

        Throws:

        PortletException

        IOException

      • destroy

        public void destroy()
      • getCurrent

        public static VaadinPortlet getCurrent()

        Gets the currently used Vaadin portlet. The current portlet is automatically defined when initializing the portlet and when processing requests to the server and in threads started at a point when the current portlet is defined (see InheritableThreadLocal). In other cases, (e.g. from background threads started in some other way), the current portlet is not automatically defined.

        The current portlet is derived from the current service using VaadinService.getCurrent()

        Returns:

        the current vaadin portlet instance if available, otherwise null

        Since:

        7.0