Class VaadinPortletRequest

    • Constructor Detail

      • VaadinPortletRequest

        public VaadinPortletRequest​(javax.portlet.PortletRequest request,
                                    VaadinPortletService vaadinService)
        Wraps a portlet request and an associated vaadin service.
        Parameters:
        request - the portlet request to wrap
        vaadinService - the associated vaadin service
    • Method Detail

      • getContentLength

        public int getContentLength()
        Specified by:
        getContentLength in interface VaadinRequest
        See Also:
        ClientDataRequest.getContentLength()
      • getPortletRequest

        public javax.portlet.PortletRequest getPortletRequest()
        Gets the original, unwrapped portlet request.
        Returns:
        the unwrapped portlet request
      • getPortalProperty

        public String getPortalProperty​(String name)
        Reads a portal property from the portal context of the Vaadin request.
        Parameters:
        name - a string with the name of the portal property to get
        Returns:
        a string with the value of the property, or null if the property is not defined
      • getPortletPreference

        public String getPortletPreference​(String name)
        Reads a portlet preference from the portlet of the request.
        Parameters:
        name - The name of the portlet preference. Cannot be null.
        Returns:
        The value of the portlet preference, null if the preference is not defined.
      • getCurrentPortletRequest

        public static javax.portlet.PortletRequest getCurrentPortletRequest()
        Gets the currently processed portlet request. The current portlet request is automatically defined when the request is started. The current portlet request can not be used in e.g. background threads because of the way server implementations reuse request instances.
        Returns:
        the current portlet request instance if available, otherwise null
        Since:
        7.3
      • getCurrent

        public static VaadinPortletRequest getCurrent()
        Gets the currently processed Vaadin portlet request. The current request is automatically defined when the request is started. The current request can not be used in e.g. background threads because of the way server implementations reuse request instances.
        Returns:
        the current Vaadin portlet request instance if available, otherwise null
        Since:
        7.3