Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sitemesh.parser
Class AbstractHTMLPage  view AbstractHTMLPage download AbstractHTMLPage.java

java.lang.Object
  extended bycom.sitemesh.parser.AbstractPage
      extended bycom.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 $

Field Summary
 
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) 55
abstract  void writeBody(java.io.Writer out)
          Write data of html <body> tag.
 void writeHead(java.io.OutputStream out)
          Calls writeHead(java.io.Writer) 55
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
 
Methods inherited from interface com.sitemesh.Page
getBooleanProperty, getContentLength, getIntProperty, getLongProperty, getProperties, getProperty, getPropertyKeys, getPropertySize, getRequest, isPropertySet, setRequest, shouldCache, writePage, writePage
 

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 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