code: public void service(HttpServletRequest req, HttpServletResponse res) 
          throws ServletException, IOException
      {
      	if ((proxyURLPrefix == null) || (proxyURLPrefix.length() == 0))
      	{	// No proxy specified
          	super.service(req, res);
      		return;
      	}
  		ServletOutputStream streamOut = res.getOutputStream();
      	try {
      		String proxyURLString = getProxyURLString(req);
      		HttpRequestBase httpRequest = getHttpRequest(req, proxyURLString);
      		addHeaders(req, httpRequest);
      		this.getDataFromClient(httpRequest, streamOut);
  		} catch (Exception e) {
  			displayErrorInHtml(streamOut, e);
  		}
      }
docs: Process an HTML get or post.
  @exception ServletException From inherited class.
  @exception IOException From inherited class.