Module org.apache.jena.arq
Package org.apache.jena.sparql.exec.http
Class StoreProtocol<X extends StoreProtocol<X>>
java.lang.Object
org.apache.jena.sparql.exec.http.StoreProtocol<X>
State and settings management for
Graph Store Protocol
and Dataset Store Protocol
clients.-
Method Summary
Modifier and TypeMethodDescriptionSet the accept header on GET requests.acceptHeader
(String acceptHeader) Set the accept header on GET requests.contentType
(RDFFormat rdfFormat) Set the Content-type for a POST, PUT request of a file or serialization of a graph of dataset is necessary.contentTypeHeader
(String contentType) Set the Content-type for a POST, PUT request of a file or serialization of a graph of dataset is necessary.copySetup
(StoreProtocol<?> other) Copy the state (endpoint, HttpClient, HTTP headers, RDFFormat) of one StoreProtocol into this one.Set the URL of the query endpoint.httpClient
(HttpClient httpClient) httpHeader
(String headerName, String headerValue) Set an HTTP header that is added to the request.
-
Method Details
-
endpoint
Set the URL of the query endpoint. -
httpClient
-
httpHeader
Set an HTTP header that is added to the request. Seeaccept(org.apache.jena.riot.Lang)
,acceptHeader(java.lang.String)
andcontentType(RDFFormat)
. for specific handling ofAccept:
andContent-Type
. -
acceptHeader
Set the accept header on GET requests. Optional; if not set, a system default is used. -
accept
Set the accept header on GET requests. Optional; if not set, a system default is used. -
contentTypeHeader
Set the Content-type for a POST, PUT request of a file or serialization of a graph of dataset is necessary. Optional; if not set, the file extension is used or the system default RDF syntax encoding. -
contentType
Set the Content-type for a POST, PUT request of a file or serialization of a graph of dataset is necessary. Optional; if not set, the file extension is used or the system default RDF syntax encoding. -
copySetup
Copy the state (endpoint, HttpClient, HTTP headers, RDFFormat) of one StoreProtocol into this one. Any old setup on this object is lost.
-