org.mortbay.jetty.servlet

Class XMLConfiguration

Implemented Interfaces:
Serializable, WebApplicationContext.Configuration
Known Direct Subclasses:
PlusWebAppContext.Configuration

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

Version:
$Revision: 1.20 $
Author:
gregw

Field Summary

protected XmlParser
xmlParser

Constructor Summary

XMLConfiguration()

Method Summary

void
configureClassPath()
Configure ClassPath.
void
configureDefaults()
void
configureWebApp()
WebApplicationContext
getWebApplicationContext()
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
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(String element, XmlParser.Node node)
Handle web.xml element.
protected void
initWelcomeFileList(XmlParser.Node node)
protected void
initialize(XmlParser.Node config)
void
setWebApplicationContext(WebApplicationContext context)
static XmlParser
webXmlParser()

Field Details

xmlParser

protected XmlParser xmlParser

Constructor Details

XMLConfiguration

public XMLConfiguration()

Method Details

configureClassPath

public void configureClassPath()
            throws 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

configureDefaults

public void configureDefaults()
            throws Exception
Specified by:
configureDefaults in interface WebApplicationContext.Configuration

configureWebApp

public void configureWebApp()
            throws Exception
Specified by:
configureWebApp in interface WebApplicationContext.Configuration

getWebApplicationContext

public WebApplicationContext getWebApplicationContext()
Specified by:
getWebApplicationContext in interface WebApplicationContext.Configuration

getWebApplicationHandler

public WebApplicationHandler getWebApplicationHandler()

initContextParam

protected void initContextParam(XmlParser.Node node)

initDisplayName

protected void initDisplayName(XmlParser.Node node)

initDistributable

protected void initDistributable(XmlParser.Node node)

initErrorPage

protected void initErrorPage(XmlParser.Node node)

initFilter

protected void initFilter(XmlParser.Node node)
            throws ClassNotFoundException,
                   UnavailableException

initFilterMapping

protected void initFilterMapping(XmlParser.Node node)

initJspConfig

protected void initJspConfig(XmlParser.Node node)

initListener

protected void initListener(XmlParser.Node node)

initLocaleEncodingList

protected void initLocaleEncodingList(XmlParser.Node node)

initLoginConfig

protected void initLoginConfig(XmlParser.Node node)

initMimeConfig

protected void initMimeConfig(XmlParser.Node node)

initSecurityConstraint

protected void initSecurityConstraint(XmlParser.Node node)

initSecurityRole

protected void initSecurityRole(XmlParser.Node node)

initServlet

protected void initServlet(XmlParser.Node node)
            throws ClassNotFoundException,
                   UnavailableException,
                   IOException,
                   MalformedURLException

initServletMapping

protected void initServletMapping(XmlParser.Node node)

initSessionConfig

protected void initSessionConfig(XmlParser.Node node)

initTagLib

protected void initTagLib(XmlParser.Node node)

initWebXmlElement

protected void initWebXmlElement(String element,
                                 XmlParser.Node node)
            throws 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.

initWelcomeFileList

protected void initWelcomeFileList(XmlParser.Node node)

initialize

protected void initialize(XmlParser.Node config)
            throws ClassNotFoundException,
                   UnavailableException

setWebApplicationContext

public void setWebApplicationContext(WebApplicationContext context)
Specified by:
setWebApplicationContext in interface WebApplicationContext.Configuration

webXmlParser

public static XmlParser webXmlParser()

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