Changeset 491


Ignore:
Timestamp:
May 28, 2010, 10:36:00 AM (14 years ago)
Author:
jahn
Message:

Removed obvious error that led to compile-time error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/groovy/dbnp/rest/CCMCommunicationManager.groovy

    r490 r491  
    7676
    7777
    78     public void getMeasurementsResource() {
     78    public Object getMeasurementsResource( String keyword ) {
     79        def url = new URL( ServerURL + "/" + getSearchable(keyword) )
     80        return  JSON.parse( url.newReader() )
    7981    }
     82
    8083
    8184    public void getMeasurementsForValueResource() {
    8285    }
     86
    8387
    8488    public void getMeasurementsForRangeResource() {
     
    9094
    9195
     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
    92107}
Note: See TracChangeset for help on using the changeset viewer.