Interface Content

All Known Implementing Classes:
HTMLPage2Content

public interface Content
The Interface Content.
Since:
SiteMesh 3
Author:
Joe Walnes
  • Method Details

    • writeOriginal

      void writeOriginal(Writer writer) throws IOException
      Write out the original unprocessed content.
      Parameters:
      writer - the writer
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • writeBody

      void writeBody(Writer out) throws IOException
      Write the contents of the <body> tag.
      Parameters:
      out - the out
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • writeHead

      void writeHead(Writer out) throws IOException
      Write the contents of the <head> tag.
      Parameters:
      out - the out
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • getTitle

      String getTitle()
      Get the Title of the document.
      Returns:
      the title
    • getProperty

      String getProperty(String name)
      Get a property embedded into the Page as a String.
      Parameters:
      name - Name of property
      Returns:
      Property value
    • getPropertyKeys

      String[] getPropertyKeys()
      Get all available property keys for the Page.
      Returns:
      Property keys
    • addProperty

      void addProperty(String name, String value)
      Manually add a property to page.
      Parameters:
      name - the name
      value - the value