public class DatasetGraphAccessorHTTP extends Object implements DatasetGraphAccessor
| Constructor and Description |
|---|
DatasetGraphAccessorHTTP(String remote)
Create a DatasetUpdater for the remote URL
|
DatasetGraphAccessorHTTP(String remote,
HttpAuthenticator authenticator)
Create a DatasetUpdater for the remote URL
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public DatasetGraphAccessorHTTP(String remote)
remote - Remote URLpublic DatasetGraphAccessorHTTP(String remote, HttpAuthenticator authenticator)
remote - Remote URLauthenticator - HTTP Authenticatorpublic RDFFormat getOutboundSyntax()
public void setOutboundSyntax(RDFFormat format)
public String getGraphAcceptHeader()
public void setGraphAcceptHeader(String header)
public void setAuthentication(String username, char[] password)
username - User namepassword - Passwordpublic void setAuthenticator(HttpAuthenticator authenticator)
authenticator - Authenticatorpublic Graph httpGet()
httpGet in interface DatasetGraphAccessorpublic Graph httpGet(Node graphName)
httpGet in interface DatasetGraphAccessorpublic boolean httpHead()
httpHead in interface DatasetGraphAccessorpublic boolean httpHead(Node graphName)
httpHead in interface DatasetGraphAccessorpublic void httpPut(Graph data)
httpPut in interface DatasetGraphAccessorpublic void httpPut(Node graphName, Graph data)
httpPut in interface DatasetGraphAccessorpublic void httpDelete()
httpDelete in interface DatasetGraphAccessorpublic void httpDelete(Node graphName)
httpDelete in interface DatasetGraphAccessorpublic void httpPost(Graph data)
httpPost in interface DatasetGraphAccessorpublic void httpPost(Node graphName, Graph data)
httpPost in interface DatasetGraphAccessorpublic void httpPatch(Graph data)
httpPatch in interface DatasetGraphAccessorpublic void httpPatch(Node graphName, Graph data)
httpPatch in interface DatasetGraphAccessorLicenced under the Apache License, Version 2.0