Class DeployableConfiguration

java.lang.Object
io.github.rajendarreddyj.tomcat.config.DeployableConfiguration

public final class DeployableConfiguration extends Object
Immutable configuration for deployment settings. Use the DeployableConfiguration.Builder to construct instances.
Since:
1.0.0
Author:
rajendarreddyj
  • Method Details

    • getModuleName

      public String getModuleName()
      Gets the module name (typically the artifact ID).
      Returns:
      the module name
    • getSourcePath

      public Path getSourcePath()
      Gets the source path of the web application.
      Returns:
      the source path
    • getContextPath

      public String getContextPath()
      Gets the context path.
      Returns:
      the normalized context path
    • getDeployDir

      public 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

      public String getDeploymentOutputName()
      Gets the deployment output name.
      Returns:
      the deployment output name, or null to derive from context path
    • getTargetDirectoryName

      public String 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

      public static DeployableConfiguration.Builder builder()
      Creates a new Builder instance.
      Returns:
      a new Builder
    • toString

      public String toString()
      Overrides:
      toString in class Object