|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vfny.geoserver.global.GlobalLayerSupertype org.vfny.geoserver.global.GeoServer
complete configuration ser for the whole server
Field Summary | |
static java.lang.String |
WEB_CONTAINER_KEY
For finding the instance of this class to use from the web container |
Constructor Summary | |
GeoServer()
|
Method Summary | |
static java.lang.String |
get(java.util.Map map,
java.lang.String key)
get purpose. |
static boolean |
get(java.util.Map map,
java.lang.String key,
boolean defaultValue)
get purpose. |
static java.nio.charset.Charset |
get(java.util.Map map,
java.lang.String key,
java.nio.charset.Charset defaultCharSet)
get purpose. |
static java.lang.Class |
get(java.util.Map map,
java.lang.String key,
java.lang.Class defaultType)
get purpose. |
static java.io.File |
get(java.util.Map map,
java.lang.String key,
java.io.File defaultFile)
get purpose. |
static int |
get(java.util.Map map,
java.lang.String key,
int defaultValue)
get purpose. |
static java.util.logging.Level |
get(java.util.Map map,
java.lang.String key,
java.util.logging.Level defaultLevel)
get purpose. |
static java.util.List |
get(java.util.Map map,
java.lang.String key,
java.util.List defaultList)
get purpose. |
static java.util.Map |
get(java.util.Map map,
java.lang.String key,
java.util.Map defaultMap)
get purpose. |
static java.lang.String |
get(java.util.Map map,
java.lang.String key,
java.lang.String defaultValue)
get purpose. |
static java.net.URL |
get(java.util.Map map,
java.lang.String key,
java.net.URL defaultUrl)
get purpose. |
java.lang.String |
getAddress()
getAddress purpose. |
java.lang.String |
getAddressCity()
getAddressCity purpose. |
java.lang.String |
getAddressCountry()
getAddressCountry purpose. |
java.lang.String |
getAddressPostalCode()
getAddressPostalCode purpose. |
java.lang.String |
getAddressState()
getAddressState purpose. |
java.lang.String |
getAddressType()
getAddressType purpose. |
java.nio.charset.Charset |
getCharSet()
getCharSet purpose. |
java.lang.String |
getContactEmail()
getContactEmail purpose. |
java.lang.String |
getContactFacsimile()
getContactFacsimile purpose. |
java.lang.String |
getContactOrganization()
getContactOrganization purpose. |
java.lang.String |
getContactPerson()
getContactPerson purpose. |
java.lang.String |
getContactPosition()
getContactPosition purpose. |
java.lang.String |
getContactVoice()
getContactVoice purpose. |
Data |
getData()
Gets the config for the Data. |
static DataDTO |
getDTO(Data dt)
getDTO purpose. |
static GeoServerDTO |
getDTO(GeoServer gs)
getDTO purpose. |
static WFSDTO |
getDTO(WFS wfs)
getDTO purpose. |
static WMSDTO |
getDTO(WMS wms)
getDTO purpose. |
java.util.logging.Level |
getLoggingLevel()
getLoggingLevel purpose. |
int |
getMaxFeatures()
getMaxFeatures purpose. |
java.lang.String |
getMimeType()
getMimeType purpose. |
int |
getNumDecimals()
getNumDecimals purpose. |
ValidationProcessor |
getProcessor()
Access processor property. |
java.lang.String |
getSchemaBaseUrl()
getSchemaBaseUrl purpose. |
WFS |
getWFS()
Gets the config for the WFS. |
WMS |
getWMS()
Gets the config for the WMS. |
boolean |
isVerbose()
whether xml documents should be pretty formatted |
void |
load(DataDTO data,
java.io.File baseDir)
Loads the DataDTO into the current instance as a Data object |
void |
load(GeoServerDTO geoServer)
load purpose. |
void |
load(java.util.Map testSuites,
java.util.Map plugIns)
|
void |
load(WFSDTO wfs)
load purpose. |
void |
load(WMSDTO wms)
load purpose. |
void |
load(WMSDTO wms,
WFSDTO wfs)
load purpose. |
void |
load(WMSDTO wms,
WFSDTO wfs,
GeoServerDTO geoServer,
DataDTO data,
java.io.File baseDir)
load purpose. |
protected java.lang.String |
notNull(java.lang.String s)
checks s for nullity and if so, returns an empty String,
else just returns s |
DataDTO |
toDataDTO()
toDataDTO purpose. |
GeoServerDTO |
toGeoServerDTO()
toGeoServerDTO purpose. |
java.util.Map |
toPlugInDTO()
|
java.util.Map |
toTestSuiteDTO()
|
WFSDTO |
toWFSDTO()
toWFSDTO purpose. |
WMSDTO |
toWMSDTO()
toWMSDTO purpose. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String WEB_CONTAINER_KEY
ServletContext sc = ... GeoServer gs = (GeoServer)sc.getAttribute(GeoServer.WEB_CONTAINER_KEY);
Constructor Detail |
public GeoServer()
Method Detail |
public java.lang.String getAddress()
Returns the contact Address.
public java.lang.String getAddressCity()
Returns the contact City.
public java.lang.String getAddressCountry()
Returns the contact Country.
public java.lang.String getAddressPostalCode()
Returns the contact PostalCode.
public java.lang.String getAddressState()
Returns the contact State.
public java.lang.String getAddressType()
Returns the contact Address Type.
public java.nio.charset.Charset getCharSet()
Returns the default charset for this server instance.
public java.lang.String getContactEmail()
Returns the contact Email.
public java.lang.String getContactFacsimile()
Returns the contact Facsimile.
public java.lang.String getContactOrganization()
Returns the contact Organization.
public java.lang.String getContactPerson()
Returns the contact Person.
public java.lang.String getContactPosition()
Returns the contact Position.
public java.lang.String getContactVoice()
Returns the contact Phone.
public java.util.logging.Level getLoggingLevel()
Returns the Logging Level.
public int getMaxFeatures()
Returns the max number of features supported.
public java.lang.String getMimeType()
Returns the server default mimetype.
public int getNumDecimals()
The default number of decimals allowed in the data.
public java.lang.String getSchemaBaseUrl()
The Schema Base URL for this instance.
public boolean isVerbose()
public WMS getWMS()
public WFS getWFS()
public Data getData()
public void load(WMSDTO wms, WFSDTO wfs, GeoServerDTO geoServer, DataDTO data, java.io.File baseDir) throws ConfigurationException
Loads the specified DTOs.
wms
- WMSDTO The wms data.wfs
- WFSDTO The wfs datageoServer
- GeoServerDTO The geo server datadata
- DataDTO The data for a catalog.
ConfigurationException
- If an error occurs.public void load(java.util.Map testSuites, java.util.Map plugIns)
public java.util.Map toPlugInDTO()
public java.util.Map toTestSuiteDTO()
public void load(WMSDTO wms, WFSDTO wfs) throws ConfigurationException
Loads the specified DTOs.
wms
- WMSDTO The wms data.wfs
- WFSDTO The wfs data
ConfigurationException
- If an error occurs.public void load(WMSDTO wms) throws ConfigurationException
Loads the WMSDTO into the current instance as a WMS object
wms
- WMSDTO
ConfigurationException
- If an error occurspublic void load(WFSDTO wfs) throws ConfigurationException
Loads the WFSDTO into the current instance as a WFS object
wfs
- WFSDTO
ConfigurationException
- If an error occurspublic void load(GeoServerDTO geoServer) throws ConfigurationException
Loads the GeoServerDTO into the current instance as a GeoServer object
geoServer
- GeoServerDTO
ConfigurationException
- If an error occurspublic void load(DataDTO data, java.io.File baseDir) throws ConfigurationException
data
- DataDTO
ConfigurationException
- If an error occurspublic static WMSDTO getDTO(WMS wms)
Generates a WMSDTO for the WMS provided.
wms
- WMS the object to generate from
public static WFSDTO getDTO(WFS wfs)
Generates a WFSDTO for the WFS provided.
wfs
- WFS the object to generate from
public static GeoServerDTO getDTO(GeoServer gs)
Generates a GeoServerDTO for the GeoServer provided.
gs
- GeoServer the object to generate from
public static DataDTO getDTO(Data dt)
Generates a DataDTO for the Data provided.
dt
- Data the object to generate from
public WMSDTO toWMSDTO()
Generates a WMSDTO object from the WMS object inside this instance.
public WFSDTO toWFSDTO()
Generates a WFSDTO object from the WFS object inside this instance.
public GeoServerDTO toGeoServerDTO()
Generates a GeoServerDTO object from the GeoServer object inside this instance.
public DataDTO toDataDTO()
Generates a DataDTO object from the Data object inside this instance.
public ValidationProcessor getProcessor()
protected java.lang.String notNull(java.lang.String s)
s
for nullity and if so, returns an empty String,
else just returns s
s
- String
public static java.lang.String get(java.util.Map map, java.lang.String key)
Gets a String from a map of Strings
map
- Map the map to extract the string fromkey
- String the key for the map.
Map
public static java.io.File get(java.util.Map map, java.lang.String key, java.io.File defaultFile)
Gets a File from a map given the specified key. If the file is not found the default file is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultFile
- The default value should the key not exist.
public static java.lang.String get(java.util.Map map, java.lang.String key, java.lang.String defaultValue)
Gets a String from a map of Strings, and returns the default if the string does not exist.
map
- Map the map to extract the string fromkey
- String the key for the map.defaultValue
- The default value should the key not exist.
Map
public static java.util.List get(java.util.Map map, java.lang.String key, java.util.List defaultList)
Gets a List from a map given the specified key. If the list is not found the default list is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultList
- The default value should the key not exist.
public static java.util.Map get(java.util.Map map, java.lang.String key, java.util.Map defaultMap)
Gets a Map from a map given the specified key. If the map is not found the default map is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultMap
- The default value should the key not exist.
public static int get(java.util.Map map, java.lang.String key, int defaultValue)
Gets a int from a map given the specified key. If the int is not found the default int is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultValue
- The default value should the key not exist.
public static boolean get(java.util.Map map, java.lang.String key, boolean defaultValue)
Gets a boolean from a map given the specified key. If the boolean is not found the default boolean is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultValue
- The default value should the key not exist.
public static java.nio.charset.Charset get(java.util.Map map, java.lang.String key, java.nio.charset.Charset defaultCharSet)
Gets a Charset from a map given the specified key. If the Charset is not found the default Charset is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultCharSet
- The default value should the key not exist.
public static java.util.logging.Level get(java.util.Map map, java.lang.String key, java.util.logging.Level defaultLevel)
Gets a Level from a map given the specified key. If the Level is not found the default Level is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultLevel
- The default value should the key not exist.
public static java.net.URL get(java.util.Map map, java.lang.String key, java.net.URL defaultUrl)
Gets a URL from a map given the specified key. If the URL is not found the default URL is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultUrl
- The default value should the key not exist.
public static java.lang.Class get(java.util.Map map, java.lang.String key, java.lang.Class defaultType)
Gets a Class from a map given the specified key. If the Class is not found the default Class is returned.
map
- Map the map to extract the file fromkey
- String the key to extract the value fordefaultType
- The default value should the key not exist.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |