public interface HTMLPage extends Page
Page
providing access to HTML data.
The page is parsed and the <title>
, <head>
(minus the <title>
) and <body>
are split
into chunks. These can then be used by a Decorator
.
Properties are also extracted from the HTML.
When the page is parsed, values from certain tags are added to the properties to allow easy access to them. The following tags have properties extracted from them.
<html>
tag shall be added as properties.
<title>
tag
shall be added as the title
property.
<meta>
tags with
name
and content
attributes
will be added with the meta
prefix.
<body>
tag
shall be added as properties with the
body
prefix.
template=funky title=My Funky Page meta.description=Description of my page. meta.author=Bob body.text=#ff00ff body.bgcolor=green My Funky Page ... ...
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHead()
Convenience method to return the contents of the
<head> tag as a String. |
boolean |
isFrameSet()
Check to see if this page contains an
HTML frameset.
|
void |
setFrameSet(boolean frameset)
Marks this page as a frameset.
|
void |
writeHead(java.io.Writer out)
Write the contents of the
<head> tag. |
addProperty, getBody, getBooleanProperty, getIntProperty, getLongProperty, getPage, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, setRequest, writeBody, writePage
void writeHead(java.io.Writer out) throws java.io.IOException
<head>
tag.java.io.IOException
java.lang.String getHead()
<head>
tag as a String.writeHead(java.io.Writer)
boolean isFrameSet()
void setFrameSet(boolean frameset)
isFrameSet()