com.sitemesh.parser
Class AbstractHTMLPage

java.lang.Object
  |
  +--com.sitemesh.parser.AbstractPage
        |
        +--com.sitemesh.parser.AbstractHTMLPage
Direct Known Subclasses:
DOMPage

public abstract class AbstractHTMLPage
extends AbstractPage
implements HTMLPage

Abstract implementation of HTMLPage.

Adds to AbstractPage some HTML methods. To implement, follow guidelines of super-class, and implement the 2 abstract methods states below.

Version:
$Revision: 1.5 $
Author:
Joe Walnes
See Also:
AbstractPage, HTMLPage

Fields inherited from class com.sitemesh.parser.AbstractPage
pageData, request
 
Constructor Summary
AbstractHTMLPage()
           
 
Method Summary
 java.lang.String getDecoratorName()
          Return decorator name of from "decorator" property.
 java.lang.String getTitle()
          Return title of from "title" property.
 void writeBody(java.io.OutputStream out)
          Calls writeBody(java.io.Writer)
abstract  void writeBody(java.io.Writer out)
          Write data of html <body> tag.
 void writeHead(java.io.OutputStream out)
          Calls writeHead(java.io.Writer)
abstract  void writeHead(java.io.Writer out)
          Write data of html <head> tag.
 
Methods inherited from class com.sitemesh.parser.AbstractPage
addProperty, getBooleanProperty, getContentLength, getIntProperty, getLongProperty, getProperties, getProperty, getPropertyKeys, getPropertySize, getRequest, isPropertySet, noNull, setRequest, shouldCache, writePage, writePage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHTMLPage

public AbstractHTMLPage()
Method Detail

writeHead

public abstract void writeHead(java.io.Writer out)
                        throws java.io.IOException
Write data of html <head> tag.

Must be implemented. Data written should not actually contain the head tags, but all the data in between.

Specified by:
writeHead in interface HTMLPage

writeBody

public abstract void writeBody(java.io.Writer out)
                        throws java.io.IOException
Write data of html <body> tag.

Must be implemented. Data written should not actually contain the body tags, but all the data in between.

Specified by:
writeBody in interface HTMLPage

writeHead

public void writeHead(java.io.OutputStream out)
               throws java.io.IOException
Calls writeHead(java.io.Writer)
Specified by:
writeHead in interface HTMLPage

writeBody

public void writeBody(java.io.OutputStream out)
               throws java.io.IOException
Calls writeBody(java.io.Writer)
Specified by:
writeBody in interface HTMLPage

getTitle

public java.lang.String getTitle()
Return title of from "title" property. Never returns null.
Specified by:
getTitle in interface HTMLPage

getDecoratorName

public java.lang.String getDecoratorName()
Return decorator name of from "decorator" property. Never returns null.
Specified by:
getDecoratorName in interface HTMLPage