A repository that serves as a proxy for a remote repository on a Sesame Server. Methods in this class may throw the
specific RepositoryException subclass UnautorizedException, the semantics of which is defined by the HTTP protocol.

getHttpClientSessionManager

HttpClientSessionManager that has been assigned or has been used by this object. The life cycle might not
be or might be tied to this object, depending on whether HttpClientSessionManager was passed to or
created by this object respectively.

setHttpClientSessionManager

Assign an HttpClientSessionManager that this object should use. The life cycle of the given
HttpClientSessionManager is independent of this object. Closing or shutting down this object does not
have any impact on the given client. Callers must ensure that the given client is properly closed elsewhere.

setAdditionalHttpHeaders

Set additional HTTP headers to be included in every request to the server, which may be required for certain
unusual server configurations. This will only take effect on connections subsequently returned by
getConnection().

Parameters:

additionalHttpHeaders - a map containing pairs of header names and values. May be null

getHttpClient

HttpClient that has been assigned or has been used by this object. The life cycle might not be or might
be tied to this object, depending on whether HttpClient was passed to or created by this object
respectively.

setHttpClient

Assign an HttpClient that this object should use. The life cycle of the given HttpClient is
independent of this object. Closing or shutting down this object does not have any impact on the given client.
Callers must ensure that the given client is properly closed elsewhere.

getConnection

Opens a connection to this repository that can be used for querying and updating the contents of the repository.
Created connections need to be closed to make sure that any resources they keep hold of are released. The best
way to do this is to use a try-with-resources block, as follows:

Note that RepositoryConnection is not guaranteed to be thread-safe! The recommended pattern for
repository access in a multi-threaded application is to share the Repository object between threads, but have
each thread create and use its own RepositoryConnections.

isWritable

Checks whether this repository is writable, i.e. if the data contained in this repository can be changed. The
writability of the repository is determined by the writability of the Sail that this repository operates on.

setPreferredTupleQueryResultFormat

Sets the preferred serialization format for tuple query results to the supplied TupleQueryResultFormat,
overriding the SPARQLProtocolSession 's default preference. Setting this parameter is not necessary in
most cases as the SPARQLProtocolSession by default indicates a preference for the most compact and
efficient format available.

setPreferredRDFFormat

Sets the preferred serialization format for RDF to the supplied RDFFormat, overriding the
SPARQLProtocolSession's default preference. Setting this parameter is not necessary in most cases as the
SPARQLProtocolSession 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 explicit preference will be stated.