Class PackageFile

java.lang.Object
io.wcm.tooling.commons.packmgr.install.PackageFile

public final class PackageFile extends Object
References a content package file for uploading.
  • Constructor Details

    • PackageFile

      public PackageFile()
  • Method Details

    • getFile

      public File getFile()
      Content package file.
      Returns:
      File
    • setFile

      public void setFile(File file)
      Parameters:
      file - Content package file
    • getDelayAfterInstallSec

      public int getDelayAfterInstallSec()
      Delay further steps after package installation by this amount of seconds
      Returns:
      Delay time
    • setDelayAfterInstallSec

      public void setDelayAfterInstallSec(int delayAfterInstallSec)
      Parameters:
      delayAfterInstallSec - Delay further steps after package installation by this amount of seconds
    • setDelayAfterInstallSecAutoDetect

      public void setDelayAfterInstallSecAutoDetect()
      If not delay was configured try to detect a sensible default value: A few secs for container/mixed packages, 0 sec for others.
    • isInstall

      public boolean isInstall()
      Whether to install (unpack) the uploaded package automatically or not.
      Returns:
      Install/unpack
    • setInstall

      public void setInstall(boolean install)
      Parameters:
      install - Whether to install (unpack) the uploaded package automatically or not.
    • isForce

      public boolean isForce()
      Force upload and install of content package. If set to false a package is not uploaded or installed if it was already uploaded before.
      Returns:
      Force
    • setForce

      public void setForce(Boolean force)
      Parameters:
      force - Force upload and install of content package. If set to false a package is not uploaded or installed
    • setForce

      public void setForce(boolean force)
      Parameters:
      force - Force upload and install of content package. If set to false a package is not uploaded or installed
    • isRecursive

      public boolean isRecursive()
      If set to true nested packages get installed as well.
      Returns:
      Recursive
    • setRecursive

      public void setRecursive(boolean recursive)
      Parameters:
      recursive - If set to true nested packages get installed as well.
    • getHttpSocketTimeoutSec

      public Integer getHttpSocketTimeoutSec()
      HTTP socket timeout (in seconds).
      Returns:
      Timeout
    • setHttpSocketTimeoutSec

      public void setHttpSocketTimeoutSec(Integer httpSocketTimeoutSec)
      Parameters:
      httpSocketTimeoutSec - HTTP socket timeout (in seconds)