public class RenderURLWrapper extends PortletURLWrapper implements RenderURL
RenderURLWrapper provides a convenient
implementation of the RenderURL 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 |
|---|
RenderURLWrapper(RenderURL wrapped) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFragmentIdentifier()
Gets the fragment identifier previously set on the URL.
|
RenderURL |
getWrapped()
Gets the wrapped object.
|
void |
setFragmentIdentifier(String fragment)
Sets a fragment identifier on the URL.
|
void |
setWrapped(RenderURL wrapped)
Sets the wrapped object.
|
getRenderParameters, removePublicRenderParameter, setBeanParameter, setPortletMode, setWindowState, setWrappedaddProperty, append, append, getParameterMap, setParameter, setParameter, setParameters, setProperty, setSecure, setWrapped, toString, write, writegetPortletMode, getWindowState, setWrappedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitremovePublicRenderParameter, setBeanParameteraddProperty, append, append, getParameterMap, setParameter, setParameter, setParameters, setProperty, setSecure, toString, write, writegetRenderParameters, setPortletMode, setWindowStategetPortletMode, getWindowStatepublic RenderURLWrapper(RenderURL wrapped)
wrapped - the wrapped object to set.IllegalArgumentException - if the RenderURL is null.public RenderURL getWrapped()
getWrapped in class PortletURLWrapperpublic void setWrapped(RenderURL wrapped)
wrapped - the wrapped object to set.IllegalArgumentException - if the RenderURL is null.public void setFragmentIdentifier(String fragment)
RenderURLAny previously set fragment identifier will be replaced.
The fragment identifier consists of additional information appended to the URL after a '#' character. A URL can have only a single fragment identifier. The fragment identifier must be formed according to rfc3986.
The fragment identifier is often used to address a named anchor such as
<a name="#fragmentIdentifier">, but it can also be
used for other purposes such as to pass information to a JavaScript routine.
The fragment identifier will not be namespaced. The portlet is responsible for performing any required namespacing. However, the fragment identifier string will be escaped as required.
Setting the fragment identifier to null will remove a
fragment identifier previously set through this method. Setting the
empty string as the fragment identifier will create an empty fragment
identifier.
setFragmentIdentifier in interface RenderURLfragment - The fragment identifier to be added to the URLRenderURL.getFragmentIdentifier()public String getFragmentIdentifier()
RenderURL
A fragment identifier may have been set by the portlet
using the RenderURL.setFragmentIdentifier(java.lang.String) method, or it may
be a value set by the portal if the portlet had not previously set a
fragment identifier.
getFragmentIdentifier in interface RenderURLnull if no fragment identifier has been set.RenderURL.setFragmentIdentifier(java.lang.String)Java Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.