org.mortbay.jetty.servlet
Class XMLConfiguration

java.lang.Object
  extended by org.mortbay.jetty.servlet.XMLConfiguration
All Implemented Interfaces:
java.io.Serializable, WebApplicationContext.Configuration
Direct Known Subclasses:
PlusWebAppContext.Configuration

public class XMLConfiguration
extends java.lang.Object
implements WebApplicationContext.Configuration

Version:
$Revision: 1.20 $
Author:
gregw
See Also:
Serialized Form

Field Summary
protected  XmlParser xmlParser
           
 
Constructor Summary
XMLConfiguration()
           
 
Method Summary
 void configureClassPath()
          Configure ClassPath.
 void configureDefaults()
          Configure Defaults.
 void configureWebApp()
          Configure WebApp.
 WebApplicationContext getWebApplicationContext()
          Get the context on which the configuration is performed.
 WebApplicationHandler getWebApplicationHandler()
           
protected  void initContextParam(XmlParser.Node node)
           
protected  void initDisplayName(XmlParser.Node node)
           
protected  void initDistributable(XmlParser.Node node)
           
protected  void initErrorPage(XmlParser.Node node)
           
protected  void initFilter(XmlParser.Node node)
           
protected  void initFilterMapping(XmlParser.Node node)
           
protected  void initialize(XmlParser.Node config)
           
protected  void initJspConfig(XmlParser.Node node)
           
protected  void initListener(XmlParser.Node node)
           
protected  void initLocaleEncodingList(XmlParser.Node node)
           
protected  void initLoginConfig(XmlParser.Node node)
           
protected  void initMimeConfig(XmlParser.Node node)
           
protected  void initSecurityConstraint(XmlParser.Node node)
           
protected  void initSecurityRole(XmlParser.Node node)
           
protected  void initServlet(XmlParser.Node node)
           
protected  void initServletMapping(XmlParser.Node node)
           
protected  void initSessionConfig(XmlParser.Node node)
           
protected  void initTagLib(XmlParser.Node node)
           
protected  void initWebXmlElement(java.lang.String element, XmlParser.Node node)
          Handle web.xml element.
protected  void initWelcomeFileList(XmlParser.Node node)
           
 void setWebApplicationContext(WebApplicationContext context)
          Set up a context on which to perform the configuration.
static XmlParser webXmlParser()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmlParser

protected XmlParser xmlParser
Constructor Detail

XMLConfiguration

public XMLConfiguration()
Method Detail

webXmlParser

public static XmlParser webXmlParser()

setWebApplicationContext

public void setWebApplicationContext(WebApplicationContext context)
Description copied from interface: WebApplicationContext.Configuration
Set up a context on which to perform the configuration.

Specified by:
setWebApplicationContext in interface WebApplicationContext.Configuration

getWebApplicationContext

public WebApplicationContext getWebApplicationContext()
Description copied from interface: WebApplicationContext.Configuration
Get the context on which the configuration is performed.

Specified by:
getWebApplicationContext in interface WebApplicationContext.Configuration
Returns:

getWebApplicationHandler

public WebApplicationHandler getWebApplicationHandler()

configureClassPath

public void configureClassPath()
                        throws java.lang.Exception
Configure ClassPath. This method is called before the context ClassLoader is created. Paths and libraries should be added to the context using the setClassPath, addClassPath and addClassPaths methods. The default implementation looks for WEB-INF/classes, WEB-INF/lib/*.zip and WEB-INF/lib/*.jar

Specified by:
configureClassPath in interface WebApplicationContext.Configuration
Throws:
java.lang.Exception

configureDefaults

public void configureDefaults()
                       throws java.lang.Exception
Description copied from interface: WebApplicationContext.Configuration
Configure Defaults. This method is called to intialize the context to the containers default configuration. Typically this would mean application of the webdefault.xml file. The default implementation does nothing.

Specified by:
configureDefaults in interface WebApplicationContext.Configuration
Throws:
java.lang.Exception

configureWebApp

public void configureWebApp()
                     throws java.lang.Exception
Description copied from interface: WebApplicationContext.Configuration
Configure WebApp. This method is called to apply the standard and vendor deployment descriptors. Typically this is web.xml and jetty-web.xml. The default implementation does nothing.

Specified by:
configureWebApp in interface WebApplicationContext.Configuration
Throws:
java.lang.Exception

initialize

protected void initialize(XmlParser.Node config)
                   throws java.lang.ClassNotFoundException,
                          UnavailableException
Throws:
java.lang.ClassNotFoundException
UnavailableException

initWebXmlElement

protected void initWebXmlElement(java.lang.String element,
                                 XmlParser.Node node)
                          throws java.lang.Exception
Handle web.xml element. This method is called for each top level element within the web.xml file. It may be specialized by derived WebApplicationContexts to provide additional configuration and handling.

Parameters:
element - The element name
node - The node containing the element.
Throws:
java.lang.Exception

initDisplayName

protected void initDisplayName(XmlParser.Node node)

initContextParam

protected void initContextParam(XmlParser.Node node)

initFilter

protected void initFilter(XmlParser.Node node)
                   throws java.lang.ClassNotFoundException,
                          UnavailableException
Throws:
java.lang.ClassNotFoundException
UnavailableException

initFilterMapping

protected void initFilterMapping(XmlParser.Node node)

initServlet

protected void initServlet(XmlParser.Node node)
                    throws java.lang.ClassNotFoundException,
                           UnavailableException,
                           java.io.IOException,
                           java.net.MalformedURLException
Throws:
java.lang.ClassNotFoundException
UnavailableException
java.io.IOException
java.net.MalformedURLException

initServletMapping

protected void initServletMapping(XmlParser.Node node)

initListener

protected void initListener(XmlParser.Node node)

initDistributable

protected void initDistributable(XmlParser.Node node)

initSessionConfig

protected void initSessionConfig(XmlParser.Node node)

initMimeConfig

protected void initMimeConfig(XmlParser.Node node)

initWelcomeFileList

protected void initWelcomeFileList(XmlParser.Node node)

initLocaleEncodingList

protected void initLocaleEncodingList(XmlParser.Node node)

initErrorPage

protected void initErrorPage(XmlParser.Node node)

initTagLib

protected void initTagLib(XmlParser.Node node)

initJspConfig

protected void initJspConfig(XmlParser.Node node)

initSecurityConstraint

protected void initSecurityConstraint(XmlParser.Node node)

initLoginConfig

protected void initLoginConfig(XmlParser.Node node)

initSecurityRole

protected void initSecurityRole(XmlParser.Node node)


Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.