Class HTMLPage2Content

  • All Implemented Interfaces:
    Content

    public class HTMLPage2Content
    extends Object
    implements Content
    Adapts a SiteMesh 2 HTMLPage to a SiteMesh 3 Content.
    Since:
    SiteMesh 3
    Author:
    Joe Walnes
    • Constructor Detail

      • HTMLPage2Content

        public HTMLPage2Content​(HTMLPage page)
    • Method Detail

      • originalLength

        public int originalLength()
        Description copied from interface: Content
        Length of the original unprocessed content.
        Specified by:
        originalLength in interface Content
      • getTitle

        public String getTitle()
        Description copied from interface: Content
        Get the Title of the document
        Specified by:
        getTitle in interface Content
      • getProperty

        public String getProperty​(String name)
        Description copied from interface: Content
        Get a property embedded into the Page as a String.
        Specified by:
        getProperty in interface Content
        Parameters:
        name - Name of property
        Returns:
        Property value
      • getPropertyKeys

        public String[] getPropertyKeys()
        Description copied from interface: Content
        Get all available property keys for the Page.
        Specified by:
        getPropertyKeys in interface Content
        Returns:
        Property keys
      • addProperty

        public void addProperty​(String name,
                                String value)
        Description copied from interface: Content
        Manually add a property to page.
        Specified by:
        addProperty in interface Content