geoserver.rst 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. .. _config_geoserver:
  2. GeoServer
  3. =========
  4. Configuration is managed by a top-level ``GeoServer`` object providing ``save()`` and ``reload()`` functionality.
  5. The ``GeoServer`` interface is configured as a spring bean with access to:
  6. * :ref:`config_catalog`
  7. * :ref:`config_resource`
  8. * :ref:`config_geoserver_info`
  9. * :ref:`config_settings`
  10. Access to ``GeoServer`` configuration is available to spring beans during application startup and shutdown:
  11. .. code-block:: java
  12. public Bean implements DisposableBean {}
  13. GeoServer gs;
  14. public Bean(GeoServer gs){
  15. this.gs = gs;
  16. }
  17. public void destroy(){
  18. this.gs = null;
  19. }
  20. }
  21. ``GeoServer`` can be looked up once the application is running:
  22. .. code-block:: java
  23. GeoServer gs = GeoServerExtensions.bean(GeoServer.class);
  24. Also available for use via wicket (via ``GeoServerApplication`` web application):
  25. .. code-block:: java
  26. GeoServer gs = page.getGeoServerApplication().getGeoServer();
  27. .. _config_info:
  28. Info
  29. ----
  30. All Configuration ``Info`` objects have an ``getId()`` identifier used during persistance.
  31. .. _config_geoserver_info:
  32. GeoServerInfo
  33. -------------
  34. Manages some of the global configuration options:
  35. * ``JAIInfo`` image processing settings
  36. * ``CoverageAccessInfo`` image access settings
  37. * Admin username and password
  38. * resourceErrorHandling: Policy for handling misconfigured layers
  39. * updateSequence: Used via WMS protocols to communicate configuration changes to clients
  40. * featureTypeCacheSize
  41. * globalServices
  42. * xmlExternalEntitiesEnabled
  43. * lockProviderName
  44. * metadata: generic metadata map available to store additional settings
  45. * clientProperties: transient information
  46. * webUIMode: how to handle redirection
  47. * allowStoredQueriesPerWorkspace
  48. Both ``clientProperties`` and ``metadata`` can be used to communicate between modules and are intended to experiment with ideas during development. Once established this information can be recoded as ``GeoServerInfo`` property. Settings such as ``webUIMode`` and ``allowStoredQueriesPerWorkspace`` are examples of this progression.
  49. .. _config_settings:
  50. SettingsInfo
  51. ------------
  52. Manages the remaining global configuration settings:
  53. * title
  54. * contact: contact information, used in service description
  55. * charset
  56. * numDecimals
  57. * onlineResource: website used for contact information or service provider details. This setting is available as default if a web service as not been provided with online resource information.
  58. * proxyBaseUrl: Public location of GeoServer instance, if managed behind a proxy or as part of a cluster.
  59. * schemaBaseUrl
  60. * verbose: Flag to control pretty printing and formatting of xml output
  61. * verboseException: flag to include full strack trace in web service expections
  62. * metadata: generic metadata map available to store additional settings
  63. * clientProperties: transient information
  64. * localWorkspaceIncludesPrefix
  65. * showCreatedTimeColumnsInAdminList
  66. * showModifiedTimeColumnsInAdminList
  67. * defaultLocale
  68. * userHeadsProxyURL
  69. Some of these settings can be overriden on a workspace by workspace basis. This allows a workspace to have its own contact information and information policies.