v0idnull/HTTP-Proxy-Servlet — pull request #1 by ccronemberger (2014-08-07 19:22:09+00:00)
Title: suport for configuration in a properties file in the classpath

Hi,

In the environment I am working with we have 3 environments, for development, for testing and for production and the WAR has to go through those envs without changes.

When we have differences we put them in an external (external to the war) properties files that is added to the server classpath so our application can load the right version for each environment.

I have created a configFile init parameter that can be used to specify the file to be loaded. If not present then it falls back to the original configuration method.

I have even tried to create this as a subclass but it did not work because the init method was calling super.init passing the ServletConfig, so another option would be to split the init method in two: the first part that calls super.init and the other that reads the configurations, so I could create a subclass that calls super.init but reads the configuration from another source.

Regards,
Constantino