Top Description Constructors Methods
javax.portlet.filter

public Class RenderURLWrapper

extends PortletURLWrapper
implements RenderURL
Class Inheritance
All Implemented Interfaces
javax.portlet.RenderURL, javax.portlet.PortletURL, javax.portlet.MutableRenderState, javax.portlet.Mutable, javax.portlet.RenderState, javax.portlet.BaseURL
Imports
javax.portlet.RenderURL

The 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.
Since
3.0

Constructor Summary

AccessConstructor and Description
public
RenderURLWrapper(RenderURL
the wrapped object to set.
wrapped
)

Method Summary

Modifier and TypeMethod and Description
public String
getFragmentIdentifier()

Implements javax.portlet.RenderURL.getFragmentIdentifier.

Gets the fragment identifier previously set on the URL.
public RenderURL

Returns:

the wrapped object.
getWrapped
()

Overrides javax.portlet.filter.PortletURLWrapper.getWrapped.

Gets the wrapped object.
public void
setFragmentIdentifier(String
The fragment identifier to be added to the URL
fragment
)

Implements javax.portlet.RenderURL.setFragmentIdentifier.

Sets a fragment identifier on the URL.
public void
setWrapped(RenderURL
the wrapped object to set.
wrapped
)

Sets the wrapped object.

Inherited from javax.portlet.filter.PortletURLWrapper:
getRenderParametersremovePublicRenderParametersetBeanParametersetPortletModesetWindowStatesetWrapped

Constructor Detail

RenderURLWrapperback to summary
public RenderURLWrapper(RenderURL wrapped)
Parameters
wrapped:RenderURL

the wrapped object to set.

Exceptions
IllegalArgumentException:
if the RenderURL is null.

Method Detail

getFragmentIdentifierback to summary
public String getFragmentIdentifier()

Implements javax.portlet.RenderURL.getFragmentIdentifier.

Doc from javax.portlet.RenderURL.getFragmentIdentifier.

Gets the fragment identifier previously set on the URL.

A fragment identifier may have been set by the portlet using the setFragmentIdentifier method, or it may be a value set by the portal if the portlet had not previously set a fragment identifier.

Returns:String

The fragment identifier set on the URL, or null if no fragment identifier has been set.

Annotations
@Override
getWrappedback to summary
public RenderURL getWrapped()

Overrides javax.portlet.filter.PortletURLWrapper.getWrapped.

Gets the wrapped object.

Returns:RenderURL

the wrapped object.

setFragmentIdentifierback to summary
public void setFragmentIdentifier(String fragment)

Implements javax.portlet.RenderURL.setFragmentIdentifier.

Doc from javax.portlet.RenderURL.setFragmentIdentifier.

Sets a fragment identifier on the URL.

Any 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.

Parameters
fragment:String

The fragment identifier to be added to the URL

Annotations
@Override
setWrappedback to summary
public void setWrapped(RenderURL wrapped)

Sets the wrapped object.

Parameters
wrapped:RenderURL

the wrapped object to set.

Exceptions
IllegalArgumentException:
if the RenderURL is null.