Package org.springframework.http

Examples of org.springframework.http.HttpMethod


   public void configCluster(ClusterCreate clusterConfig) {
      String clusterName = clusterConfig.getName();
      final String path =
            Constants.REST_PATH_CLUSTER + "/" + clusterName + "/"
                  + Constants.REST_PATH_CONFIG;
      final HttpMethod httpverb = HttpMethod.PUT;
      PrettyOutput outputCallBack =
            getClusterPrettyOutputCallBack(this, clusterName);
      restClient.update(clusterConfig, path, httpverb, outputCallBack);
   }
View Full Code Here


   public void upgradeCluster(String clusterName) {
      final String path =
            Constants.REST_PATH_CLUSTER + "/" + clusterName + "/"
                  + Constants.REST_PATH_UPGRADE;
      final HttpMethod httpverb = HttpMethod.PUT;
      PrettyOutput outputCallBack =
            getClusterPrettyOutputCallBack(this, clusterName);
      restClient.update(clusterName, path, httpverb, outputCallBack);
   }
View Full Code Here

   }

   public ClusterRead get(String id, Boolean detail) {
      id = CommonUtil.encode(id);
      final String path = Constants.REST_PATH_CLUSTER;
      final HttpMethod httpverb = HttpMethod.GET;
      return restClient
            .getObject(id, ClusterRead.class, path, httpverb, detail);
   }
View Full Code Here

   }

   public ValidateResult validateBlueprint(ClusterCreate cluster) {
      String name = CommonUtil.encode(cluster.getName());
      final String path = Constants.REST_PATH_CLUSTER + "/" + name + "/validate";
      final HttpMethod httpverb = HttpMethod.POST;
      return restClient.getObject(path, ValidateResult.class, httpverb, cluster);
   }
View Full Code Here

   public ClusterCreate getSpec(String id) {
      id = CommonUtil.encode(id);
      final String path =
            Constants.REST_PATH_CLUSTER + "/" + id + "/"
                  + Constants.REST_PATH_SPEC;
      final HttpMethod httpverb = HttpMethod.GET;

      return restClient.getObjectByPath(ClusterCreate.class, path, httpverb,
            false);
   }
View Full Code Here

      if (!CommonUtil.isBlank(topology)) {
         path.append("?");
         path.append(Constants.REST_PATH_CLUSTER_RACK_PARAM_TOPOLOGY).append("=").append(topology);
      }

      final HttpMethod httpverb = HttpMethod.GET;
      return restClient.getObjectByPath(Map.class, path.toString(), httpverb, false);
   }
View Full Code Here

      return restClient.getObjectByPath(Map.class, path.toString(), httpverb, false);
   }

   public ClusterRead[] getAll(Boolean detail) {
      final String path = Constants.REST_PATH_CLUSTERS;
      final HttpMethod httpverb = HttpMethod.GET;

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

   }

   public void actionOps(String id, String callbackId,
         Map<String, String> queryStrings) {
      final String path = Constants.REST_PATH_CLUSTER;
      final HttpMethod httpverb = HttpMethod.PUT;

      PrettyOutput outputCallBack =
            getClusterPrettyOutputCallBack(this, callbackId);
      restClient.actionOps(id, path, httpverb, queryStrings, outputCallBack);
   }
View Full Code Here

   public void resize(String clusterName, String nodeGroup, int instanceNum) {
      final String path =
            Constants.REST_PATH_CLUSTER + "/" + clusterName + "/"
                  + Constants.REST_PATH_NODEGROUP + "/" + nodeGroup
                  + "/instancenum";
      final HttpMethod httpverb = HttpMethod.PUT;

      PrettyOutput outputCallBack =
            getClusterPrettyOutputCallBack(this, clusterName);
      restClient.update(Integer.valueOf(instanceNum), path, httpverb,
            outputCallBack);
View Full Code Here

   public TaskRead scale(ResourceScale scale){
      final String path =
            Constants.REST_PATH_CLUSTER + "/" + scale.getClusterName() + "/"
                  + Constants.REST_PATH_NODEGROUP + "/" + scale.getNodeGroupName()
                  + "/scale";
      final HttpMethod httpverb = HttpMethod.PUT;

      PrettyOutput outputCallBack =
            getClusterPrettyOutputCallBack(this, scale.getClusterName());
      return restClient.updateWithReturn(scale, 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.