org.vfny.geoserver.global.xml
Class XMLConfigWriter

java.lang.Object
  extended byorg.vfny.geoserver.global.xml.XMLConfigWriter

public class XMLConfigWriter
extends java.lang.Object

XMLConfigWriter purpose.

This class is intended to store a configuration to be written and complete the output to XML.


Method Summary
static void store(DataDTO data, java.io.File root)
           
static void store(WMSDTO wms, WFSDTO wfs, GeoServerDTO geoServer, DataDTO data, java.io.File root)
           
static void store(WMSDTO wms, WFSDTO wfs, GeoServerDTO geoServer, java.io.File root)
           
protected static void storeCatalog(WriterHelper cw, DataDTO data)
          storeCatalog purpose.
protected static void storeContact(ContactDTO c, WriterHelper cw)
          storeContact purpose.
protected static void storeDataStore(WriterHelper cw, DataStoreInfoDTO ds)
          storeDataStore purpose.
protected static void storeFeature(FeatureTypeInfoDTO ft, java.io.File dir)
          storeStyle purpose.
protected static void storeFeatures(java.io.File dir, DataDTO data)
          storeStyle purpose.
protected static void storeFeatureSchema(FeatureTypeInfoDTO fs, java.io.File dir)
           
static void storeFeatureSchema(FeatureTypeInfoDTO fs, java.io.Writer w)
           
protected static void storeNameSpace(WriterHelper cw, NameSpaceInfoDTO ns)
          storeNameSpace purpose.
protected static void storeService(java.lang.Object obj, WriterHelper cw)
          storeService purpose.
protected static void storeServices(WriterHelper cw, WMSDTO wms, WFSDTO wfs, GeoServerDTO geoServer)
          storeServices purpose.
protected static void storeStyle(WriterHelper cw, StyleDTO s)
          storeStyle purpose.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

store

public static void store(DataDTO data,
                         java.io.File root)
                  throws ConfigurationException
Throws:
ConfigurationException

store

public static void store(WMSDTO wms,
                         WFSDTO wfs,
                         GeoServerDTO geoServer,
                         java.io.File root)
                  throws ConfigurationException
Throws:
ConfigurationException

store

public static void store(WMSDTO wms,
                         WFSDTO wfs,
                         GeoServerDTO geoServer,
                         DataDTO data,
                         java.io.File root)
                  throws ConfigurationException
Throws:
ConfigurationException

storeServices

protected static void storeServices(WriterHelper cw,
                                    WMSDTO wms,
                                    WFSDTO wfs,
                                    GeoServerDTO geoServer)
                             throws ConfigurationException
storeServices purpose.

Writes the services.xml file from the model in memory.

Parameters:
cw - The Configuration Writer
wms - DOCUMENT ME!
wfs - DOCUMENT ME!
geoServer - DOCUMENT ME!
Throws:
ConfigurationException - When an IO exception occurs.

storeContact

protected static void storeContact(ContactDTO c,
                                   WriterHelper cw)
                            throws ConfigurationException
storeContact purpose.

Writes a contact into the WriterUtils provided from the ContactConfig provided.

Parameters:
c - The ContactConfig to write.
cw - The Configuration Writer
Throws:
ConfigurationException - When an IO exception occurs.

storeService

protected static void storeService(java.lang.Object obj,
                                   WriterHelper cw)
                            throws ConfigurationException
storeService purpose.

Writes a service into the WriterUtils provided from the WFS or WMS object provided.

Parameters:
obj - either a WFS or WMS object.
cw - The Configuration Writer
Throws:
ConfigurationException - When an IO exception occurs or the object provided is not of the correct type.

storeCatalog

protected static void storeCatalog(WriterHelper cw,
                                   DataDTO data)
                            throws ConfigurationException
storeCatalog purpose.

Writes a catalog into the WriterUtils provided from Data provided in memory.

Parameters:
cw - The Configuration Writer
data - DOCUMENT ME!
Throws:
ConfigurationException - When an IO exception occurs.

storeDataStore

protected static void storeDataStore(WriterHelper cw,
                                     DataStoreInfoDTO ds)
                              throws ConfigurationException
storeDataStore purpose.

Writes a DataStoreInfo into the WriterUtils provided.

Parameters:
cw - The Configuration Writer
ds - The Datastore.
Throws:
ConfigurationException - When an IO exception occurs.

storeNameSpace

protected static void storeNameSpace(WriterHelper cw,
                                     NameSpaceInfoDTO ns)
                              throws ConfigurationException
storeNameSpace purpose.

Writes a NameSpaceInfoDTO into the WriterUtils provided.

Parameters:
cw - The Configuration Writer
ns - The NameSpaceInfo.
Throws:
ConfigurationException - When an IO exception occurs.

storeStyle

protected static void storeStyle(WriterHelper cw,
                                 StyleDTO s)
                          throws ConfigurationException
storeStyle purpose.

Writes a StyleDTO into the WriterUtils provided.

Parameters:
cw - The Configuration Writer
s - The StyleDTO.
Throws:
ConfigurationException - When an IO exception occurs.

storeFeatures

protected static void storeFeatures(java.io.File dir,
                                    DataDTO data)
                             throws ConfigurationException
storeStyle purpose.

Sets up writing FeatureTypes into their Directories.

Parameters:
dir - The FeatureTypes directory
data - DOCUMENT ME!
Throws:
ConfigurationException - When an IO exception occurs.
See Also:
storeFeature(FeatureTypeInfo,File)

storeFeature

protected static void storeFeature(FeatureTypeInfoDTO ft,
                                   java.io.File dir)
                            throws ConfigurationException
storeStyle purpose.

Writes a FeatureTypes into it's Directory.

Parameters:
ft - DOCUMENT ME!
dir - The particular FeatureTypeInfo directory
Throws:
ConfigurationException - When an IO exception occurs.
See Also:
storeFeatures(File)

storeFeatureSchema

protected static void storeFeatureSchema(FeatureTypeInfoDTO fs,
                                         java.io.File dir)
                                  throws ConfigurationException
Throws:
ConfigurationException

storeFeatureSchema

public static void storeFeatureSchema(FeatureTypeInfoDTO fs,
                                      java.io.Writer w)
                               throws ConfigurationException
Throws:
ConfigurationException