|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jetty.webapp.WebInfConfiguration
public class WebInfConfiguration
Field Summary | |
---|---|
static String |
CONTAINER_JAR_PATTERN
|
static String |
CONTAINER_JAR_RESOURCES
|
static String |
RESOURCE_URLS
If set, to a list of URLs, these resources are added to the context resource base as a resource collection. |
static String |
TEMPDIR_CREATED
|
static String |
WEB_INF_JAR_RESOURCES
|
static String |
WEBINF_JAR_PATTERN
|
Constructor Summary | |
---|---|
WebInfConfiguration()
|
Method Summary | |
---|---|
void |
configure(WebAppContext context)
Configure WebApp. |
void |
deconfigure(WebAppContext context)
DeConfigure WebApp. |
protected List<Resource> |
findJars(WebAppContext context)
Look for jars in WEB-INF/lib |
File |
findWorkDirectory(WebAppContext context)
|
String |
getCanonicalNameForWebAppTmpDir(WebAppContext context)
Create a canonical name for a webapp tmp directory. |
boolean |
isTempWorkDirectory(File tmpDir)
Check if the tmpDir itself is called "work", or if the tmpDir is in a directory called "work". |
void |
makeTempDirectory(File parent,
WebAppContext context,
boolean deleteExisting)
|
void |
postConfigure(WebAppContext context)
Clear down after configuration. |
void |
preConfigure(WebAppContext context)
Set up for configuration. |
void |
resolveTempDirectory(WebAppContext context)
Get a temporary directory in which to unpack the war etc etc. |
void |
setTempDirectory(File tmpDir,
WebAppContext context)
|
void |
unpack(WebAppContext context)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TEMPDIR_CREATED
public static final String CONTAINER_JAR_RESOURCES
public static final String WEB_INF_JAR_RESOURCES
public static final String CONTAINER_JAR_PATTERN
public static final String WEBINF_JAR_PATTERN
public static final String RESOURCE_URLS
Constructor Detail |
---|
public WebInfConfiguration()
Method Detail |
---|
public void preConfigure(WebAppContext context) throws Exception
Configuration
preConfigure
in interface Configuration
Exception
public void postConfigure(WebAppContext context) throws Exception
Configuration
postConfigure
in interface Configuration
Exception
public void configure(WebAppContext context) throws Exception
Configuration
configure
in interface Configuration
Exception
public void deconfigure(WebAppContext context) throws Exception
Configuration
deconfigure
in interface Configuration
Exception
public void resolveTempDirectory(WebAppContext context)
A. Try to use an explicit directory specifically for this webapp:
B. Create a directory based on global settings. The new directory will be called "Jetty_"+host+"_"+port+"__"+context+"_"+virtualhost Work out where to create this directory:
public void makeTempDirectory(File parent, WebAppContext context, boolean deleteExisting) throws IOException
IOException
public void setTempDirectory(File tmpDir, WebAppContext context)
public void unpack(WebAppContext context) throws IOException
IOException
public File findWorkDirectory(WebAppContext context) throws IOException
IOException
public boolean isTempWorkDirectory(File tmpDir)
public String getCanonicalNameForWebAppTmpDir(WebAppContext context)
protected List<Resource> findJars(WebAppContext context) throws Exception
context
-
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |