Package jakarta.portlet.filter
Class RenderParametersWrapper
- java.lang.Object
-
- jakarta.portlet.filter.PortletParametersWrapper
-
- jakarta.portlet.filter.RenderParametersWrapper
-
- All Implemented Interfaces:
PortletParameters,RenderParameters
public class RenderParametersWrapper extends PortletParametersWrapper implements RenderParameters
TheRenderParametersWrapperprovides a convenient implementation of theRenderParametersinterface 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
-
-
Field Summary
-
Fields inherited from class jakarta.portlet.filter.PortletParametersWrapper
wrapped
-
-
Constructor Summary
Constructors Constructor Description RenderParametersWrapper(RenderParameters wrapped)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableRenderParametersclone()Returns aMutablePortletParametersobject encapsulating a copy of the same parameters as the original object.RenderParametersgetWrapped()Gets the wrapped object.booleanisPublic(String name)Returns a boolean value indicating whether the given parameter name represents a public render parameter.voidsetWrapped(RenderParameters wrapped)Sets the wrapped object.-
Methods inherited from class jakarta.portlet.filter.PortletParametersWrapper
getNames, getValue, getValues, isEmpty, setWrapped, size
-
-
-
-
Constructor Detail
-
RenderParametersWrapper
public RenderParametersWrapper(RenderParameters wrapped)
- Parameters:
wrapped- the wrapped object to set.- Throws:
IllegalArgumentException- if the RenderParameters is null.
-
-
Method Detail
-
getWrapped
public RenderParameters getWrapped()
Gets the wrapped object.- Overrides:
getWrappedin classPortletParametersWrapper- Returns:
- the wrapped object.
-
setWrapped
public void setWrapped(RenderParameters wrapped)
Sets the wrapped object.- Parameters:
wrapped- the wrapped object to set.- Throws:
IllegalArgumentException- if the RenderParameters is null.
-
clone
public MutableRenderParameters clone()
Description copied from interface:PortletParametersReturns aMutablePortletParametersobject encapsulating a copy of the same parameters as the original object. Changing a mutable copy will not influence the source object.- Specified by:
clonein interfacePortletParameters- Specified by:
clonein interfaceRenderParameters- Overrides:
clonein classPortletParametersWrapper- Returns:
- Mutable clone of PortletParameters object
-
isPublic
public boolean isPublic(String name)
Description copied from interface:RenderParametersReturns a boolean value indicating whether the given parameter name represents a public render parameter. Note that iftrueis returned, it does not mean that a public render parameter value is set.- Specified by:
isPublicin interfaceRenderParameters- Parameters:
name- the parameter name- Returns:
trueif the given parameter name represents a public render parameter.falseotherwise
-
-