Package jakarta.portlet.filter
Class ResourceParametersWrapper
- java.lang.Object
-
- jakarta.portlet.filter.PortletParametersWrapper
-
- jakarta.portlet.filter.ResourceParametersWrapper
-
- All Implemented Interfaces:
PortletParameters,ResourceParameters
public class ResourceParametersWrapper extends PortletParametersWrapper implements ResourceParameters
TheResourceParametersWrapperprovides a convenient implementation of theResourceParametersinterface 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 ResourceParametersWrapper(ResourceParameters wrapped)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableResourceParametersclone()Returns aMutablePortletParametersobject encapsulating a copy of the same parameters as the original object.ResourceParametersgetWrapped()Gets the wrapped object.voidsetWrapped(ResourceParameters wrapped)Sets the wrapped object.-
Methods inherited from class jakarta.portlet.filter.PortletParametersWrapper
getNames, getValue, getValues, isEmpty, setWrapped, size
-
-
-
-
Constructor Detail
-
ResourceParametersWrapper
public ResourceParametersWrapper(ResourceParameters wrapped)
- Parameters:
wrapped- the wrapped object to set.- Throws:
IllegalArgumentException- if the ResourceParameters is null.
-
-
Method Detail
-
getWrapped
public ResourceParameters getWrapped()
Gets the wrapped object.- Overrides:
getWrappedin classPortletParametersWrapper- Returns:
- the wrapped object.
-
setWrapped
public void setWrapped(ResourceParameters wrapped)
Sets the wrapped object.- Parameters:
wrapped- the wrapped object to set.- Throws:
IllegalArgumentException- if the ResourceParameters is null.
-
clone
public MutableResourceParameters 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 interfaceResourceParameters- Overrides:
clonein classPortletParametersWrapper- Returns:
- Mutable clone of PortletParameters object
-
-