|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.portal.spa.parser.helper.DefaultStaticPageContentHandler
public class DefaultStaticPageContentHandler
Default implementation of a StaticPageContentHandler
that simply
ignores all events. This class is meant to be subclassed by real handlers.
This interface is designed to be implemented by clients. |
Field Summary |
---|
Fields inherited from interface com.ibm.portal.spa.parser.StaticPageContentHandler |
---|
ATTR_SCOPE, ATTR_SKIN, IWIDGET_DEFINITION |
Constructor Summary | |
---|---|
DefaultStaticPageContentHandler()
|
Method Summary | |
---|---|
void |
anchorTag(java.lang.String url,
org.xml.sax.Attributes atts)
Called for the Constants#ATTR_HREF attribute of a
Constants#ELEMENT_A element. |
void |
baseTag(java.lang.String url,
org.xml.sax.Attributes atts)
Called for the Constants#ATTR_HREF attribute of a
Constants#ELEMENT_BASE element. |
void |
characters(char[] ch,
int start,
int length)
Signals a character sequence that does not contain any important semantic. |
void |
endBody()
Called right before the Constants#ELEMENT_BODY will be written. |
void |
endDocument()
Signaled after the parsing is complete. |
void |
endHead()
Called right before the Constants#ELEMENT_HEAD will be written. |
void |
endPortletContainer(java.lang.String name)
Signals the end of a portlet container. |
void |
endPortletWindow(java.lang.String name)
Signals the end of a portlet window. |
void |
imageTag(java.lang.String url,
org.xml.sax.Attributes atts)
Called for the Constants#ATTR_SRC attribute of a
Constants#ELEMENT_IMG element. |
void |
linkTag(java.lang.String url,
org.xml.sax.Attributes atts)
Called for the Constants#ATTR_HREF attribute of a
Constants#ELEMENT_LINK element. |
void |
metaTag(java.lang.String value,
org.xml.sax.Attributes atts)
Called for the Constants#ATTR_CONTENT attribute of a
Constants#ELEMENT_META element. |
void |
scriptTag(java.lang.String url,
org.xml.sax.Attributes atts)
Called for the Constants#ATTR_HREF attribute of a
Constants#ELEMENT_SCRIPT element. |
void |
startBody()
Called right after the Constants#ELEMENT_BODY element has been
started. |
void |
startDocument(boolean bIsPageEmbedType)
Signaled before any other event is thrown. |
void |
startHead()
Called right after the Constants#ELEMENT_HEAD element has been
started. |
void |
startPortletContainer(java.lang.String name,
org.xml.sax.Attributes attrs)
Signals the start of a portlet container. |
org.xml.sax.ContentHandler |
startPortletWindow(java.lang.String name,
java.lang.String definition,
org.xml.sax.Attributes attrs)
Signals the start of a portlet window (or a different type of control). |
void |
titleTag(java.lang.String title,
org.xml.sax.Attributes atts)
Called for the content of a Constants#ELEMENT_TITLE element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultStaticPageContentHandler()
Method Detail |
---|
public void anchorTag(java.lang.String url, org.xml.sax.Attributes atts) throws java.io.IOException
StaticPageContentHandlerEx
Constants#ATTR_HREF
attribute of a
Constants#ELEMENT_A
element. An implementation can use the
StaticPageContentHandler.characters(char[], int, int)
method to
write a new escaped value. Without dispatching, the attribute in the
output will be empty.
anchorTag
in interface StaticPageContentHandlerEx
url
- current value of the attribute in its escaped formatatts
- list of all available attributes
java.io.IOException
public void baseTag(java.lang.String url, org.xml.sax.Attributes atts) throws java.io.IOException
StaticPageContentHandlerEx
Constants#ATTR_HREF
attribute of a
Constants#ELEMENT_BASE
element. An implementation can use the
StaticPageContentHandler.characters(char[], int, int)
method to
write a new escaped value. Without dispatching, the attribute in the
output will be empty.
baseTag
in interface StaticPageContentHandlerEx
url
- current value of the attribute in its escaped formatatts
- list of all available attributes
java.io.IOException
public void characters(char[] ch, int start, int length) throws java.io.IOException
StaticPageContentHandler
characters
in interface StaticPageContentHandler
ch
- backing character arraystart
- position of the first character in the arraylength
- length of the valid sequence.
java.io.IOException
public void endBody() throws java.io.IOException
StaticPageContentHandlerEx
Constants#ELEMENT_BODY
will be written.
Implementations can override this method to inject content before ending
the body.
endBody
in interface StaticPageContentHandlerEx
java.io.IOException
public void endDocument() throws java.io.IOException
StaticPageContentHandler
endDocument
in interface StaticPageContentHandler
java.io.IOException
public void endHead() throws java.io.IOException
StaticPageContentHandlerEx
Constants#ELEMENT_HEAD
will be written.
Implementations can override this method to inject content before ending
the head.
endHead
in interface StaticPageContentHandlerEx
java.io.IOException
public void endPortletContainer(java.lang.String name) throws java.io.IOException
StaticPageContentHandler
endPortletContainer
in interface StaticPageContentHandler
name
- name of the container, unique across the markup document
java.io.IOException
public void endPortletWindow(java.lang.String name) throws java.io.IOException
StaticPageContentHandler
endPortletWindow
in interface StaticPageContentHandler
name
- name of the window, unique across the markup document
java.io.IOException
public void imageTag(java.lang.String url, org.xml.sax.Attributes atts) throws java.io.IOException
StaticPageContentHandlerEx
Constants#ATTR_SRC
attribute of a
Constants#ELEMENT_IMG
element. An implementation can use the
StaticPageContentHandler.characters(char[], int, int)
method to
write a new escaped value. Without dispatching, the attribute in the
output will be empty.
imageTag
in interface StaticPageContentHandlerEx
url
- current value of the attribute in its escaped formatatts
- list of all available attributes
java.io.IOException
public void linkTag(java.lang.String url, org.xml.sax.Attributes atts) throws java.io.IOException
StaticPageContentHandlerEx
Constants#ATTR_HREF
attribute of a
Constants#ELEMENT_LINK
element. An implementation can use the
StaticPageContentHandler.characters(char[], int, int)
method to
write a new escaped value. Without dispatching, the attribute in the
output will be empty.
linkTag
in interface StaticPageContentHandlerEx
url
- current value of the attribute in its escaped formatatts
- list of all available attributes
java.io.IOException
public void metaTag(java.lang.String value, org.xml.sax.Attributes atts) throws java.io.IOException
StaticPageContentHandlerEx
Constants#ATTR_CONTENT
attribute of a
Constants#ELEMENT_META
element. An implementation can use the
StaticPageContentHandler.characters(char[], int, int)
method to
write a new escaped value. Without dispatching, the attribute in the
output will be empty.
metaTag
in interface StaticPageContentHandlerEx
atts
- list of all available attributes
java.io.IOException
public void scriptTag(java.lang.String url, org.xml.sax.Attributes atts) throws java.io.IOException
StaticPageContentHandlerEx
Constants#ATTR_HREF
attribute of a
Constants#ELEMENT_SCRIPT
element. An implementation can use the
StaticPageContentHandler.characters(char[], int, int)
method to
write a new escaped value. Without dispatching, the attribute in the
output will be empty.
scriptTag
in interface StaticPageContentHandlerEx
url
- current value of the attribute in its escaped formatatts
- list of all available attributes
java.io.IOException
public void startBody() throws java.io.IOException
StaticPageContentHandlerEx
Constants#ELEMENT_BODY
element has been
started. Implementations can override this method to inject content after
the body.
startBody
in interface StaticPageContentHandlerEx
java.io.IOException
public void startDocument(boolean bIsPageEmbedType) throws java.io.IOException
StaticPageContentHandler
startDocument
in interface StaticPageContentHandler
bIsPageEmbedType
- true, if the parsed file contains html element. Otherwise
return false.
java.io.IOException
public void startHead() throws java.io.IOException
StaticPageContentHandlerEx
Constants#ELEMENT_HEAD
element has been
started. Implementations can override this method to inject content after
the body.
startHead
in interface StaticPageContentHandlerEx
java.io.IOException
public void startPortletContainer(java.lang.String name, org.xml.sax.Attributes attrs) throws java.io.IOException
StaticPageContentHandler
startPortletContainer
in interface StaticPageContentHandler
name
- name of the container, unique across the markup documentattrs
- optional attribute map
java.io.IOException
public org.xml.sax.ContentHandler startPortletWindow(java.lang.String name, java.lang.String definition, org.xml.sax.Attributes attrs) throws java.io.IOException
StaticPageContentHandler
StaticPageContentHandler.IWIDGET_DEFINITION
. The microformat is passed on to the
ContentHandler
that is returned by the method.
List of known attributes:
startPortletWindow
in interface StaticPageContentHandler
name
- name of the window, unique across the markup documentdefinition
- identification of the portlet definition.attrs
- optional attribute map
ContentHandler
that receives events that
describe the payload of the window.
java.io.IOException
public void titleTag(java.lang.String title, org.xml.sax.Attributes atts) throws java.io.IOException
StaticPageContentHandlerEx
Constants#ELEMENT_TITLE
element. An
implementation can use the
StaticPageContentHandler.characters(char[], int, int)
method to
write a new escaped value. Without dispatching, the value in the output
will be empty.
titleTag
in interface StaticPageContentHandlerEx
title
- current value of the content in its escaped formatatts
- list of all available attributes
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |