com.ibm.portal.spa.parser
Interface StaticPageContentHandlerEx

All Superinterfaces:
StaticPageContentHandler
All Known Implementing Classes:
DefaultStaticPageContentHandler

public interface StaticPageContentHandlerEx
extends StaticPageContentHandler

Callback handler interface that is called by the parser to signal the semantical structure of the markup document. Only those tags that are important for SPA are signaled.

Since:
8.5
Note:
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
 
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 endBody()
          Called right before the Constants#ELEMENT_BODY will be written.
 void endHead()
          Called right before the Constants#ELEMENT_HEAD will be written.
 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 startHead()
          Called right after the Constants#ELEMENT_HEAD element has been started.
 void titleTag(java.lang.String title, org.xml.sax.Attributes atts)
          Called for the content of a Constants#ELEMENT_TITLE element.
 
Methods inherited from interface com.ibm.portal.spa.parser.StaticPageContentHandler
characters, endDocument, endPortletContainer, endPortletWindow, startDocument, startPortletContainer, startPortletWindow
 

Method Detail

anchorTag

void anchorTag(java.lang.String url,
               org.xml.sax.Attributes atts)
               throws java.io.IOException
Called for the 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.

Parameters:
url - current value of the attribute in its escaped format
atts - list of all available attributes
Throws:
java.io.IOException

baseTag

void baseTag(java.lang.String url,
             org.xml.sax.Attributes atts)
             throws java.io.IOException
Called for the 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.

Parameters:
url - current value of the attribute in its escaped format
atts - list of all available attributes
Throws:
java.io.IOException

endBody

void endBody()
             throws java.io.IOException
Called right before the Constants#ELEMENT_BODY will be written. Implementations can override this method to inject content before ending the body.

Throws:
java.io.IOException

endHead

void endHead()
             throws java.io.IOException
Called right before the Constants#ELEMENT_HEAD will be written. Implementations can override this method to inject content before ending the head.

Throws:
java.io.IOException

imageTag

void imageTag(java.lang.String url,
              org.xml.sax.Attributes atts)
              throws java.io.IOException
Called for the 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.

Parameters:
url - current value of the attribute in its escaped format
atts - list of all available attributes
Throws:
java.io.IOException

linkTag

void linkTag(java.lang.String url,
             org.xml.sax.Attributes atts)
             throws java.io.IOException
Called for the 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.

Parameters:
url - current value of the attribute in its escaped format
atts - list of all available attributes
Throws:
java.io.IOException

metaTag

void metaTag(java.lang.String value,
             org.xml.sax.Attributes atts)
             throws java.io.IOException
Called for the 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.

Parameters:
url - current value of the attribute in its escaped format
atts - list of all available attributes
Throws:
java.io.IOException

scriptTag

void scriptTag(java.lang.String url,
               org.xml.sax.Attributes atts)
               throws java.io.IOException
Called for the 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.

Parameters:
url - current value of the attribute in its escaped format
atts - list of all available attributes
Throws:
java.io.IOException

startBody

void startBody()
               throws java.io.IOException
Called right after the Constants#ELEMENT_BODY element has been started. Implementations can override this method to inject content after the body.

Throws:
java.io.IOException

startHead

void startHead()
               throws java.io.IOException
Called right after the Constants#ELEMENT_HEAD element has been started. Implementations can override this method to inject content after the body.

Throws:
java.io.IOException

titleTag

void titleTag(java.lang.String title,
              org.xml.sax.Attributes atts)
              throws java.io.IOException
Called for the content of a 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.

Parameters:
title - current value of the content in its escaped format
atts - list of all available attributes
Throws:
java.io.IOException