| java.lang.Object org.vfny.geoserver.global.GlobalLayerSupertype org.vfny.geoserver.global.GeoServer
GeoServer | public class GeoServer extends GlobalLayerSupertype implements DisposableBean(Code) | | Complete configuration set for the whole server
author: Gabriel Roldan author: dzwiers version: $Id: GeoServer.java 8406 2008-02-14 19:49:39Z saul.farber $ |
Inner Class :public interface Listener | |
Field Summary | |
final public static String | WEB_CONTAINER_KEY For finding the instance of this class to use from the web container
ServletContext sc = ... |
Constructor Summary | |
public | GeoServer() Default constructor only to facilitate unit testing mock ups; real
uses shall create an instance through
GeoServer.GeoServer(Config) . | public | GeoServer(Config config) Creates a GeoServer instance and loads its configuration. |
Method Summary | |
public void | addListener(Listener listener) Adds a listener to be notified of state change. | public static void | configureGeoServerLogging(String log4jConfigFileStr, boolean suppressStdOutLogging, String logFileName) | public static void | configureGeoServerLogging(InputStream loggingConfigStream, boolean suppressStdOutLogging, boolean suppressFileLogging, String logFileName) | public void | destroy() Implements
DisposableBean.destroy to release resources being held
by the server at server shutdown, such as JDBC connection pools and ArcSDE
connection pools. | public void | fireChange() Notifies all listeners of a change. | public String | getAddress() getAddress purpose. | public String | getAddressCity() getAddressCity purpose. | public String | getAddressCountry() getAddressCountry purpose. | public String | getAddressPostalCode() getAddressPostalCode purpose. | public String | getAddressState() getAddressState purpose. | public String | getAddressType() getAddressType purpose. | public String | getAdminPassword() | public String | getAdminUserName() | public Charset | getCharSet() getCharSet purpose. | public String | getContactEmail() getContactEmail purpose. | public String | getContactFacsimile() getContactFacsimile purpose. | public String | getContactOrganization() getContactOrganization purpose. | public String | getContactParty() Property representing the contact party (person, position or
organization). | public String | getContactPerson() getContactPerson purpose. | public String | getContactPosition() getContactPosition purpose. | public String | getContactVoice() getContactVoice purpose. | public Boolean | getImageIOCache() | public JAI | getJAIDefault() | public Boolean | getJPEGNativeAcceleration() | public SunTileCache | getJaiCache() | public String | getLog4jConfigFile() getLoggingLevel purpose. | public static File | getLogLocation(String logLocation) Convenience method for determining the actual location on the local file
system of the log file based an arbirtrary path. | public String | getLogLocation() Returns the location of where the server ouputs logs. | public int | getMaxFeatures() getMaxFeatures purpose. | public double | getMemoryCapacity() | public double | getMemoryThreshold() | public String | getMimeType() getMimeType purpose. | public int | getNumDecimals() getNumDecimals purpose. | public String | getOnlineResource() getOnlineResource purpose. | public Boolean | getPNGNativeAcceleration() | public String | getProxyBaseUrl() | public Boolean | getRecycling() | public String | getSchemaBaseUrl() getSchemaBaseUrl purpose.
The Schema Base URL for this instance. | public boolean | getSuppressStdOutLogging() | public String | getTileCache() Used when GeoServer is running beheind tile caching server. | public int | getTilePriority() | public int | getTileThreads() | public String | getTitle() | public int | getUpdateSequence() | public void | initJAI(double memCapacity, double memoryThreshold, Boolean recycling, Boolean ImageIOCache) | public boolean | isVerbose() | public boolean | isVerboseExceptions() | public void | load(GeoServerDTO dto) | final public void | load(GeoServerDTO dto, ServletContext context) load purpose. | public void | removeListener(Listener listener) Removes a listener. | public void | setLogLocation(String logLocation) | public void | setSuppressStdOutLogging(boolean loggingToFile) Toggles server logging to file. | public void | setTileCache(String tileCache) | public void | setTitle(String title) | public void | setUpdateSequence(int updateSequence) | public void | setVerboseExceptions(boolean showStackTraces) If set to true, response exceptions will throw their stack trace
back to the end user. | public static void | suppressLoggingConfiguration() Call this method if you want GeoServer not to configure the logging subsystem as instructed
in the configuration file. | public Object | toDTO() toDTO purpose.
This method is package visible only, and returns a reference to the
GeoServerDTO. | public String | toString() |
WEB_CONTAINER_KEY | final public static String WEB_CONTAINER_KEY(Code) | | For finding the instance of this class to use from the web container
ServletContext sc = ... GeoServer gs =
(GeoServer)sc.getAttribute(GeoServer.WEB_CONTAINER_KEY);
|
GeoServer | public GeoServer()(Code) | | Default constructor only to facilitate unit testing mock ups; real
uses shall create an instance through
GeoServer.GeoServer(Config) .
|
addListener | public void addListener(Listener listener)(Code) | | Adds a listener to be notified of state change.
|
destroy | public void destroy() throws Exception(Code) | | Implements
DisposableBean.destroy to release resources being held
by the server at server shutdown, such as JDBC connection pools and ArcSDE
connection pools.
Note this process would greately benefit if
DataStoreFactorySpi API
had some sort of resource releasing method, so we could just traverse
the available datastore factories asking them to release any resource
needed.
|
fireChange | public void fireChange()(Code) | | Notifies all listeners of a change.
|
getAddress | public String getAddress()(Code) | | getAddress purpose.
Returns the contact Address.
String the contact Address. |
getAddressCity | public String getAddressCity()(Code) | | getAddressCity purpose.
Returns the contact City.
String the contact City. |
getAddressCountry | public String getAddressCountry()(Code) | | getAddressCountry purpose.
Returns the contact Country.
String the contact Country. |
getAddressPostalCode | public String getAddressPostalCode()(Code) | | getAddressPostalCode purpose.
Returns the contact PostalCode.
String the contact PostalCode. |
getAddressState | public String getAddressState()(Code) | | getAddressState purpose.
Returns the contact State.
String the contact State. |
getAddressType | public String getAddressType()(Code) | | getAddressType purpose.
Returns the contact Address Type.
String the contact Address Type. |
getCharSet | public Charset getCharSet()(Code) | | getCharSet purpose.
Returns the default charset for this server instance.
Charset the default charset for this server instance. |
getContactEmail | public String getContactEmail()(Code) | | getContactEmail purpose.
Returns the contact Email.
String the contact Email. |
getContactFacsimile | public String getContactFacsimile()(Code) | | getContactFacsimile purpose.
Returns the contact Facsimile.
String the contact Facsimile. |
getContactOrganization | public String getContactOrganization()(Code) | | getContactOrganization purpose.
Returns the contact Organization.
String the contact Organization. |
getContactParty | public String getContactParty()(Code) | | Property representing the contact party (person, position or
organization).
This is a derived property.
Contact party (person, position or organization), null ifunknown |
getContactPerson | public String getContactPerson()(Code) | | getContactPerson purpose.
Returns the contact Person.
String the contact Person. |
getContactPosition | public String getContactPosition()(Code) | | getContactPosition purpose.
Returns the contact Position.
String the contact Position. |
getContactVoice | public String getContactVoice()(Code) | | getContactVoice purpose.
Returns the contact Phone.
String the contact Phone. |
getImageIOCache | public Boolean getImageIOCache()(Code) | | Returns the imageIOCache. |
getJAIDefault | public JAI getJAIDefault()(Code) | | |
getJPEGNativeAcceleration | public Boolean getJPEGNativeAcceleration()(Code) | | |
getJaiCache | public SunTileCache getJaiCache()(Code) | | |
getLog4jConfigFile | public String getLog4jConfigFile()(Code) | | getLoggingLevel purpose.
Returns the Logging Level.
String the Logging Level. |
getLogLocation | public static File getLogLocation(String logLocation) throws IOException(Code) | | Convenience method for determining the actual location on the local file
system of the log file based an arbirtrary path. Relative paths are
appended to the geoserver data directory.
Parameters: location - The log file path, this can be an absolute or relativepath. Parameters: context - The servlet context The file containing the absolute path to the log file. throws: IOException - |
getMaxFeatures | public int getMaxFeatures()(Code) | | getMaxFeatures purpose.
Returns the max number of features supported.
String the max number of features supported. |
getMemoryCapacity | public double getMemoryCapacity()(Code) | | |
getMemoryThreshold | public double getMemoryThreshold()(Code) | | |
getMimeType | public String getMimeType()(Code) | | getMimeType purpose.
Returns the server default mimetype.
String the server default mimetype. |
getNumDecimals | public int getNumDecimals()(Code) | | getNumDecimals purpose.
The default number of decimals allowed in the data.
int the default number of decimals allowed in the data. |
getOnlineResource | public String getOnlineResource()(Code) | | getOnlineResource purpose.
Returns the online Resource.
String the online Resource. |
getPNGNativeAcceleration | public Boolean getPNGNativeAcceleration()(Code) | | |
getProxyBaseUrl | public String getProxyBaseUrl()(Code) | | Used when Geoserver is running behind a reverse-proxy so that url
in getCapabilities documents are fine
|
getSchemaBaseUrl | public String getSchemaBaseUrl()(Code) | | getSchemaBaseUrl purpose.
The Schema Base URL for this instance. This should generally be a local
reference, as GeoServer by default puts up the schemas that it needs
and references them. It could be used to specify an alternate site for
the schemas, however, for example if a user didn't want their servlet
container hit every time someone did a validation, they could instead
store it on another machine. I don't really know if this is useful to
anyone...
String the Schema Base URL for this instance. |
getSuppressStdOutLogging | public boolean getSuppressStdOutLogging()(Code) | | True if the server is logging to file, otherwise false. |
getTileCache | public String getTileCache()(Code) | | Used when GeoServer is running beheind tile caching server.
This value should be used when writing out a url which is a getmap
request to reference the tile caching server and not GeoServer itself.
This value can be:
- A fully qualified host name + path (URL)
- A partial path which is interpreted as relative to the host running
GeoServer
null
See Also: Requests.getTileCacheBaseUrl(javax.servlet.http.HttpServletRequestGeoServer) |
getTilePriority | public int getTilePriority()(Code) | | |
getTileThreads | public int getTileThreads()(Code) | | |
getTitle | public String getTitle()(Code) | | DOCUMENT ME!
Returns the title. |
getUpdateSequence | public int getUpdateSequence()(Code) | | the updateSequence |
initJAI | public void initJAI(double memCapacity, double memoryThreshold, Boolean recycling, Boolean ImageIOCache)(Code) | | |
isVerbose | public boolean isVerbose()(Code) | | whether xml documents should be pretty formatted
true when verbose |
isVerboseExceptions | public boolean isVerboseExceptions()(Code) | | Should we display stackTraces or not? (And give them a nice
little message instead?)
Returns the showStackTraces. |
removeListener | public void removeListener(Listener listener)(Code) | | Removes a listener.
|
setLogLocation | public void setLogLocation(String logLocation)(Code) | | Parameters: logLocation - The string representation of the path on disk in whichthe server logs to. |
setSuppressStdOutLogging | public void setSuppressStdOutLogging(boolean loggingToFile)(Code) | | Toggles server logging to file.
|
setTileCache | public void setTileCache(String tileCache)(Code) | | |
setTitle | public void setTitle(String title)(Code) | | DOCUMENT ME!
Parameters: title - The title to set. |
setUpdateSequence | public void setUpdateSequence(int updateSequence)(Code) | | Parameters: updateSequence - the updateSequence to set |
setVerboseExceptions | public void setVerboseExceptions(boolean showStackTraces)(Code) | | If set to true, response exceptions will throw their stack trace
back to the end user.
Parameters: showStackTraces - The showStackTraces to set. |
suppressLoggingConfiguration | public static void suppressLoggingConfiguration()(Code) | | Call this method if you want GeoServer not to configure the logging subsystem as instructed
in the configuration file. To be used mainly in unit testing where we want to control
logging programmatically.
|
toDTO | public Object toDTO()(Code) | | toDTO purpose.
This method is package visible only, and returns a reference to the
GeoServerDTO. This method is unsafe, and should only be used with
extreme caution.
DTO the generated object |
Fields inherited from org.vfny.geoserver.global.GlobalLayerSupertype | final protected static Logger LOGGER(Code)(Java Doc)
|
Methods inherited from org.vfny.geoserver.global.GlobalLayerSupertype | public static String get(Map map, String key)(Code)(Java Doc) public static File get(Map map, String key, File defaultFile)(Code)(Java Doc) public static String get(Map map, String key, String defaultValue)(Code)(Java Doc) public static List get(Map map, String key, List defaultList)(Code)(Java Doc) public static Map get(Map map, String key, Map defaultMap)(Code)(Java Doc) public static int get(Map map, String key, int defaultValue)(Code)(Java Doc) public static boolean get(Map map, String key, boolean defaultValue)(Code)(Java Doc) public static Charset get(Map map, String key, Charset defaultCharSet)(Code)(Java Doc) public static Level get(Map map, String key, Level defaultLevel)(Code)(Java Doc) public static URL get(Map map, String key, URL defaultUrl)(Code)(Java Doc) public static Class get(Map map, String key, Class defaultType)(Code)(Java Doc) protected String notNull(String s)(Code)(Java Doc) abstract Object toDTO()(Code)(Java Doc)
|
|
|