org.mortbay.jetty.plugin
Class MavenWebInfConfiguration

java.lang.Object
  extended by org.eclipse.jetty.webapp.AbstractConfiguration
      extended by org.eclipse.jetty.webapp.WebInfConfiguration
          extended by org.mortbay.jetty.plugin.MavenWebInfConfiguration
All Implemented Interfaces:
org.eclipse.jetty.webapp.Configuration

public class MavenWebInfConfiguration
extends org.eclipse.jetty.webapp.WebInfConfiguration


Field Summary
protected  org.eclipse.jetty.util.resource.Resource _originalResourceBase
           
protected  org.eclipse.jetty.util.resource.Resource[] _unpackedOverlays
           
 
Fields inherited from class org.eclipse.jetty.webapp.WebInfConfiguration
_preUnpackBaseResource, CONTAINER_JAR_PATTERN, RESOURCE_URLS, TEMPDIR_CONFIGURED, WEBINF_JAR_PATTERN
 
Constructor Summary
MavenWebInfConfiguration()
           
 
Method Summary
 void configure(org.eclipse.jetty.webapp.WebAppContext context)
           
 void deconfigure(org.eclipse.jetty.webapp.WebAppContext context)
           
protected  java.util.List<org.eclipse.jetty.util.resource.Resource> findJars(org.eclipse.jetty.webapp.WebAppContext context)
          Get the jars to examine from the files from which we have synthesized the classpath.
 void postConfigure(org.eclipse.jetty.webapp.WebAppContext context)
           
 void preConfigure(org.eclipse.jetty.webapp.WebAppContext context)
           
protected  org.eclipse.jetty.util.resource.Resource unpackOverlay(org.eclipse.jetty.webapp.WebAppContext context, org.eclipse.jetty.util.resource.Resource overlay)
           
 
Methods inherited from class org.eclipse.jetty.webapp.WebInfConfiguration
cloneConfigure, findWorkDirectory, getCanonicalNameForWebAppTmpDir, isTempWorkDirectory, makeTempDirectory, resolveTempDirectory, unpack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_originalResourceBase

protected org.eclipse.jetty.util.resource.Resource _originalResourceBase

_unpackedOverlays

protected org.eclipse.jetty.util.resource.Resource[] _unpackedOverlays
Constructor Detail

MavenWebInfConfiguration

public MavenWebInfConfiguration()
Method Detail

configure

public void configure(org.eclipse.jetty.webapp.WebAppContext context)
               throws java.lang.Exception
Specified by:
configure in interface org.eclipse.jetty.webapp.Configuration
Overrides:
configure in class org.eclipse.jetty.webapp.WebInfConfiguration
Throws:
java.lang.Exception

preConfigure

public void preConfigure(org.eclipse.jetty.webapp.WebAppContext context)
                  throws java.lang.Exception
Specified by:
preConfigure in interface org.eclipse.jetty.webapp.Configuration
Overrides:
preConfigure in class org.eclipse.jetty.webapp.WebInfConfiguration
Throws:
java.lang.Exception

postConfigure

public void postConfigure(org.eclipse.jetty.webapp.WebAppContext context)
                   throws java.lang.Exception
Specified by:
postConfigure in interface org.eclipse.jetty.webapp.Configuration
Overrides:
postConfigure in class org.eclipse.jetty.webapp.AbstractConfiguration
Throws:
java.lang.Exception

deconfigure

public void deconfigure(org.eclipse.jetty.webapp.WebAppContext context)
                 throws java.lang.Exception
Specified by:
deconfigure in interface org.eclipse.jetty.webapp.Configuration
Overrides:
deconfigure in class org.eclipse.jetty.webapp.WebInfConfiguration
Throws:
java.lang.Exception

findJars

protected java.util.List<org.eclipse.jetty.util.resource.Resource> findJars(org.eclipse.jetty.webapp.WebAppContext context)
                                                                     throws java.lang.Exception
Get the jars to examine from the files from which we have synthesized the classpath. Note that the classpath is not set at this point, so we cannot get them from the classpath.

Overrides:
findJars in class org.eclipse.jetty.webapp.WebInfConfiguration
Parameters:
context -
Returns:
the list of jars found
Throws:
java.lang.Exception

unpackOverlay

protected org.eclipse.jetty.util.resource.Resource unpackOverlay(org.eclipse.jetty.webapp.WebAppContext context,
                                                                 org.eclipse.jetty.util.resource.Resource overlay)
                                                          throws java.io.IOException
Throws:
java.io.IOException


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