code: protected void customizeConnection(String pathInContext, String pathParams, HttpRequest request, URLConnection connection) throws IOException
      {
      }
docs: Customize proxy URL connection. Method to allow derived handlers to customize the connection.