public void get(Resource subj, URI pred, Value obj, boolean includeInferred, RDFHandler handler,
Resource... contexts)
throws RDFHandlerException, StoreException
{
HTTPRequest request = pool.get();
if (match != null) {
request.ifNoneMatch(match);
}
try {
request.acceptRDF(true);
request.sendQueryString(getParams(subj, pred, obj, includeInferred, contexts));
if (execute(request) && !request.isNotModified()) {
request.readRDF(handler);
}
}
catch (NoCompatibleMediaType e) {
throw new StoreException(e);
}
catch (IOException e) {
throw new StoreException(e);
}
catch (RDFParseException e) {
throw new StoreException(e);
}
finally {
request.release();
}
}