Class DomainDirs

java.lang.Object
com.sun.enterprise.util.io.DomainDirs

public final class DomainDirs extends Object
A class for keeping track of the directories that a domain lives in and under.
Since:
3.1 Created: April 19, 2010
Author:
Byron Nevins
  • Constructor Details

    • DomainDirs

      public DomainDirs() throws IOException
      This convenience constructor is used when nothing is known about the domain-dir
      Throws:
      IOException
    • DomainDirs

      public DomainDirs(File domainsDir, String domainName) throws IOException
      This constructor is used when both the name of the domain is known and the domains-dir is known.
      Throws:
      IOException
    • DomainDirs

      public DomainDirs(File domainDir) throws IOException
      This constructor is used when the path of the domain-directory is known.
      Parameters:
      domainsDir -
      domainName -
      Throws:
      IOException
    • DomainDirs

      public DomainDirs(ServerDirs sd)
      Create a DomainDir from the more general ServerDirs instance. along with getServerDirs() you can convert freely back and forth
      Parameters:
      aServerDir -
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDomainName

      public final String getDomainName()
    • getDomainDir

      public final File getDomainDir()
    • getDomainsDir

      public final File getDomainsDir()
    • getServerDirs

      public final ServerDirs getServerDirs()
    • isValid

      public final boolean isValid()
    • getDefaultDomainsDir

      public static File getDefaultDomainsDir() throws IOException
      Throws:
      IOException