Package net.i2p.router.web
Class WebAppConfiguration
java.lang.Object
net.i2p.router.web.WebAppConfiguration
- All Implemented Interfaces:
org.eclipse.jetty.ee8.webapp.Configuration
public class WebAppConfiguration
extends Object
implements org.eclipse.jetty.ee8.webapp.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.ee8.webapp.Configuration
org.eclipse.jetty.ee8.webapp.Configuration.Wrapper, org.eclipse.jetty.ee8.webapp.Configuration.WrapperFunction -
Field Summary
Fields inherited from interface org.eclipse.jetty.ee8.webapp.Configuration
ATTR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabort(org.eclipse.jetty.ee8.webapp.WebAppContext context) voidcloneConfigure(org.eclipse.jetty.ee8.webapp.WebAppContext template, org.eclipse.jetty.ee8.webapp.WebAppContext context) voidconfigure(org.eclipse.jetty.ee8.webapp.WebAppContext context) voiddeconfigure(org.eclipse.jetty.ee8.webapp.WebAppContext context) voiddestroy(org.eclipse.jetty.ee8.webapp.WebAppContext context) booleanvoidpostConfigure(org.eclipse.jetty.ee8.webapp.WebAppContext context) voidpreConfigure(org.eclipse.jetty.ee8.webapp.WebAppContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jetty.ee8.webapp.Configuration
getDependencies, getDependents, getServerClasses, getSystemClasses, isAvailable, replaces
-
Constructor Details
-
WebAppConfiguration
public WebAppConfiguration()
-
-
Method Details
-
deconfigure
public void deconfigure(org.eclipse.jetty.ee8.webapp.WebAppContext context) - Specified by:
deconfigurein interfaceorg.eclipse.jetty.ee8.webapp.Configuration- Since:
- Jetty 7
-
configure
- Specified by:
configurein interfaceorg.eclipse.jetty.ee8.webapp.Configuration- Throws:
Exception- Since:
- Jetty 7
-
cloneConfigure
public void cloneConfigure(org.eclipse.jetty.ee8.webapp.WebAppContext template, org.eclipse.jetty.ee8.webapp.WebAppContext context) - Since:
- Jetty 7
-
destroy
public void destroy(org.eclipse.jetty.ee8.webapp.WebAppContext context) - Specified by:
destroyin interfaceorg.eclipse.jetty.ee8.webapp.Configuration- Since:
- Jetty 7
-
preConfigure
public void preConfigure(org.eclipse.jetty.ee8.webapp.WebAppContext context) - Specified by:
preConfigurein interfaceorg.eclipse.jetty.ee8.webapp.Configuration- Since:
- Jetty 7
-
postConfigure
public void postConfigure(org.eclipse.jetty.ee8.webapp.WebAppContext context) - Specified by:
postConfigurein interfaceorg.eclipse.jetty.ee8.webapp.Configuration- Since:
- Jetty 7
-
abort
public boolean abort(org.eclipse.jetty.ee8.webapp.WebAppContext context) - Specified by:
abortin interfaceorg.eclipse.jetty.ee8.webapp.Configuration- Since:
- Jetty 12
-
isEnabledByDefault
public boolean isEnabledByDefault()- Specified by:
isEnabledByDefaultin interfaceorg.eclipse.jetty.ee8.webapp.Configuration- Since:
- Jetty 12
-