java.lang.Object
com.sitemesh.parser.AbstractPage
com.sitemesh.parser.AbstractHTMLPage
- All Implemented Interfaces:
- com.sitemesh.HTMLPage, com.sitemesh.Page
- Direct Known Subclasses:
- DOMPage
- public abstract class AbstractHTMLPage
- extends AbstractPage
- implements com.sitemesh.HTMLPage
Abstract implementation of com.sitemesh.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 $
| 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 |
| Methods inherited from interface com.sitemesh.Page |
getBooleanProperty, getContentLength, getIntProperty, getLongProperty, getProperties, getProperty, getPropertyKeys, getPropertySize, getRequest, isPropertySet, setRequest, shouldCache, writePage, writePage |
AbstractHTMLPage
public AbstractHTMLPage()
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 com.sitemesh.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 com.sitemesh.HTMLPage
writeHead
public void writeHead(java.io.OutputStream out)
throws java.io.IOException
- Calls
writeHead(java.io.Writer) 55
- Specified by:
writeHead in interface com.sitemesh.HTMLPage
writeBody
public void writeBody(java.io.OutputStream out)
throws java.io.IOException
- Calls
writeBody(java.io.Writer) 55
- Specified by:
writeBody in interface com.sitemesh.HTMLPage
getTitle
public java.lang.String getTitle()
- Return title of from "title" property. Never returns null.
- Specified by:
getTitle in interface com.sitemesh.HTMLPage
getDecoratorName
public java.lang.String getDecoratorName()
- Return decorator name of from "decorator" property. Never returns null.
- Specified by:
getDecoratorName in interface com.sitemesh.HTMLPage