com.caucho.server.host
Class HostConfig

java.lang.Object
  extended by com.caucho.env.deploy.DeployConfig
      extended by com.caucho.server.host.HostConfig

public class HostConfig
extends DeployConfig

The configuration for a host in the resin.conf


Constructor Summary
HostConfig()
           
 
Method Summary
 void addHostAlias(RawString rawName)
          Adds a host alias.
protected  void addHostAliasImpl(java.lang.String name)
           
 void addHostAliasRegexp(java.lang.String name)
          Adds a host alias regexp.
 java.util.ArrayList<java.lang.String> getHostAliases()
          Returns the host aliases.
 java.util.ArrayList<java.util.regex.Pattern> getHostAliasRegexps()
          Returns the host aliases regexps.
 java.lang.String getHostName()
          Gets the host name.
 java.util.regex.Pattern getRegexp()
          Gets the regexp.
 void init()
          Initialize the config.
 void setHostName(RawString name)
          Sets the host name.
 void setId(RawString id)
          Sets the id.
 void setId(java.lang.String cleanName)
          Sets the id.
 void setLazyInit(boolean lazyInit)
          Sets the lazy-init property
 void setRegexp(RawString regexp)
          Sets the regexp.
 void setRootDir(RawString rootDir)
          Sets the root-dir (obsolete).
 
Methods inherited from class com.caucho.env.deploy.DeployConfig
addBuilderProgram, addClassLoader, addPropertyProgram, calculateRootDirectory, calculateRootDirectory, getArchivePath, getBuilderProgram, getClassLoaderProgram, getExpandCleanupFileset, getId, getPrologue, getRedeployCheckInterval, getRedeployMode, getRootDirectory, getStartupMode, getStartupPriority, isSkipDefaultConfig, setArchivePath, setExpandCleanupFileset, setRedeployCheckInterval, setRedeployMode, setRootDirectory, setSkipDefaultConfig, setStartupMode, setStartupPriority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostConfig

public HostConfig()
Method Detail

setHostName

public void setHostName(RawString name)
                 throws ConfigException
Sets the host name.

Throws:
ConfigException

getHostName

public java.lang.String getHostName()
Gets the host name.


setId

public void setId(RawString id)
           throws ConfigException
Sets the id.

Throws:
ConfigException

setId

public void setId(java.lang.String cleanName)
Description copied from class: DeployConfig
Sets the id.

Overrides:
setId in class DeployConfig

addHostAlias

public void addHostAlias(RawString rawName)
                  throws ConfigException
Adds a host alias.

Throws:
ConfigException

addHostAliasImpl

protected void addHostAliasImpl(java.lang.String name)

getHostAliases

public java.util.ArrayList<java.lang.String> getHostAliases()
Returns the host aliases.


addHostAliasRegexp

public void addHostAliasRegexp(java.lang.String name)
Adds a host alias regexp.


getHostAliasRegexps

public java.util.ArrayList<java.util.regex.Pattern> getHostAliasRegexps()
Returns the host aliases regexps.


setRegexp

public void setRegexp(RawString regexp)
Sets the regexp.


getRegexp

public java.util.regex.Pattern getRegexp()
Gets the regexp.


setRootDir

public void setRootDir(RawString rootDir)
Sets the root-dir (obsolete).


setLazyInit

public void setLazyInit(boolean lazyInit)
                 throws ConfigException
Sets the lazy-init property

Throws:
ConfigException

init

@PostConstruct
public void init()
Initialize the config.