Class StoreProtocol<X extends StoreProtocol<X>>

java.lang.Object
org.apache.jena.sparql.exec.http.StoreProtocol<X>
Direct Known Subclasses:
DSP, GSP

public abstract class StoreProtocol<X extends StoreProtocol<X>> extends Object
State and settings management for Graph Store Protocol and Dataset Store Protocol clients.
  • Method Details

    • endpoint

      public X endpoint(String serviceURL)
      Set the URL of the query endpoint.
    • httpClient

      public X httpClient(HttpClient httpClient)
    • httpHeader

      public X httpHeader(String headerName, String headerValue)
      Set an HTTP header that is added to the request. See accept(org.apache.jena.riot.Lang), acceptHeader(java.lang.String) and contentType(RDFFormat). for specific handling of Accept: and Content-Type.
    • acceptHeader

      public X acceptHeader(String acceptHeader)
      Set the accept header on GET requests. Optional; if not set, a system default is used.
    • accept

      public X accept(Lang lang)
      Set the accept header on GET requests. Optional; if not set, a system default is used.
    • contentTypeHeader

      public X contentTypeHeader(String 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.
    • contentType

      public X contentType(RDFFormat rdfFormat)
      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

      public X copySetup(StoreProtocol<?> other)
      Copy the state (endpoint, HttpClient, HTTP headers, RDFFormat) of one StoreProtocol into this one. Any old setup on this object is lost.