|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jetty.webapp.WebInfConfiguration
public class WebInfConfiguration
| Field Summary | |
|---|---|
protected Resource |
_preUnpackBaseResource
|
static java.lang.String |
CONTAINER_JAR_PATTERN
|
static java.lang.String |
CONTAINER_JAR_RESOURCES
|
static java.lang.String |
RESOURCE_URLS
If set, to a list of URLs, these resources are added to the context resource base as a resource collection. |
static java.lang.String |
TEMPDIR_CREATED
|
static java.lang.String |
WEB_INF_JAR_RESOURCES
|
static java.lang.String |
WEBINF_JAR_PATTERN
|
| Constructor Summary | |
|---|---|
WebInfConfiguration()
|
|
| Method Summary | |
|---|---|
void |
configure(WebAppContext context)
Configure WebApp. |
void |
deconfigure(WebAppContext context)
DeConfigure WebApp. |
protected java.util.List<Resource> |
findJars(WebAppContext context)
Look for jars in WEB-INF/lib |
java.io.File |
findWorkDirectory(WebAppContext context)
|
java.lang.String |
getCanonicalNameForWebAppTmpDir(WebAppContext context)
Create a canonical name for a webapp temp directory. |
boolean |
isTempWorkDirectory(java.io.File tmpDir)
Check if the tmpDir itself is called "work", or if the tmpDir is in a directory called "work". |
void |
makeTempDirectory(java.io.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(java.io.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 java.lang.String TEMPDIR_CREATED
public static final java.lang.String CONTAINER_JAR_RESOURCES
public static final java.lang.String WEB_INF_JAR_RESOURCES
public static final java.lang.String CONTAINER_JAR_PATTERN
public static final java.lang.String WEBINF_JAR_PATTERN
public static final java.lang.String RESOURCE_URLS
protected Resource _preUnpackBaseResource
| Constructor Detail |
|---|
public WebInfConfiguration()
| Method Detail |
|---|
public void preConfigure(WebAppContext context)
throws java.lang.Exception
Configuration
preConfigure in interface Configurationjava.lang.Exception
public void postConfigure(WebAppContext context)
throws java.lang.Exception
Configuration
postConfigure in interface Configurationjava.lang.Exception
public void configure(WebAppContext context)
throws java.lang.Exception
Configuration
configure in interface Configurationjava.lang.Exception
public void deconfigure(WebAppContext context)
throws java.lang.Exception
Configuration
deconfigure in interface Configurationjava.lang.Exceptionpublic 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(java.io.File parent,
WebAppContext context,
boolean deleteExisting)
throws java.io.IOException
java.io.IOException
public void setTempDirectory(java.io.File tmpDir,
WebAppContext context)
public void unpack(WebAppContext context)
throws java.io.IOException
java.io.IOException
public java.io.File findWorkDirectory(WebAppContext context)
throws java.io.IOException
java.io.IOExceptionpublic boolean isTempWorkDirectory(java.io.File tmpDir)
public java.lang.String getCanonicalNameForWebAppTmpDir(WebAppContext context)
"Jetty_"+host+"_"+port+"__"+resourceBase+"_"+context+"_"+virtualhost+base36_hashcode_of_whole_string
host and port uniquely identify the server
context and virtual host uniquely identify the webapp
protected java.util.List<Resource> findJars(WebAppContext context)
throws java.lang.Exception
context -
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||