Package no.hasmac.jsonld.loader
Class HttpLoader
- java.lang.Object
-
- no.hasmac.jsonld.loader.DefaultHttpLoader
-
- no.hasmac.jsonld.loader.HttpLoader
-
- All Implemented Interfaces:
DocumentLoader
public class HttpLoader extends DefaultHttpLoader
-
-
Field Summary
Fields Modifier and Type Field Description private static HttpLoader
INSTANCE
-
Fields inherited from class no.hasmac.jsonld.loader.DefaultHttpLoader
MAX_REDIRECTIONS
-
-
Constructor Summary
Constructors Constructor Description HttpLoader(java.net.http.HttpClient httpClient)
Deprecated.useHttpLoader(no.hasmac.jsonld.http.HttpClient httpClient)
HttpLoader(java.net.http.HttpClient httpClient, int maxRedirections)
Deprecated.useHttpLoader(no.hasmac.jsonld.http.HttpClient httpClient, int maxRedirection)
HttpLoader(HttpClient httpClient)
HttpLoader(HttpClient httpClient, int maxRedirections)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentLoader
defaultInstance()
-
Methods inherited from class no.hasmac.jsonld.loader.DefaultHttpLoader
getAcceptHeader, getAcceptHeader, loadDocument, setFallbackContentType
-
-
-
-
Field Detail
-
INSTANCE
private static final HttpLoader INSTANCE
-
-
Constructor Detail
-
HttpLoader
@Deprecated(since="1.0.3") public HttpLoader(java.net.http.HttpClient httpClient)
Deprecated.useHttpLoader(no.hasmac.jsonld.http.HttpClient httpClient)
- Parameters:
httpClient
-
-
HttpLoader
@Deprecated(since="1.0.3") public HttpLoader(java.net.http.HttpClient httpClient, int maxRedirections)
Deprecated.useHttpLoader(no.hasmac.jsonld.http.HttpClient httpClient, int maxRedirection)
- Parameters:
httpClient
-maxRedirections
-
-
HttpLoader
public HttpLoader(HttpClient httpClient)
-
HttpLoader
public HttpLoader(HttpClient httpClient, int maxRedirections)
-
-
Method Detail
-
defaultInstance
public static DocumentLoader defaultInstance()
-
-