title: Java HTTP proxy server
body: <p>I need to implement a HTTP proxy server application which will proxy requests from multiple clients  to a remote server.</p>
  
  <p>Here are the steps:</p>
  
  <ol>
  <li>Client forward request to proxy</li>
  <li>Proxy forward request to server</li>
  <li>Server returns request to Proxy</li>
  <li>Proxy returns request to Client.</li>
  </ol>
  
  <p>I'm just not sure how I should implement this proxy. My first thought was to implement a tomcat application which uses jersey / apache httpclient to forward the request to the remote server and return the response back to the client ?</p>
  
  <p>Is there a better way to implement such a proxy server ?</p>
  
  <p>The proxy would need to handle multiple threads.</p>