| |
|
| java.lang.Object org.openrdf.repository.http.HTTPRepository
HTTPRepository | public class HTTPRepository implements Repository(Code) | | A repository that serves as a proxy for a remote repository on a Sesame
server.
Methods in this class may throw the specific RepositoryException subclasses
UnautorizedException and NotAllowedException, the semantics of which are
defined by the HTTP protocol.
See Also: org.openrdf.http.protocol.UnauthorizedException See Also: org.openrdf.http.protocol.NotAllowedException author: Arjohn Kampman author: jeen author: Herko ter Horst |
HTTPRepository | public HTTPRepository(String repositoryURL)(Code) | | |
getPreferredRDFFormat | public RDFFormat getPreferredRDFFormat()(Code) | | Indicates the current preferred
RDFFormat .
The preferred format, of 'null' if no explicit preference isdefined. |
setDataDir | public void setDataDir(File dataDir)(Code) | | |
setPreferredRDFFormat | public void setPreferredRDFFormat(RDFFormat format)(Code) | | Sets the preferred serialization format for RDF to the supplied
RDFFormat , overriding the
HTTPClient 's default
preference. Setting this parameter is not necessary in most cases as the
HTTPClient by default indicates a preference for the most compact
and efficient format available.
Use with caution: if set to a format that does not support context
serialization any context info contained in the query result will be lost.
Parameters: format - the preferred RDFFormat. If set to 'null' no explicitpreference will be stated. |
setPreferredTupleQueryResultFormat | public void setPreferredTupleQueryResultFormat(TupleQueryResultFormat format)(Code) | | Sets the preferred serialization format for tuple query results to the
supplied
TupleQueryResultFormat , overriding the
HTTPClient 's default preference. Setting this parameter is not
necessary in most cases as the
HTTPClient by default indicates a
preference for the most compact and efficient format available.
Parameters: format - the preferred TupleQueryResultFormat. If set to 'null' noexplicit preference will be stated. |
setUsernameAndPassword | public void setUsernameAndPassword(String username, String password)(Code) | | Set the username and password to use for authenticating with the remote
repository.
Parameters: username - the username. Setting this to null will disable authentication. Parameters: password - the password. Setting this to null will disable authentication. |
|
|
|