com.apicatalog.jsonld.loader.HttpLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of titanium-json-ld Show documentation
Show all versions of titanium-json-ld Show documentation
A JSON-LD 1.1 Processor & API
package com.apicatalog.jsonld.loader;
import com.apicatalog.jsonld.http.DefaultHttpClient;
import com.apicatalog.jsonld.http.HttpClient;
public class HttpLoader extends DefaultHttpLoader {
private static final HttpLoader INSTANCE = new HttpLoader(DefaultHttpClient.defaultInstance());
/**
* @deprecated use HttpLoader(com.apicatalog.jsonld.http.HttpClient httpClient)
*
* @param httpClient
*/
@Deprecated(since = "1.0.3")
public HttpLoader(java.net.http.HttpClient httpClient) {
this(httpClient, MAX_REDIRECTIONS);
}
/**
* @deprecated use HttpLoader(com.apicatalog.jsonld.http.HttpClient httpClient, int maxRedirection)
*
* @param httpClient
* @param maxRedirections
*/
@Deprecated(since = "1.0.3")
public HttpLoader(java.net.http.HttpClient httpClient, int maxRedirections) {
this(new DefaultHttpClient(httpClient), maxRedirections);
}
public HttpLoader(HttpClient httpClient) {
super(httpClient);
}
public HttpLoader(HttpClient httpClient, int maxRedirections) {
super(httpClient, maxRedirections);
}
public static final DocumentLoader defaultInstance() {
return INSTANCE;
}
}