HttpGet httpGet = currentGets.remove(address);
if(httpGet != null) httpGet.abort();
}
public byte[] loadContent(String referer, String address) throws Exception {
URLEncoder urlEncoder = new URLEncoder();
if(host == null) {
setURL(referer, new URL(address));
} else {
URL url = new URL(address);
URLCodeGenerator urlCodeUtil = new URLCodeGenerator();
if(!urlCodeUtil.compareHost(url.getHost(), getHost())) {
setURL(referer, new URL(address));
}
}
HttpGet httpGet = null;
try {
address = urlEncoder.encode(address);
httpGet = createGetMethod(address, referer);
currentGets.put(address, httpGet);
if(httpGet == null) return null;
HttpHost httpHost = createHttpHost(address);