org.mortbay.jetty.ant
Class JettyWebAppConfiguration
java.lang.Object
org.eclipse.jetty.webapp.AbstractConfiguration
org.eclipse.jetty.webapp.WebXmlConfiguration
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
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 |
JettyWebAppConfiguration
public JettyWebAppConfiguration()
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
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.