org.wikidata.query.rdf.tool.HttpClientUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tools Show documentation
Show all versions of tools Show documentation
Tools to sync Wikibase to RDF stores. Also contains overall integration tests that rely on everything else.
package org.wikidata.query.rdf.tool;
import org.apache.http.client.config.CookieSpecs;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.HttpRequestBase;
/**
* Utilities for dealing with HttpClient.
*/
public final class HttpClientUtils {
/**
* Configure request to ignore cookies.
*/
public static void ignoreCookies(HttpRequestBase request) {
RequestConfig noCookiesConfig = RequestConfig.custom().setCookieSpec(CookieSpecs.IGNORE_COOKIES).build();
request.setConfig(noCookiesConfig);
}
private HttpClientUtils() {
// Uncallable utility constructor
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy