Example usage for org.apache.http.client.methods HttpHead hashCode

List of usage examples for org.apache.http.client.methods HttpHead hashCode

Introduction

In this page you can find the example usage for org.apache.http.client.methods HttpHead hashCode.

Prototype

@HotSpotIntrinsicCandidate
public native int hashCode();

Source Link

Document

Returns a hash code value for the object.

Usage

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;
}