| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| public static final String | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | configure(WebAppContext
The context to configure context)Overrides org. Implements org. Configure WebApp. |
| public void | deconfigure(WebAppContext
The context to configure context)Overrides org. Implements org. DeConfigure WebApp. |
| public static String | Returns: the canonical name for the webapp temp directorythe context to get the canonical name from context)Create a canonical name for a webapp temp directory. |
| protected static String | |
| public void | |
| public void | preConfigure(final WebAppContext
The context to configure context)Overrides org. Implements org. Set up for configuration. |
| public void | resolveTempDirectory(WebAppContext
the context to resolve the temp directory from context)Get a temporary directory in which to unpack the war etc etc. The algorithm for determining this is to check these alternatives in the order shown: A. |
| public void |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| ORIGINAL_RESOURCE_BASE | back to summary |
|---|---|
| public static final String ORIGINAL_RESOURCE_BASE | |
| TEMPDIR_CONFIGURED | back to summary |
|---|---|
| public static final String TEMPDIR_CONFIGURED | |
| TEMPORARY_RESOURCE_BASE | back to summary |
|---|---|
| public static final String TEMPORARY_RESOURCE_BASE | |
| WebInfConfiguration | back to summary |
|---|---|
| public WebInfConfiguration() | |
| WebInfConfiguration | back to summary |
|---|---|
| protected WebInfConfiguration(AbstractConfiguration. | |
| configure | back to summary |
|---|---|
| public void configure(WebAppContext context) throws Exception Overrides org. Implements org. Doc from org. Configure WebApp.
Typically this step applies the discovered configuration resources to
either the
| |
| deconfigure | back to summary |
|---|---|
| public void deconfigure(WebAppContext context) throws Exception Overrides org. Implements org. Doc from org. DeConfigure WebApp. This method is called to undo all configuration done. This is called to allow the context to work correctly over a stop/start cycle
| |
| getCanonicalNameForWebAppTmpDir | back to summary |
|---|---|
| public static String getCanonicalNameForWebAppTmpDir(WebAppContext context) Create a canonical name for a webapp temp directory. The form of the name is: "jetty-"+host+"-"+port+"-"+resourceBase+"-_"+context+"-"+virtualhost+"-"+randomdigits+".dir"host and port uniquely identify the server context and virtual host uniquely identify the webapp randomdigits ensure every tmp directory is unique
| |
| getResourceBaseName | back to summary |
|---|---|
| protected static String getResourceBaseName(Resource resource) | |
| makeTempDirectory | back to summary |
|---|---|
| public void makeTempDirectory(File parent, WebAppContext context) throws Exception | |
| preConfigure | back to summary |
|---|---|
| public void preConfigure(final WebAppContext context) throws Exception Overrides org. Implements org. Doc from org. Set up for configuration. Typically this step discovers configuration resources. Calls to preConfigure may alter the Configurations configured on the WebAppContext, so long as configurations prior to this configuration are not altered.
| |
| resolveTempDirectory | back to summary |
|---|---|
| public void resolveTempDirectory(WebAppContext context) throws Exception Get a temporary directory in which to unpack the war etc etc. The algorithm for determining this is to check these alternatives in the order shown: 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
| |
| unpack | back to summary |
|---|---|
| public void unpack(WebAppContext context) throws IOException | |