Class RenderRequestWrapper

  • All Implemented Interfaces:
    PortletRequest, RenderRequest

    public class RenderRequestWrapper
    extends PortletRequestWrapper
    implements RenderRequest
    The RenderRequestWrapper provides a convenient implementation of the RenderRequest interface that can be subclassed by developers wishing to adapt the request. This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped request object.
    Since:
    2.0
    See Also:
    RenderRequest
    • Constructor Detail

      • RenderRequestWrapper

        public RenderRequestWrapper​(RenderRequest request)
        Creates an RenderRequest adaptor wrapping the given request object.
        Parameters:
        request - the render request to wrap
        Throws:
        java.lang.IllegalArgumentException - if the request is null
    • Method Detail

      • setRequest

        public void setRequest​(RenderRequest request)
        Sets the request object being wrapped.
        Parameters:
        request - the request to set
        Throws:
        java.lang.IllegalArgumentException - if the request is null.
      • getETag

        public java.lang.String getETag()
        The default behavior of this method is to call getETag() on the wrapped request object.
        Specified by:
        getETag in interface RenderRequest
        Returns:
        the validation tag if the portlet container has a cached response for this validation tag, or null if no cached response exists.