geosolutions-it/http-proxy — Issue #6: Change the proxy configuration at runtime
Author: tdipisa
Created: 2012-01-30 09:56:52+00:00
State: open

Now the http proxy reads the .properties file every time a request comes in to check any possible modifications to the configuration performed in this file. This feature is not very powerful, in GeoServer we are File Watcher that you can reuse:

https://svn.codehaus.org/geoserver/trunk/src/main/src/main/java/org/geoserver/security/PropertyFileWatcher.java
https://svn.codehaus.org/geoserver/trunk/src/platform/src/main/java/org/geoserver/platform/FileWatcher.java

Every time a property is required we have to check if the file is stale, in order to reload or not the configuration. The code is already optimized to not do too many controls on the file system, even if you call isStale ().