public class AGHTTPClient extends Object implements Closeable
Constructor and Description |
---|
AGHTTPClient(String serverURL) |
AGHTTPClient(String serverURL,
org.apache.commons.httpclient.HttpConnectionManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases system resources associated with the object.
|
void |
delete(String url,
org.apache.commons.httpclient.Header[] headers,
org.apache.commons.httpclient.NameValuePair[] params,
AGResponseHandler handler) |
void |
deleteCatalog(String catalogURL) |
void |
deleteRepository(String repositoryURL) |
String[] |
generateURIs(String repositoryURL,
String namespace,
int amount) |
void |
get(String url,
org.apache.commons.httpclient.Header[] headers,
org.apache.commons.httpclient.NameValuePair[] params,
AGResponseHandler handler) |
String[] |
getBlankNodes(String repositoryURL,
int amount) |
org.apache.commons.httpclient.HttpClient |
getHttpClient() |
List<String> |
getListOfStrings(String url) |
String |
getServerURL() |
String |
getString(String url) |
String[] |
getStringArray(String url) |
TupleQueryResult |
getTupleQueryResult(String url) |
String |
openSession(String spec,
boolean autocommit) |
void |
post(String url,
org.apache.commons.httpclient.Header[] headers,
org.apache.commons.httpclient.NameValuePair[] params,
org.apache.commons.httpclient.methods.RequestEntity requestEntity,
AGResponseHandler handler) |
void |
put(String url,
org.apache.commons.httpclient.Header[] headers,
org.apache.commons.httpclient.NameValuePair[] params,
org.apache.commons.httpclient.methods.RequestEntity requestEntity,
AGResponseHandler handler) |
void |
putCatalog(String catalogURL) |
void |
putRepository(String repositoryURL) |
void |
setMasqueradeAsUser(String user)
Sets the AG user for X-Masquerade-As-User requests.
|
void |
setUsernameAndPassword(String username,
String password)
Set the username and password for authentication with the remote server.
|
String |
toString() |
public AGHTTPClient(String serverURL)
public AGHTTPClient(String serverURL, org.apache.commons.httpclient.HttpConnectionManager manager)
public String getServerURL()
public org.apache.commons.httpclient.HttpClient getHttpClient()
public void post(String url, org.apache.commons.httpclient.Header[] headers, org.apache.commons.httpclient.NameValuePair[] params, org.apache.commons.httpclient.methods.RequestEntity requestEntity, AGResponseHandler handler) throws AGHttpException
AGHttpException
public void get(String url, org.apache.commons.httpclient.Header[] headers, org.apache.commons.httpclient.NameValuePair[] params, AGResponseHandler handler) throws AGHttpException
AGHttpException
public void delete(String url, org.apache.commons.httpclient.Header[] headers, org.apache.commons.httpclient.NameValuePair[] params, AGResponseHandler handler) throws AGHttpException
AGHttpException
public void put(String url, org.apache.commons.httpclient.Header[] headers, org.apache.commons.httpclient.NameValuePair[] params, org.apache.commons.httpclient.methods.RequestEntity requestEntity, AGResponseHandler handler) throws AGHttpException
AGHttpException
public void setUsernameAndPassword(String username, String password)
username
- the usernamepassword
- the passwordpublic void setMasqueradeAsUser(String user) throws AGHttpException
user
- the user for X-Masquerade-As-User requests.AGHttpException
public void putCatalog(String catalogURL) throws AGHttpException
AGHttpException
public void deleteCatalog(String catalogURL) throws AGHttpException
AGHttpException
public void putRepository(String repositoryURL) throws AGHttpException
AGHttpException
public void deleteRepository(String repositoryURL) throws AGHttpException
AGHttpException
public TupleQueryResult getTupleQueryResult(String url) throws AGHttpException
AGHttpException
public String[] getBlankNodes(String repositoryURL, int amount) throws AGHttpException
AGHttpException
public String getString(String url) throws AGHttpException
AGHttpException
public String[] getStringArray(String url) throws AGHttpException
AGHttpException
public List<String> getListOfStrings(String url) throws AGHttpException
AGHttpException
public String openSession(String spec, boolean autocommit) throws AGHttpException
AGHttpException
public void close()
Closeable
close
in interface Closeable
Closeable.close()
public String[] generateURIs(String repositoryURL, String namespace, int amount) throws AGHttpException
AGHttpException
Copyright © 2017 Franz Inc.. All rights reserved.