javawebparts.ajaxparts.taglib
Class AjaxInit

java.lang.Object
  |
  +--javawebparts.ajaxparts.taglib.AjaxInit

public class AjaxInit
extends java.lang.Object

This class is responsible for all configuration tasks to prepare for Ajax functionality. It contains two main pieces of functionality: (a) it parses the configuration file named by the ajaxConfig context init parameter, and (b) adds the STD handlers to the configuration information. This is called from the AjaxEventTag or AjaxEnableTag class, if the AjaxConfig has not been frozen.

Author:
Frank W. Zammetti

Field Summary
private static org.apache.commons.logging.Log log
          Log instance.
 
Constructor Summary
AjaxInit()
           
 
Method Summary
private  void addSTDHandlers()
          This method is responsible for adding all the STD handlers to the configuration.
 void init(javax.servlet.ServletContext sc)
          The container calls this when the context is initialzed.
private  void parseConfig(javax.servlet.ServletContext sc)
          This method is responsible for parsing the config file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log
Log instance.

Constructor Detail

AjaxInit

public AjaxInit()
Method Detail

init

public void init(javax.servlet.ServletContext sc)
The container calls this when the context is initialzed.

Parameters:
sc - ServletContext instance reference.

parseConfig

private void parseConfig(javax.servlet.ServletContext sc)
                  throws org.xml.sax.SAXException,
                         java.io.IOException
This method is responsible for parsing the config file.

Parameters:
sc - ServletContext reference.
Throws:
org.xml.sax.SAXException - If anything goes wrong.
java.io.IOException - If anything goes wrong.

addSTDHandlers

private void addSTDHandlers()
This method is responsible for adding all the STD handlers to the configuration.



Copyright © 2005 Frank W. Zammetti