Class EventResponseWrapper

    • Constructor Detail

      • EventResponseWrapper

        public EventResponseWrapper​(EventResponse response)
        Creates an EventResponse adaptor wrapping the given response object.
        Parameters:
        response - the event response to wrap
        Throws:
        IllegalArgumentException - if the response is null
    • Method Detail

      • setResponse

        public void setResponse​(EventResponse response)
        Sets the response object being wrapped.
        Parameters:
        response - the response to set
        Throws:
        IllegalArgumentException - if the response is null.
      • setRenderParameters

        @Deprecated
        public void setRenderParameters​(EventRequest request)
        Deprecated.
        Description copied from interface: EventResponse
        Maintain the current render parameters of the request for the response.

        All previously set render parameters are cleared.

        These parameters will be accessible in all subsequent render calls via the PortletRequest.getParameter call until a new request is targeted to the portlet.

        The given parameters do not need to be encoded prior to calling this method.

        Specified by:
        setRenderParameters in interface EventResponse
        Parameters:
        request - The request the portlet has been provided with by the portlet container for the current processEvent call, must not be null.