An HTTP reverse proxy/gateway servlet. It is designed to be extended for customization if desired.
https://github.com/mitre/HTTP-Proxy-Servlet/blob/master/src/main/java/org/mitre/dsmiley/httpproxy/ProxyServlet.java