Package org.zanata.rest.client

Examples of org.zanata.rest.client.IFixedTranslationResources.deleteResource()


    {
      final ZanataDetails details = new ZanataDetails();
      final String URI = details.getUrl();

      final IFixedTranslationResources client = ProxyFactory.create(IFixedTranslationResources.class, URI);
      final ClientResponse<String> response = client.deleteResource(details.getUsername(), details.getToken(), id);
     
      final Status status = Response.Status.fromStatusCode(response.getStatus());
     
      if (status == Response.Status.OK)
      {
View Full Code Here


      System.out.println(meta.getType().toString());
     
      if (name.endsWith("null"))
      {
        System.out.println("Deleting " + name);
        final ClientResponse<String> deleteResponse = client.deleteResource("admin", "b6d7044e9ee3b2447c28fb7c50d86d98", name);
        final String deleteEntity = deleteResponse.getEntity();
        System.out.println(deleteEntity);
       
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.