com.sun.enterprise.util.io
Class DomainDirs

java.lang.Object
  extended by 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
DomainDirs()
          This convenience constructor is used when nothing is known about the domain-dir
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.
DomainDirs(ServerDirs sd)
          Create a DomainDir from the more general ServerDirs instance.
 
Method Summary
static File getDefaultDomainsDir()
           
 File getDomainDir()
           
 String getDomainName()
           
 File getDomainsDir()
           
 ServerDirs getServerDirs()
           
 boolean isValid()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

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


Copyright © 2012 GlassFish Community. All Rights Reserved.