Class RenderURLWrapper

    • Constructor Detail

      • RenderURLWrapper

        public RenderURLWrapper​(RenderURL wrapped)
        Parameters:
        wrapped - the wrapped object to set.
        Throws:
        IllegalArgumentException - if the RenderURL is null.
    • Method Detail

      • setWrapped

        public void setWrapped​(RenderURL wrapped)
        Sets the wrapped object.
        Parameters:
        wrapped - the wrapped object to set.
        Throws:
        IllegalArgumentException - if the RenderURL is null.
      • setFragmentIdentifier

        public void setFragmentIdentifier​(String fragment)
        Description copied from interface: RenderURL
        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.

        Specified by:
        setFragmentIdentifier in interface RenderURL
        Parameters:
        fragment - The fragment identifier to be added to the URL
        See Also:
        RenderURL.getFragmentIdentifier()