Package com.sun.enterprise.util.io
Class DomainDirs
java.lang.Object
com.sun.enterprise.util.io.DomainDirs
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
ConstructorsConstructorDescriptionThis 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
-
Constructor Details
-
DomainDirs
This convenience constructor is used when nothing is known about the domain-dir- Throws:
IOException
-
DomainDirs
This constructor is used when both the name of the domain is known and the domains-dir is known.- Throws:
IOException
-
DomainDirs
This constructor is used when the path of the domain-directory is known.- Parameters:
domainsDir-domainName-- Throws:
IOException
-
DomainDirs
Create a DomainDir from the more general ServerDirs instance. along with getServerDirs() you can convert freely back and forth- Parameters:
aServerDir-
-
-
Method Details
-
toString
-
getDomainName
-
getDomainDir
-
getDomainsDir
-
getServerDirs
-
isValid
public final boolean isValid() -
getDefaultDomainsDir
- Throws:
IOException
-