private QueryEngineHTTP(String serviceURI, Query query, String queryString, HttpClient client, HttpContext httpContext) { this.query = query; this.queryString = queryString; this.service = serviceURI; this.context = ARQ.getContext().copy(); // Apply service configuration if relevant applyServiceConfig(serviceURI, this); // Don't want to overwrite client config we may have picked up from // service context in the parent constructor if the specified // client is null if (client != null) setClient(client); if (httpContext != null) setHttpContext(httpContext); }