Package com.sun.enterprise.util.io
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 Summary
Constructors Constructor Description DomainDirs()This convenience constructor is used when nothing is known about the domain-dirDomainDirs(ServerDirs sd)Create a DomainDir from the more general ServerDirs instance.DomainDirs(File domainDir)This constructor is used when the path of the domain-directory is known.DomainDirs(File domainsDir, String domainName)This constructor is used when both the name of the domain is known and the domains-dir is known.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FilegetDefaultDomainsDir()FilegetDomainDir()StringgetDomainName()FilegetDomainsDir()ServerDirsgetServerDirs()booleanisValid()StringtoString()
-
-
-
Constructor Detail
-
DomainDirs
public DomainDirs() throws IOExceptionThis 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 Detail
-
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
-
-