我想能夠訪問與Apache httpclient的自定義URL。類似這樣的:如何註冊Apache處理程序的Apache公共httpclient
HttpClient client = new HttpClient();
HttpMethod method = new GetMethod("media:///squishy.jpg");
int statusCode = client.executeMethod(method);
我可以以某種方式註冊一個自定義URL處理程序嗎?或者我應該只註冊一個Java,使用
URL.setURLStreamHandlerFactory(...)
問候。