Package net.i2p.router.web
Class WebAppConfiguration
java.lang.Object
net.i2p.router.web.WebAppConfiguration
- All Implemented Interfaces:
Configuration
public class WebAppConfiguration extends Object implements Configuration
Add to the webapp classpath as specified in webapps.config.
This allows us to reference classes that are not in the classpath
specified in wrapper.config, since old installations have
individual jars and not lib/*.jar specified in wrapper.config.
A sample line in webapps.config is:
webapps.appname.classpath=foo.jar,$I2P/lib/bar.jar
Unless $I2P is specified the path will be relative to $I2P/lib for
webapps in the installation and appDir/plugins/appname/lib for plugins.
Sadly, setting Class-Path in MANIFEST.MF doesn't work for jetty wars.
We could look there ourselves, or look for another properties file in the war,
but let's just do it in webapps.config.
No, wac.addClassPath() does not work. For more info see:
http://servlets.com/archive/servlet/ReadMsg?msgId=511113&listName=jetty-support
- Since:
- 0.7.12
- Author:
- zzz
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.webapp.Configuration
Configuration.ClassList -
Field Summary
-
Constructor Summary
Constructors Constructor Description WebAppConfiguration() -
Method Summary
Modifier and Type Method Description voidcloneConfigure(WebAppContext template, WebAppContext context)voidconfigure(WebAppContext context)voiddeconfigure(WebAppContext context)voiddestroy(WebAppContext context)voidpostConfigure(WebAppContext context)voidpreConfigure(WebAppContext context)
-
Constructor Details
-
WebAppConfiguration
public WebAppConfiguration()
-
-
Method Details
-
deconfigure
- Specified by:
deconfigurein interfaceConfiguration- Since:
- Jetty 7
-
configure
- Specified by:
configurein interfaceConfiguration- Throws:
Exception- Since:
- Jetty 7
-
cloneConfigure
- Specified by:
cloneConfigurein interfaceConfiguration- Since:
- Jetty 7
-
destroy
- Specified by:
destroyin interfaceConfiguration- Since:
- Jetty 7
-
preConfigure
- Specified by:
preConfigurein interfaceConfiguration- Since:
- Jetty 7
-
postConfigure
- Specified by:
postConfigurein interfaceConfiguration- Since:
- Jetty 7
-