org.vfny.geoserver.config
Class GlobalConfig

java.lang.Object
  extended byorg.vfny.geoserver.config.GlobalConfig

public class GlobalConfig
extends java.lang.Object

Global GeoServer Configuration model.

GlobalConfig represents the configuration model needed to set up GeoServer for use.


Field Summary
static java.lang.String CONFIG_KEY
           
 
Constructor Summary
GlobalConfig()
          GlobalConfig constructor.
GlobalConfig(GeoServerDTO g)
          GlobalConfig constructor.
 
Method Summary
 java.lang.String getBaseUrl()
          getBaseUrl purpose.
 java.nio.charset.Charset getCharSet()
          getCharSet purpose.
 ContactConfig getContact()
          getContact purpose.
 java.util.logging.Level getLoggingLevel()
          getLoggingLevel purpose.
 int getMaxFeatures()
          getMaxFeatures purpose.
 int getNumDecimals()
          getNumDecimals purpose.
 java.lang.String getSchemaBaseUrl()
          getSchemaBaseUrl purpose.
 boolean isVerbose()
          isVerbose purpose.
 void setBaseUrl(java.lang.String url)
          setBaseUrl purpose.
 void setCharSet(java.nio.charset.Charset charset)
          setCharSet purpose.
 void setContact(ContactConfig contact)
          setContact purpose.
 void setLoggingLevel(java.util.logging.Level level)
          setLoggingLevel purpose.
 void setMaxFeatures(int i)
          setMaxFeatures purpose.
 void setNumDecimals(int i)
          setNumDecimals purpose.
 void setSchemaBaseUrl(java.lang.String url)
          setSchemaBaseUrl purpose.
 void setVerbose(boolean b)
          setVerbose purpose.
 GeoServerDTO toDTO()
          Implement toDTO.
 void update(GeoServerDTO g)
          Implement updateDTO.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_KEY

public static final java.lang.String CONFIG_KEY
See Also:
Constant Field Values
Constructor Detail

GlobalConfig

public GlobalConfig()
GlobalConfig constructor.

Creates an instance of GlobalConfig and initializes to default settings.

See Also:
defaultSettings()

GlobalConfig

public GlobalConfig(GeoServerDTO g)
GlobalConfig constructor.

Creates a copy of the GeoServerDTO object provided. Charset is not cloned, everything else is.

Parameters:
g -
Throws:
java.lang.NullPointerException - DOCUMENT ME!
Method Detail

update

public void update(GeoServerDTO g)
Implement updateDTO.

Populates this instance with the GeoServerDTO object provided.

Parameters:
g - A valid GeoServerDTO object to populate this object from
Throws:
java.lang.NullPointerException - DOCUMENT ME!
See Also:
org.vfny.geoserver.config.DataStructure#updateDTO(java.lang.Object)

toDTO

public GeoServerDTO toDTO()
Implement toDTO.

Creates a copy of the data in a GeoServerDTO representation

Returns:
a copy of the data in a GeoServerDTO representation
See Also:
org.vfny.geoserver.config.DataStructure#toDTO()

getBaseUrl

public java.lang.String getBaseUrl()
getBaseUrl purpose.

Description ...

Returns:

getCharSet

public java.nio.charset.Charset getCharSet()
getCharSet purpose.

Description ...

Returns:

getContact

public ContactConfig getContact()
getContact purpose.

Description ...

Returns:

getMaxFeatures

public int getMaxFeatures()
getMaxFeatures purpose.

Description ...

Returns:

getNumDecimals

public int getNumDecimals()
getNumDecimals purpose.

Description ...

Returns:

getSchemaBaseUrl

public java.lang.String getSchemaBaseUrl()
getSchemaBaseUrl purpose.

Description ...

Returns:

isVerbose

public boolean isVerbose()
isVerbose purpose.

Description ...

Returns:

setBaseUrl

public void setBaseUrl(java.lang.String url)
setBaseUrl purpose.

Description ...

Parameters:
url -

setCharSet

public void setCharSet(java.nio.charset.Charset charset)
setCharSet purpose.

Description ...

Parameters:
charset -

setContact

public void setContact(ContactConfig contact)
setContact purpose.

Description ...

Parameters:
contact -

setMaxFeatures

public void setMaxFeatures(int i)
setMaxFeatures purpose.

Description ...

Parameters:
i -

setNumDecimals

public void setNumDecimals(int i)
setNumDecimals purpose.

Description ...

Parameters:
i -

setSchemaBaseUrl

public void setSchemaBaseUrl(java.lang.String url)
setSchemaBaseUrl purpose.

Description ...

Parameters:
url -

setVerbose

public void setVerbose(boolean b)
setVerbose purpose.

Description ...

Parameters:
b -

getLoggingLevel

public java.util.logging.Level getLoggingLevel()
getLoggingLevel purpose.

Description ...

Returns:

setLoggingLevel

public void setLoggingLevel(java.util.logging.Level level)
setLoggingLevel purpose.

Description ...

Parameters:
level -