Package org.springframework.http

Examples of org.springframework.http.HttpMethod


   }
  
   public DatastoreRead get(String name) {
      name = CommonUtil.encode(name);
      final String path = Constants.REST_PATH_DATASTORE;
      final HttpMethod httpverb = HttpMethod.GET;

      return restClient.getObject(name, DatastoreRead.class, path, httpverb, false);
   }
View Full Code Here


      return restClient.getObject(name, DatastoreRead.class, path, httpverb, false);
   }

   public DatastoreRead[] getAll() {
      final String path = Constants.REST_PATH_DATASTORES;
      final HttpMethod httpverb = HttpMethod.GET;

      return restClient.getAllObjects(DatastoreRead[].class, path, httpverb, false);
   }
View Full Code Here

   @Autowired
   private RestClient restClient;

   public void add(ResourcePoolAdd rpAdd) {
      final String path = Constants.REST_PATH_RESOURCEPOOLS;
      final HttpMethod httpverb = HttpMethod.POST;

      restClient.createObject(rpAdd, path, httpverb);
   }
View Full Code Here

   }

   public void delete(String id) {
      id = CommonUtil.encode(id);
      final String path = Constants.REST_PATH_RESOURCEPOOL;
      final HttpMethod httpverb = HttpMethod.DELETE;

      restClient.deleteObject(id, path, httpverb);
   }
View Full Code Here

   }

   public ResourcePoolRead get(String id) {
      id = CommonUtil.encode(id);
      final String path = Constants.REST_PATH_RESOURCEPOOL;
      final HttpMethod httpverb = HttpMethod.GET;

      return restClient.getObject(id, ResourcePoolRead.class, path, httpverb, false);
   }
View Full Code Here

      return restClient.getObject(id, ResourcePoolRead.class, path, httpverb, false);
   }

   public ResourcePoolRead[] getAll() {
      final String path = Constants.REST_PATH_RESOURCEPOOLS;
      final HttpMethod httpverb = HttpMethod.GET;

      return restClient.getAllObjects(ResourcePoolRead[].class, path, httpverb, false);
   }
View Full Code Here

      return true;
   }

   private void getServerVersion(final String hostName) throws Exception {
      final String path = Constants.REST_PATH_HELLO;
      final HttpMethod httpverb = HttpMethod.GET;

      String serverVersion = conn.getObjectByPath(String.class, path, httpverb, false);
      String cliVersion = com.vmware.bdd.utils.Constants.VERSION;
      if (!cliVersion.equals(serverVersion)) {
         System.out.println("Warning: CLI version "+ cliVersion + " does not match with management server version " + serverVersion + ".");
View Full Code Here

   @Autowired
   private RestClient restClient;

   public void upload(List<RackInfo> racks) {
      final String path = Constants.REST_PATH_TOPOLOGY;
      final HttpMethod httpverb = HttpMethod.PUT;
      restClient.update(racks, path, httpverb);
   }
View Full Code Here

      restClient.update(racks, path, httpverb);
   }

   public RackInfo[] list() {
      final String path = Constants.REST_PATH_TOPOLOGY;
      final HttpMethod httpverb = HttpMethod.GET;

      return restClient.getAllObjects(RackInfo[].class, path, httpverb, false);
   }
View Full Code Here

   @Autowired
   private RestClient restClient;

   public void create(ClusterCreate clusterCreate) {
      final String path = Constants.REST_PATH_CLUSTERS;
      final HttpMethod httpverb = HttpMethod.POST;

      PrettyOutput outputCallBack =
            getClusterPrettyOutputCallBack(this, clusterCreate.getName());
      restClient.createObject(clusterCreate, path, httpverb, outputCallBack);
   }
View Full Code Here

TOP

Related Classes of org.springframework.http.HttpMethod

Copyright © 2018 www.massapicom. 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.