Class DeployableConfiguration
java.lang.Object
io.github.rajendarreddyj.tomcat.config.DeployableConfiguration
Immutable configuration for deployment settings.
Use the
DeployableConfiguration.Builder to construct instances.- Since:
- 1.0.0
- Author:
- rajendarreddyj
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for DeployableConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new Builder instance.intGets the auto-publish inactivity limit in seconds.Gets the context path.Gets the deployment directory.Gets the deployment output name.Gets the module name (typically the artifact ID).Gets the source path of the web application.Derives the target directory name for deployment.booleanChecks if auto-publish is enabled.toString()
-
Method Details
-
getModuleName
Gets the module name (typically the artifact ID).- Returns:
- the module name
-
getSourcePath
Gets the source path of the web application.- Returns:
- the source path
-
getContextPath
Gets the context path.- Returns:
- the normalized context path
-
getDeployDir
Gets the deployment directory.- Returns:
- the deployment directory, or null to use default
-
isAutopublishEnabled
public boolean isAutopublishEnabled()Checks if auto-publish is enabled.- Returns:
- true if auto-publish is enabled
-
getAutopublishInactivityLimit
public int getAutopublishInactivityLimit()Gets the auto-publish inactivity limit in seconds.- Returns:
- the inactivity limit
-
getDeploymentOutputName
Gets the deployment output name.- Returns:
- the deployment output name, or null to derive from context path
-
getTargetDirectoryName
Derives the target directory name for deployment. If deploymentOutputName is set, uses that. Otherwise, derives from context path. ROOT context ("/") maps to "ROOT", other contexts map to their path without leading slash.- Returns:
- the target directory name
-
builder
Creates a new Builder instance.- Returns:
- a new Builder
-
toString
-