Class CmsJspLinkWrapper

java.lang.Object
java.util.AbstractCollection<String>
org.opencms.jsp.util.CmsJspLinkWrapper
All Implemented Interfaces:
Iterable<String>, Collection<String>

Wrapper for handling links in template/formatter JSP EL.
  • Field Details

  • Constructor Details

    • CmsJspLinkWrapper

      public CmsJspLinkWrapper(CmsObject cms, CmsResource resource)
      Creates a new link wrapper for a specific resource.
      Parameters:
      cms - the CMS context
      resource - the resource to link to
    • CmsJspLinkWrapper

      public CmsJspLinkWrapper(CmsObject cms, String link)
      Creates a new link wrapper.

      The link parameter should be in the same format that you enter in an XML content of field of type OpenCmsVarLink, i.e. either a full external URL or a site path with a query string attached.

      Parameters:
      cms - the CMS context
      link - the link to wrap
    • CmsJspLinkWrapper

      public CmsJspLinkWrapper(CmsObject cms, String link, boolean allowEmpty)
      Creates a new link wrapper.

      The link parameter should be in the same format that you enter in an XML content of field of type OpenCmsVarLink, i.e. either a full external URL or a site path with a query string attached.

      Parameters:
      cms - the CMS context
      link - the link to wrap
      allowEmpty - if true then empty links are allowed
  • Method Details