Develop a Java Servlet Filter for a TomCat application. The filter will need to read an XML configuration file, persist the parsed XML object in memory for each subsequent execution of the filter, and provide the requested filtering based on the configuration.
The types of filtering that will be needed are based on the URL structure and requester's address. The final servlet filter will be installed (by me) on a TomCat application server as an OSGi bundle. The code framework and annotations will be provided. Also a pseudo-code specification will be provided as well as a commented example of the XML configuration file.
Unit testing will be expected to be completed by the servlet filter developer and test cases and results will be part of the deliverable.
## Deliverables
I will provide a requirements document, specifications of the XML configuration file, pseudo-code for the servlet filter, and framework for an OSGi servlet filter including the required annotations. I will also be readily available via email during the development period should any questions arise.
I expect the following deliverables:
* working servlet filter meeting the requirements and specifications (preferably as an OSGi bundle, but not absolutely necessary)
* all related, well-commented source code
* unit test cases and results (does not need to be exhaustive, just thorough enough to prove that it works)