1) Adding a .properties file containing a white list of Regex to filter client requests. A request is forwarded only if the remote hostname matches at least one.
2) Adding a pluggable callback with check for this inside the servlet code (for example providing a ProxyCallback interface to implement that contains 'onRequest', 'onRemoteResponse' and 'onFinish' methods).
First step:
1) Adding a .properties file containing a white list of Regex to filter client requests. A request is forwarded only if the remote hostname matches at least one.
2) Adding a pluggable callback with check for this inside the servlet code (for example providing a ProxyCallback interface to implement that contains 'onRequest', 'onRemoteResponse' and 'onFinish' methods).