List of usage examples for org.apache.http.client.methods HttpHead hashCode
@HotSpotIntrinsicCandidate public native int hashCode();
From source file:net.yacy.cora.protocol.http.HTTPClient.java
/** * This method gets HEAD response//from w ww. ja v a 2s .c om * * @param url the url to Response from * @return the HttpResponse * @throws IOException */ public HttpResponse HEADResponse(final MultiProtocolURL url, final boolean concurrent) throws IOException { final HttpHead httpHead = new HttpHead(url.toNormalform(true)); setHost(url.getHost()); // overwrite resolved IP, needed for shared web hosting DO NOT REMOVE, see http://en.wikipedia.org/wiki/Shared_web_hosting_service execute(httpHead, concurrent); finish(); ConnectionInfo.removeConnection(httpHead.hashCode()); return this.httpResponse; }