Class WebInfConfiguration
- All Implemented Interfaces:
- Configuration
- 
Nested Class SummaryNested classes/interfaces inherited from class AbstractConfigurationAbstractConfiguration.Builder
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotected
- 
Method SummaryModifier and TypeMethodDescriptionvoidconfigure(WebAppContext context) Configure WebApp.voiddeconfigure(WebAppContext context) DeConfigure WebApp.static StringDeprecated, for removal: This API element is subject to removal in a future version.this method is no longer usedprotected static StringgetResourceBaseName(Resource resource) Deprecated, for removal: This API element is subject to removal in a future version.this method is no longer neededvoidmakeTempDirectory(File parent, WebAppContext context) Deprecated, for removal: This API element is subject to removal in a future version.voidpreConfigure(WebAppContext context) Set up for configuration.voidresolveTempDirectory(WebAppContext context) Get a temporary directory in which to unpack the war etc etc.voidunpack(WebAppContext context) Methods inherited from class AbstractConfigurationabort, destroy, getDependencies, getDependents, getHiddenClasses, getProtectedClasses, isEnabledByDefault, postConfigureMethods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConfigurationgetServerClasses, getSystemClasses, isAvailable, replaces
- 
Field Details- 
TEMPORARY_RESOURCE_BASE- See Also:
 
- 
ORIGINAL_RESOURCE_BASE- See Also:
 
 
- 
- 
Constructor Details- 
WebInfConfigurationpublic WebInfConfiguration()
- 
WebInfConfiguration
 
- 
- 
Method Details- 
preConfigureDescription copied from interface:ConfigurationSet 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. - Specified by:
- preConfigurein interface- Configuration
- Overrides:
- preConfigurein class- AbstractConfiguration
- Parameters:
- context- The context to configure
- Throws:
- Exception- if unable to pre configure
 
- 
configureDescription copied from interface:ConfigurationConfigure WebApp.Typically this step applies the discovered configuration resources to either the WebAppContextor the associatedMetaData.- Specified by:
- configurein interface- Configuration
- Overrides:
- configurein class- AbstractConfiguration
- Parameters:
- context- The context to configure
- Throws:
- Exception- if unable to configure
 
- 
deconfigureDescription copied from interface:ConfigurationDeConfigure 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- Specified by:
- deconfigurein interface- Configuration
- Overrides:
- deconfigurein class- AbstractConfiguration
- Parameters:
- context- The context to configure
- Throws:
- Exception- if unable to deconfigure
 
- 
resolveTempDirectoryGet 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: - Iff an explicit directory is set for this webapp, use it. Set delete on exit depends on value of persistTempDirectory.
- If "jakarta.servlet.context.tempdir" context attribute is set for this webapp && exists && writeable, then use it. Set delete on exit depends on value of persistTempDirectory.
 B. Create a directory based on global settings. The new directory will be called "Jetty-"+host+"-"+port+"__"+context+"-"+virtualhost+"-"+randomdigits+".dir"If the temporary directory is persistent, then the random digits are not added to the name. TheServer.getTempDirectory()is used for the parent of a created temporary directory.- Parameters:
- context- the context to resolve the temp directory from
- Throws:
- Exception- if unable to resolve the temp directory
 
- 
makeTempDirectory@Deprecated(forRemoval=true, since="12.0.12") public void makeTempDirectory(File parent, WebAppContext context) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
- Exception
 
- 
unpack- Throws:
- IOException
 
- 
getCanonicalNameForWebAppTmpDir@Deprecated(forRemoval=true, since="12.0.12") public static String getCanonicalNameForWebAppTmpDir(WebAppContext context) Deprecated, for removal: This API element is subject to removal in a future version.this method is no longer usedCreate 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- Parameters:
- context- the context to get the canonical name from
- Returns:
- the canonical name for the webapp temp directory
 
- 
getResourceBaseName@Deprecated(forRemoval=true, since="12.0.12") protected static String getResourceBaseName(Resource resource) Deprecated, for removal: This API element is subject to removal in a future version.this method is no longer needed- Parameters:
- resource- the Resource for which to extract a short name
- Returns:
- extract a short name for the resource
 
 
-