public class ResourceParametersWrapper extends PortletParametersWrapper implements ResourceParameters
ResourceParametersWrapper provides a convenient
implementation of the ResourceParameters 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.
wrapped| Constructor and Description |
|---|
ResourceParametersWrapper(ResourceParameters wrapped) |
| Modifier and Type | Method and Description |
|---|---|
MutableResourceParameters |
clone()
Returns a
MutablePortletParameters object encapsulating a copy of the same
parameters as the original object. |
ResourceParameters |
getWrapped()
Gets the wrapped object.
|
void |
setWrapped(ResourceParameters wrapped)
Sets the wrapped object.
|
getNames, getValue, getValues, isEmpty, setWrapped, sizepublic ResourceParametersWrapper(ResourceParameters wrapped)
wrapped - the wrapped object to set.IllegalArgumentException - if the ResourceParameters is null.public ResourceParameters getWrapped()
getWrapped in class PortletParametersWrapperpublic void setWrapped(ResourceParameters wrapped)
wrapped - the wrapped object to set.IllegalArgumentException - if the ResourceParameters is null.public MutableResourceParameters clone()
PortletParametersMutablePortletParameters object encapsulating a copy of the same
parameters as the original object.
Changing a mutable copy will not influence the source object.
clone in interface PortletParametersclone in interface ResourceParametersclone in class PortletParametersWrapperJava Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.