net.i2p.router.web
Class WebAppConfiguration

java.lang.Object
  extended by net.i2p.router.web.WebAppConfiguration
All Implemented Interfaces:
java.io.Serializable, org.mortbay.jetty.servlet.WebApplicationContext.Configuration

public class WebAppConfiguration
extends java.lang.Object
implements org.mortbay.jetty.servlet.WebApplicationContext.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
See Also:
Serialized Form

Constructor Summary
WebAppConfiguration()
           
 
Method Summary
 void configureClassPath()
           
 void configureDefaults()
           
 void configureWebApp()
           
 org.mortbay.jetty.servlet.WebApplicationContext getWebApplicationContext()
           
 void setWebApplicationContext(org.mortbay.jetty.servlet.WebApplicationContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebAppConfiguration

public WebAppConfiguration()
Method Detail

setWebApplicationContext

public void setWebApplicationContext(org.mortbay.jetty.servlet.WebApplicationContext context)
Specified by:
setWebApplicationContext in interface org.mortbay.jetty.servlet.WebApplicationContext.Configuration

getWebApplicationContext

public org.mortbay.jetty.servlet.WebApplicationContext getWebApplicationContext()
Specified by:
getWebApplicationContext in interface org.mortbay.jetty.servlet.WebApplicationContext.Configuration

configureClassPath

public void configureClassPath()
                        throws java.lang.Exception
Specified by:
configureClassPath in interface org.mortbay.jetty.servlet.WebApplicationContext.Configuration
Throws:
java.lang.Exception

configureDefaults

public void configureDefaults()
Specified by:
configureDefaults in interface org.mortbay.jetty.servlet.WebApplicationContext.Configuration

configureWebApp

public void configureWebApp()
Specified by:
configureWebApp in interface org.mortbay.jetty.servlet.WebApplicationContext.Configuration