Class RenderParametersWrapper

  • All Implemented Interfaces:
    PortletParameters, RenderParameters

    public class RenderParametersWrapper
    extends PortletParametersWrapper
    implements RenderParameters
    The RenderParametersWrapper provides a convenient implementation of the RenderParameters interface that can be subclassed by developers. This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped request object.
    Since:
    3.0
    • Constructor Detail

      • RenderParametersWrapper

        public RenderParametersWrapper​(RenderParameters wrapped)
        Parameters:
        wrapped - the wrapped object to set.
        Throws:
        IllegalArgumentException - if the RenderParameters is null.
    • Method Detail

      • setWrapped

        public void setWrapped​(RenderParameters wrapped)
        Sets the wrapped object.
        Parameters:
        wrapped - the wrapped object to set.
        Throws:
        IllegalArgumentException - if the RenderParameters is null.
      • isPublic

        public boolean isPublic​(String name)
        Description copied from interface: RenderParameters
        Returns a boolean value indicating whether the given parameter name represents a public render parameter. Note that if true is returned, it does not mean that a public render parameter value is set.
        Specified by:
        isPublic in interface RenderParameters
        Parameters:
        name - the parameter name
        Returns:
        true if the given parameter name represents a public render parameter. false otherwise