org.mortbay.jetty.ant
Class JettyWebAppConfiguration

java.lang.Object
  extended by org.eclipse.jetty.webapp.AbstractConfiguration
      extended by org.eclipse.jetty.webapp.WebXmlConfiguration
          extended by org.mortbay.jetty.ant.JettyWebAppConfiguration
All Implemented Interfaces:
org.eclipse.jetty.webapp.Configuration

public class JettyWebAppConfiguration
extends org.eclipse.jetty.webapp.WebXmlConfiguration

This configuration object provides additional way to inject application properties into the configured web application. The list of classpath files, the application base directory and web.xml file could be specified in this way.

Author:
Jakub Pawlowicz, Athena Yao

Constructor Summary
JettyWebAppConfiguration()
           
 
Method Summary
 void configure(org.eclipse.jetty.webapp.WebAppContext context)
          Adds classpath files into web application classloader, and sets web.xml and base directory for the configured web application.
 java.io.File getWebDefaultXmlFile()
           
 void setClassPathFiles(java.util.List classPathFiles)
           
 void setWebAppBaseDir(java.io.File webAppBaseDir)
           
 void setWebDefaultXmlFile(java.io.File webDefaultXmlfile)
           
 void setWebXmlFile(java.io.File webXmlFile)
           
 
Methods inherited from class org.eclipse.jetty.webapp.WebXmlConfiguration
deconfigure, findWebXml, preConfigure
 
Methods inherited from class org.eclipse.jetty.webapp.AbstractConfiguration
cloneConfigure, postConfigure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettyWebAppConfiguration

public JettyWebAppConfiguration()
                         throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException
Method Detail

getWebDefaultXmlFile

public java.io.File getWebDefaultXmlFile()

setWebDefaultXmlFile

public void setWebDefaultXmlFile(java.io.File webDefaultXmlfile)

setClassPathFiles

public void setClassPathFiles(java.util.List classPathFiles)

setWebAppBaseDir

public void setWebAppBaseDir(java.io.File webAppBaseDir)

setWebXmlFile

public void setWebXmlFile(java.io.File webXmlFile)

configure

public void configure(org.eclipse.jetty.webapp.WebAppContext context)
               throws java.lang.Exception
Adds classpath files into web application classloader, and sets web.xml and base directory for the configured web application.

Specified by:
configure in interface org.eclipse.jetty.webapp.Configuration
Overrides:
configure in class org.eclipse.jetty.webapp.WebXmlConfiguration
Throws:
java.lang.Exception
See Also:
Configuration#configure(WebAppContext)


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.