Package org.springframework.http

Examples of org.springframework.http.HttpMethod


            outputCallBack);
   }

   public void delete(String id) {
      final String path = Constants.REST_PATH_CLUSTER;
      final HttpMethod httpverb = HttpMethod.DELETE;
      id = CommonUtil.encode(id);
      PrettyOutput outputCallBack = getClusterPrettyOutputCallBack(this, id);
      restClient.deleteObject(id, path, httpverb, outputCallBack);
   }
View Full Code Here


   private void asyncSetParam(String clusterName, ElasticityRequestBody requestBody) {
      final String path =
            Constants.REST_PATH_CLUSTER + "/" + clusterName + "/"
                  + Constants.REST_PATH_ASYNC_PARAM;
      final HttpMethod httpverb = HttpMethod.PUT;
      PrettyOutput outputCallBack =
            getClusterPrettyOutputCallBack(this, clusterName);
      restClient.update(requestBody, path, httpverb, outputCallBack);
   }
View Full Code Here

   private void syncSetParam(String clusterName, ElasticityRequestBody requestBody) {
      final String path =
            Constants.REST_PATH_CLUSTER + "/" + clusterName + "/"
                  + Constants.REST_PATH_SYNC_PARAM;
      final HttpMethod httpverb = HttpMethod.PUT;
      restClient.update(requestBody, path, httpverb);
   }
View Full Code Here

   public TaskRead fixDisk(final String clusterName, FixDiskRequestBody requestBody) {
      final String path =
            Constants.REST_PATH_CLUSTER + "/" + clusterName + "/"
                  + Constants.REST_PATH_FIX + "/"
                  + Constants.REST_PATH_FIX_DISK;
      final HttpMethod httpverb = HttpMethod.PUT;
      PrettyOutput outputCallBack =
            getClusterPrettyOutputCallBack(this, clusterName);
      return restClient.updateWithReturn(requestBody, path, httpverb, outputCallBack);
   }
View Full Code Here

   @Autowired
   private RestClient restClient;

   public DistroRead get(String id) {
      final String path = Constants.REST_PATH_DISTRO;
      final HttpMethod httpverb = HttpMethod.GET;

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

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

   public DistroRead get(String appManager, String id) {
      final String path = appManager + "/" + Constants.REST_PATH_DISTRO;
      final HttpMethod httpverb = HttpMethod.GET;

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

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

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

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

      return restClient.getAllObjects(DistroRead[].class, path, httpverb, false);
   }

   public DistroRead[] getAll(String appManager) {
      final String path = appManager + "/" + Constants.REST_PATH_DISTROS;
      final HttpMethod httpverb = HttpMethod.GET;

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

   @Autowired
   private RestClient restClient;

   public void add(AppManagerAdd appManagerAdd) {
      final String path = Constants.REST_PATH_APPMANAGERS;
      final HttpMethod httpverb = HttpMethod.POST;
      restClient.createObject(appManagerAdd, path, httpverb);
   }
View Full Code Here

   }

   public AppManagerRead get(String name) {
      name = CommonUtil.encode(name);
      final String path = Constants.REST_PATH_APPMANAGER;
      final HttpMethod httpverb = HttpMethod.GET;

      return restClient.getObject(name, AppManagerRead.class, path, httpverb,
            false);
   }
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.