use of it.unibo.arces.wot.sepa.commons.request.UpdateRequest in project SEPA by arces-wot.
the class Producer method update.
public final Response update(long timeout, long nRetry) throws SEPASecurityException, SEPAPropertiesException, SEPABindingsException, SEPAProtocolException {
UpdateRequest req = new UpdateRequest(appProfile.getUpdateMethod(SPARQL_ID), appProfile.getUpdateProtocolScheme(SPARQL_ID), appProfile.getUpdateHost(SPARQL_ID), appProfile.getUpdatePort(SPARQL_ID), appProfile.getUpdatePath(SPARQL_ID), appProfile.addPrefixesAndReplaceBindings(sparqlUpdate, addDefaultDatatype(forcedBindings, SPARQL_ID, false)), appProfile.getUsingGraphURI(SPARQL_ID), appProfile.getUsingNamedGraphURI(SPARQL_ID), (appProfile.isSecure() ? appProfile.getAuthenticationProperties().getBearerAuthorizationHeader() : null), timeout, nRetry);
logger.debug(req);
Response retResponse = client.update(req);
logger.debug(retResponse);
return retResponse;
}
Aggregations