com.sun.enterprise.util.io
Class DomainDirs

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

public final class DomainDirs
extends java.lang.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(java.io.File domainDir)
          This constructor is used when the path of the domain-directory is known.
DomainDirs(java.io.File domainsDir, java.lang.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 java.io.File getDefaultDomainsDir()
           
 java.io.File getDomainDir()
           
 java.lang.String getDomainName()
           
 java.io.File getDomainsDir()
           
 ServerDirs getServerDirs()
           
 boolean isValid()
           
 java.lang.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 java.io.IOException
This convenience constructor is used when nothing is known about the domain-dir

Throws:
java.io.IOException

DomainDirs

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

Throws:
java.io.IOException

DomainDirs

public DomainDirs(java.io.File domainDir)
           throws java.io.IOException
This constructor is used when the path of the domain-directory is known.

Parameters:
domainsDir -
domainName -
Throws:
java.io.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDomainName

public final java.lang.String getDomainName()

getDomainDir

public final java.io.File getDomainDir()

getDomainsDir

public final java.io.File getDomainsDir()

getServerDirs

public final ServerDirs getServerDirs()

isValid

public final boolean isValid()

getDefaultDomainsDir

public static java.io.File getDefaultDomainsDir()
                                         throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2012 GlassFish Community. All Rights Reserved.