|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.webapp.AbstractConfiguration
org.eclipse.jetty.webapp.WebInfConfiguration
public class WebInfConfiguration
| 字段摘要 | |
|---|---|
protected Resource |
_preUnpackBaseResource
|
static String |
CONTAINER_JAR_PATTERN
|
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_CONFIGURED
|
static String |
WEBINF_JAR_PATTERN
|
| 构造方法摘要 | |
|---|---|
WebInfConfiguration()
|
|
| 方法摘要 | |
|---|---|
void |
cloneConfigure(WebAppContext template,
WebAppContext context)
Clone configuration instance. |
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)
|
static String |
getCanonicalNameForWebAppTmpDir(WebAppContext context)
Create a canonical name for a webapp temp 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 |
preConfigure(WebAppContext context)
Set up for configuration. |
void |
resolveTempDirectory(WebAppContext context)
Get a temporary directory in which to unpack the war etc etc. |
void |
unpack(WebAppContext context)
|
| 从类 org.eclipse.jetty.webapp.AbstractConfiguration 继承的方法 |
|---|
destroy, postConfigure |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final String TEMPDIR_CONFIGURED
public static final String CONTAINER_JAR_PATTERN
public static final String WEBINF_JAR_PATTERN
public static final String RESOURCE_URLS
protected Resource _preUnpackBaseResource
| 构造方法详细信息 |
|---|
public WebInfConfiguration()
| 方法详细信息 |
|---|
public void preConfigure(WebAppContext context)
throws Exception
Configuration 复制的描述Typically this step discovers configuration resources
Configuration 中的 preConfigureAbstractConfiguration 中的 preConfigurecontext - The context to configure
Exception
public void configure(WebAppContext context)
throws Exception
Configuration 复制的描述
Typically this step applies the discovered configuration resources to
either the WebAppContext or the associated MetaData.
Configuration 中的 configureAbstractConfiguration 中的 configurecontext - The context to configure
Exception
public void deconfigure(WebAppContext context)
throws Exception
Configuration 复制的描述
Configuration 中的 deconfigureAbstractConfiguration 中的 deconfigurecontext - The context to configure
Exception
public void cloneConfigure(WebAppContext template,
WebAppContext context)
throws Exception
Configuration 复制的描述Configure an instance of a WebAppContext, based on a template WebAppContext that has previously been configured by this Configuration.
Configuration 中的 cloneConfigureAbstractConfiguration 中的 cloneConfiguretemplate - The template contextcontext - The context to configure
ExceptionAbstractConfiguration.cloneConfigure(org.eclipse.jetty.webapp.WebAppContext, org.eclipse.jetty.webapp.WebAppContext)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 unpack(WebAppContext context)
throws IOException
IOException
public File findWorkDirectory(WebAppContext context)
throws IOException
IOExceptionpublic boolean isTempWorkDirectory(File tmpDir)
public static 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 List<Resource> findJars(WebAppContext context)
throws Exception
context -
Exception
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||