Package org.apache.jena.http
Class HttpEnv
java.lang.Object
org.apache.jena.http.HttpEnv
JVM wide settings.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RDFFormatstatic final RDFFormatstatic intMaximum length of URL for GET requests for SPARQL queries (SPARQL 1.1 Protocol). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic java.net.http.HttpClientstatic java.net.http.HttpClientgetHttpClient(String url, java.net.http.HttpClient specificHttpClient) Return theHttpClientbased on URL and a possible pre-selectedHttpClient.static java.net.http.HttpClient.Builderstatic voidreset()Reset any Jena system state related to HTTPstatic voidsetDftHttpClient(java.net.http.HttpClient dftHttpClient)
-
Field Details
-
defaultTriplesFormat
-
defaultQuadsFormat
-
urlLimit
public static int urlLimitMaximum length of URL for GET requests for SPARQL queries (SPARQL 1.1 Protocol). Above this limit, the code switches to using the HTTP POST form.
-
-
Constructor Details
-
HttpEnv
public HttpEnv()
-
-
Method Details
-
getDftHttpClient
public static java.net.http.HttpClient getDftHttpClient() -
setDftHttpClient
public static void setDftHttpClient(java.net.http.HttpClient dftHttpClient) -
getHttpClient
public static java.net.http.HttpClient getHttpClient(String url, java.net.http.HttpClient specificHttpClient) Return theHttpClientbased on URL and a possible pre-selectedHttpClient. -
httpClientBuilder
public static java.net.http.HttpClient.Builder httpClientBuilder() -
reset
public static void reset()Reset any Jena system state related to HTTP
-