@@ -267,16 +267,16 @@ protected void init(BigMLClient bigmlClient,
267267 .getProperty ("BIGML_USERNAME" );
268268 this .bigmlApiKey = apiKey != null ? apiKey : System
269269 .getProperty ("BIGML_API_KEY" );
270- bigmlAuth = "?username=" + this .bigmlUser + "; api_key="
271- + this .bigmlApiKey + "; " ;
270+ bigmlAuth = "?username=" + this .bigmlUser + "& api_key="
271+ + this .bigmlApiKey + "& " ;
272272
273273 if (project != null ) {
274274 this .project = project ;
275- bigmlAuth += "project=" + this .project + "; " ;
275+ bigmlAuth += "project=" + this .project + "& " ;
276276 }
277277 if (organization != null ) {
278278 this .organization = organization ;
279- bigmlAuth += "organization=" + this .organization + "; " ;
279+ bigmlAuth += "organization=" + this .organization + "& " ;
280280 }
281281
282282 BIGML_URL = this .bigmlClient .getBigMLUrl ();
@@ -301,12 +301,12 @@ public boolean isInstance(JSONObject resource) {
301301
302302 /**
303303 * Create a new resource.
304- *
304+ *
305305 * @param urlString
306306 * the url for the remote resource
307307 * @param json
308308 * the body json for the new resource
309- *
309+ *
310310 * @return a JSONObject for the new resource
311311 */
312312 public JSONObject createResource (final String urlString , final String json ) {
@@ -365,10 +365,10 @@ public JSONObject createResource(final String urlString, final String json) {
365365
366366 /**
367367 * Retrieve a resource.
368- *
368+ *
369369 * @param urlString
370370 * the url for the remote resource
371- *
371+ *
372372 * @return a JSONObject for the resource
373373 */
374374 public JSONObject getResource (final String urlString ) {
@@ -377,12 +377,12 @@ public JSONObject getResource(final String urlString) {
377377
378378 /**
379379 * Retrieve a resource.
380- *
380+ *
381381 * @param urlString
382382 * the url for the remote resource
383383 * @param queryString
384384 * query for filtering.
385- *
385+ *
386386 * @return a JSONObject for the resource
387387 */
388388 public JSONObject getResource (final String urlString ,
@@ -392,7 +392,7 @@ public JSONObject getResource(final String urlString,
392392
393393 /**
394394 * Retrieve a resource.
395- *
395+ *
396396 * @param urlString
397397 * the url for the remote resource
398398 * @param queryString
@@ -401,7 +401,7 @@ public JSONObject getResource(final String urlString,
401401 * API user
402402 * @param apiKey
403403 * API key
404- *
404+ *
405405 * @return a JSONObject for the resource
406406 */
407407 public JSONObject getResource (final String urlString ,
@@ -436,7 +436,7 @@ public JSONObject getResource(final String urlString,
436436 try {
437437 String query = queryString != null ? queryString : "" ;
438438 String auth = apiUser != null && apiKey != null ? "?username="
439- + apiUser + "; api_key=" + apiKey + "; " : bigmlAuth ;
439+ + apiUser + "& api_key=" + apiKey + "& " : bigmlAuth ;
440440
441441 HttpURLConnection connection = Utils .processGET (urlString + auth + query );
442442
@@ -478,12 +478,12 @@ public JSONObject getResource(final String urlString,
478478
479479 /**
480480 * List resources.
481- *
481+ *
482482 * @param urlString
483483 * the url for the remote resource type
484484 * @param queryString
485485 * query for filtering.
486- *
486+ *
487487 * @return a JSONObject containing all resources matching the query
488488 */
489489 public JSONObject listResources (final String urlString ,
@@ -535,7 +535,7 @@ public JSONObject listResources(final String urlString,
535535
536536 /**
537537 * Update a resource.
538- *
538+ *
539539 * @param urlString
540540 * the url for the remote resource
541541 * @param json
@@ -594,10 +594,10 @@ public JSONObject updateResource(final String urlString, final String json) {
594594
595595 /**
596596 * Delete a resource.
597- *
597+ *
598598 * @param urlString
599599 * the url for the remote resource
600- *
600+ *
601601 * @return a JSONObject for the deleted resource
602602 */
603603 public JSONObject deleteResource (final String urlString ) {
@@ -644,7 +644,7 @@ public JSONObject deleteResource(final String urlString) {
644644
645645 /**
646646 * Return a dictionary of fields
647- *
647+ *
648648 * @param resourceId
649649 * a unique identifier in the form xxxxx/id where id is a string
650650 * of 24 alpha-numeric chars.
@@ -682,7 +682,7 @@ public JSONObject getFields(final String resourceId) {
682682
683683 /**
684684 * Maps status code to string.
685- *
685+ *
686686 * @param resourceId
687687 * a unique identifier in the form xxxxx/id where id is a string
688688 * of 24 alpha-numeric chars.
@@ -882,7 +882,7 @@ public JSONObject list(final String queryString) {
882882 * of 24 alpha-numeric chars.
883883 * @param changes
884884 * set of parameters to update the resource. Optional
885- *
885+ *
886886 * @return a JSONObject for the updated resource
887887 */
888888 public JSONObject update (final String resourceId , final String changes ) {
@@ -943,7 +943,7 @@ public JSONObject delete(final String resourceId) {
943943 * HTTP/1.1
944944 *
945945 * @param resource a resource JSONObject
946- *
946+ *
947947 * @return a JSONObject for the deleted resource
948948 */
949949 public JSONObject delete (final JSONObject resource ) {
@@ -964,12 +964,12 @@ public JSONObject delete(final JSONObject resource) {
964964 * Retrieves a remote file.
965965 *
966966 * Uses HTTP GET to download a file object with a BigML `url`.
967- *
967+ *
968968 * @param url
969969 * the url of the remote file
970970 * @param fileName
971971 * the name of the downloaded file
972- *
972+ *
973973 * @return the json representation of the downloaded resource
974974 */
975975 protected JSONObject download (final String url , final String fileName ) {
@@ -1027,7 +1027,7 @@ protected JSONObject download(final String url, final String fileName) {
10271027 * the url of the remote file
10281028 * @param fileName
10291029 * the name of the downloaded file
1030- *
1030+ *
10311031 * @return the json representation of the downloaded resource
10321032 */
10331033 protected JSONObject downloadAsync (final String url , final String fileName ) {
@@ -1042,7 +1042,7 @@ protected JSONObject downloadAsync(final String url, final String fileName) {
10421042 * @param url
10431043 * the url of the remote file
10441044 * @param fileName
1045- * the name of the downloaded file
1045+ * the name of the downloaded file
10461046 * @param waitTime
10471047 * time (milliseconds) to wait for next check of FINISHED status
10481048 * for resource before to start to operation. Optional
@@ -1148,7 +1148,7 @@ protected JSONObject downloadAsync(final String url, final String fileName,
11481148
11491149 /**
11501150 * Waits for the resource to be finished
1151- *
1151+ *
11521152 * @param resourceId
11531153 * the id of the resource to wait for
11541154 * @param isReadyMethod
0 commit comments