Android Open Source - drupalForAndroidSDK Drupal Services Taxonomy_vocabulary






From Project

Back to project page drupalForAndroidSDK.

License

The source code is released under:

GNU General Public License

If you think the Android project drupalForAndroidSDK listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.druCloud.drupalforandroidsdk;
/* w  ww . j  av  a 2 s.c om*/
import org.apache.http.message.BasicNameValuePair;

/**
 * Created by keithyau on 11/7/13.
 */
public class DrupalServicesTaxonomy_vocabulary extends DrupalServicesBase implements DrupalServicesResource {

    public DrupalServicesTaxonomy_vocabulary(String baseURI, String endpoint) {
        super(baseURI, endpoint);
        this.setResource("taxonomy_vocabulary");
    }

    @Override
    public String create(BasicNameValuePair[] params) {
        return this.httpPostRequest(this.getURI(), params);
    }

    @Override
    public String retrieve(int id) {
        return this.httpGetRequest(this.getURI() + "/" + id);
    }

    @Override
    public String update(int id, BasicNameValuePair[] params) {
        return this.httpPutRequest(this.getURI() + "/" + id, params);
    }

    @Override
    public String delete(int id) {
        return this.httpDeleteRequest(this.getURI() + "/" + id);
    }

    @Override
    public String index() {
        return this.httpGetRequest(this.getURI());
    }
}




Java Source Code List

com.druCloud.drupalforandroidsdk.DrupalAuthOAuth.java
com.druCloud.drupalforandroidsdk.DrupalAuthSession.java
com.druCloud.drupalforandroidsdk.DrupalAuth.java
com.druCloud.drupalforandroidsdk.DrupalServicesBase.java
com.druCloud.drupalforandroidsdk.DrupalServicesFile.java
com.druCloud.drupalforandroidsdk.DrupalServicesNode.java
com.druCloud.drupalforandroidsdk.DrupalServicesResource.java
com.druCloud.drupalforandroidsdk.DrupalServicesTaxonomy_term.java
com.druCloud.drupalforandroidsdk.DrupalServicesTaxonomy_vocabulary.java
com.druCloud.drupalforandroidsdk.MainActivity.java
com.druCloud.drupalforandroidsdkdemo.DemoActivity.java