title: how to register url handler for apache commons httpclient
body: <p>I want to be able to access custom URLs with apache httpclient. Something like this:</p>
  
  <pre><code>HttpClient client = new HttpClient();
  HttpMethod method = new GetMethod("media:///squishy.jpg");
  int statusCode = client.executeMethod(method);
  </code></pre>
  
  <p>Can I somehow register a custom URL handler? Or should I just register one with Java, using</p>
  
  <pre><code>URL.setURLStreamHandlerFactory(...)
  </code></pre>
  
  <p>Regards.</p>