org.apache.jena.web
Class DatasetGraphAccessorHTTP

java.lang.Object
  extended by org.apache.jena.web.DatasetGraphAccessorHTTP
All Implemented Interfaces:
DatasetGraphAccessor

public class DatasetGraphAccessorHTTP
extends Object
implements DatasetGraphAccessor

A dataset graph accessor that talks to stores that implement the SPARQL 1.1 Graph Store Protocol


Constructor Summary
DatasetGraphAccessorHTTP(String remote)
          Create a DatasetUpdater for the remote URL
DatasetGraphAccessorHTTP(String remote, HttpAuthenticator authenticator)
          Create a DatasetUpdater for the remote URL
 
Method Summary
 String getGraphAcceptHeader()
          HTTP accept header used to GET a graph.
 RDFFormat getOutboundSyntax()
          RDF syntax to use when sending graphs with POST and PUT.
 void httpDelete()
           
 void httpDelete(Node graphName)
           
 Graph httpGet()
           
 Graph httpGet(Node graphName)
           
 boolean httpHead()
           
 boolean httpHead(Node graphName)
           
 void httpPatch(Graph data)
           
 void httpPatch(Node graphName, Graph data)
           
 void httpPost(Graph data)
           
 void httpPost(Node graphName, Graph data)
           
 void httpPut(Graph data)
           
 void httpPut(Node graphName, Graph data)
           
 void setAuthentication(String username, char[] password)
          Sets authentication credentials for the remote URL
 void setAuthenticator(HttpAuthenticator authenticator)
          Sets an authenticator to use for authentication to the remote URL
 void setGraphAcceptHeader(String header)
          Set the HTTP accept header used to GET a graph.
 void setOutboundSyntax(RDFFormat format)
          Set the RDF syntax to use when sending graphs with POST and PUT.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatasetGraphAccessorHTTP

public DatasetGraphAccessorHTTP(String remote)
Create a DatasetUpdater for the remote URL

Parameters:
remote - Remote URL

DatasetGraphAccessorHTTP

public DatasetGraphAccessorHTTP(String remote,
                                HttpAuthenticator authenticator)
Create a DatasetUpdater for the remote URL

Parameters:
remote - Remote URL
authenticator - HTTP Authenticator
Method Detail

getOutboundSyntax

public RDFFormat getOutboundSyntax()
RDF syntax to use when sending graphs with POST and PUT.


setOutboundSyntax

public void setOutboundSyntax(RDFFormat format)
Set the RDF syntax to use when sending graphs with POST and PUT. Defaults to RDF/XML.


getGraphAcceptHeader

public String getGraphAcceptHeader()
HTTP accept header used to GET a graph.


setGraphAcceptHeader

public void setGraphAcceptHeader(String header)
Set the HTTP accept header used to GET a graph.


setAuthentication

public void setAuthentication(String username,
                              char[] password)
Sets authentication credentials for the remote URL

Parameters:
username - User name
password - Password

setAuthenticator

public void setAuthenticator(HttpAuthenticator authenticator)
Sets an authenticator to use for authentication to the remote URL

Parameters:
authenticator - Authenticator

httpGet

public Graph httpGet()
Specified by:
httpGet in interface DatasetGraphAccessor

httpGet

public Graph httpGet(Node graphName)
Specified by:
httpGet in interface DatasetGraphAccessor

httpHead

public boolean httpHead()
Specified by:
httpHead in interface DatasetGraphAccessor

httpHead

public boolean httpHead(Node graphName)
Specified by:
httpHead in interface DatasetGraphAccessor

httpPut

public void httpPut(Graph data)
Specified by:
httpPut in interface DatasetGraphAccessor

httpPut

public void httpPut(Node graphName,
                    Graph data)
Specified by:
httpPut in interface DatasetGraphAccessor

httpDelete

public void httpDelete()
Specified by:
httpDelete in interface DatasetGraphAccessor

httpDelete

public void httpDelete(Node graphName)
Specified by:
httpDelete in interface DatasetGraphAccessor

httpPost

public void httpPost(Graph data)
Specified by:
httpPost in interface DatasetGraphAccessor

httpPost

public void httpPost(Node graphName,
                     Graph data)
Specified by:
httpPost in interface DatasetGraphAccessor

httpPatch

public void httpPatch(Graph data)
Specified by:
httpPatch in interface DatasetGraphAccessor

httpPatch

public void httpPatch(Node graphName,
                      Graph data)
Specified by:
httpPatch in interface DatasetGraphAccessor


Licenced under the Apache License, Version 2.0