Changeset 491
- Timestamp:
- May 28, 2010, 10:36:00 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/groovy/dbnp/rest/CCMCommunicationManager.groovy
r490 r491 76 76 77 77 78 public void getMeasurementsResource() { 78 public Object getMeasurementsResource( String keyword ) { 79 def url = new URL( ServerURL + "/" + getSearchable(keyword) ) 80 return JSON.parse( url.newReader() ) 79 81 } 82 80 83 81 84 public void getMeasurementsForValueResource() { 82 85 } 86 83 87 84 88 public void getMeasurementsForRangeResource() { … … 90 94 91 95 96 /** Send a request for the REST resource to the server and deliver the 97 * resulting JSON object. 98 * 99 * @param resource: the name of the resource including parameters 100 * @return JSON object 101 */ 102 private Object requesService( String resource ) { 103 def url = new URL( ServerURL + "/" + resource ); 104 return JSON.parse( url.newReader() ); 105 } 106 92 107 }
Note: See TracChangeset
for help on using the changeset viewer.