public class MutableResourceParametersWrapper extends MutablePortletParametersWrapper implements MutableResourceParameters
MutableResourceParametersWrapper
provides a convenient
implementation of the MutableResourceParameters
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 |
---|
MutableResourceParametersWrapper(MutableResourceParameters wrapped) |
Modifier and Type | Method and Description |
---|---|
MutableResourceParameters |
clone()
Returns a
MutablePortletParameters object encapsulating a copy of the same
parameters as the original object. |
MutableResourceParameters |
getWrapped()
Gets the wrapped object.
|
void |
setWrapped(MutableResourceParameters wrapped)
Sets the wrapped object.
|
add, clear, removeParameter, set, setValue, setValues, setWrapped
getNames, getValue, getValues, isEmpty, setWrapped, size
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, clear, getNames, removeParameter, set, setValue, setValues
getValue, getValues, isEmpty, size
public MutableResourceParametersWrapper(MutableResourceParameters wrapped)
wrapped
- the wrapped object to set.IllegalArgumentException
- if the MutableResourceParameters is null.public MutableResourceParameters getWrapped()
getWrapped
in class MutablePortletParametersWrapper
public void setWrapped(MutableResourceParameters wrapped)
wrapped
- the wrapped object to set.IllegalArgumentException
- if the MutableResourceParameters is null.public MutableResourceParameters clone()
PortletParameters
MutablePortletParameters
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 PortletParameters
clone
in interface ResourceParameters
clone
in class PortletParametersWrapper
Java Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.