|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.repository.remote.HTTPService
A Sesame service for remote repositories that can be communicated with over HTTP.
| Constructor Summary | |
HTTPService(URL serverURL)
Creates a new remote Sesame service that will communicate over HTTP with the server at the specified URL. |
|
| Method Summary | |
SesameRepository |
getRepository(String repositoryID)
Gets a SesameRepository object for the specified repository ID. |
RepositoryList |
getRepositoryList()
Gets a list of all repositories that are accessible by the currently logged in user. |
void |
login(String username,
String password)
Log in to a Sesame service. |
void |
logout()
Log out from a Sesame service. |
void |
setDefaultGraphQueryResultFormat(RDFFormat format)
Sets the default response format for graph query results to be used by HTTPRepository objects of this service. |
void |
setDefaultTableQueryResultFormat(QueryResultFormat format)
Sets the default response format for table query results to be used by HTTPRepository objects of this service. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HTTPService(URL serverURL)
serverURL - The Sesame server's URL.
IllegalArgumentException - If the supplied URL is
null, if it does not specify http as the
protocol, or if the combination of the specified server URL and
the paths to its servlets results in an illegal URL.| Method Detail |
public void setDefaultTableQueryResultFormat(QueryResultFormat format)
format - A table query result format. Allowed values are XML and
BINARY.HTTPRepository.setTableQueryResultFormat(org.openrdf.sesame.constants.QueryResultFormat)public void setDefaultGraphQueryResultFormat(RDFFormat format)
format - An RDF serialization format. Allowed values are RDFXML,
NTRIPLES and TURTLE.HTTPRepository.setGraphQueryResultFormat(org.openrdf.sesame.constants.RDFFormat)
public void login(String username,
String password)
throws AccessDeniedException,
IOException
SesameService
login in interface SesameServiceIOException - If an I/O error occurred.
AccessDeniedException - If the attempt to log in failed.
public void logout()
throws IOException
SesameService
logout in interface SesameServiceIOException - If an I/O error occurred.
public RepositoryList getRepositoryList()
throws IOException
SesameService
getRepositoryList in interface SesameServiceIOException - If an I/O error occurred while fetching
information about the available repositories.
public SesameRepository getRepository(String repositoryID)
throws UnknownRepositoryException,
IOException
SesameService
getRepository in interface SesameServicerepositoryID - A repository ID.
UnknownRepositoryException - If the specified
repository ID is unknown.
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||