Package org.springframework.http

Examples of org.springframework.http.HttpMethod


            false);
   }

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

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


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

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

            false);
   }

   public String[] getTypes() {
      final String path = Constants.REST_PATH_APPMANAGERS + "/types";
      final HttpMethod httpverb = HttpMethod.GET;

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

   public String[] getRoles(String appMgrName, String distroName) {
      final String path =
            Constants.REST_PATH_APPMANAGER + "/" + appMgrName + "/"
                  + Constants.REST_PATH_DISTRO + "/" + distroName + "/"
                  + Constants.REST_PATH_ROLES;
      final HttpMethod httpverb = HttpMethod.GET;

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

   public String getConfigurations(String appMgrName, String distroName) {
      final String path =
            Constants.REST_PATH_APPMANAGER + "/" + appMgrName + "/"
                  + Constants.REST_PATH_DISTRO + "/" + distroName + "/"
                  + Constants.REST_PATH_CONFIGURATIONS;
      final HttpMethod httpverb = HttpMethod.GET;

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

   public DistroRead getDefaultDistro(String name) {
      name = CommonUtil.encode(name);
      final String path =
            Constants.REST_PATH_APPMANAGER + "/" + name + "/"
                  + Constants.REST_PATH_DEFAULT_DISTRO;
      final HttpMethod httpverb = HttpMethod.GET;

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

   public DistroRead getDistroByName(String appMangerName, String distroName) {
      appMangerName = CommonUtil.encode(appMangerName);
      final String path =
            Constants.REST_PATH_APPMANAGER + "/" + appMangerName + "/"
                  + Constants.REST_PATH_DISTRO;
      final HttpMethod httpverb = HttpMethod.GET;

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

            false);
   }

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

   }

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

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

      String actionString = XmlHelper.getAttribute("action", attributes);
      String methodString = XmlHelper.getAttribute("method", attributes);
      if (methodString == null)
        methodString = "get";

      HttpMethod httpMethod = HttpMethod.valueOf(methodString.toUpperCase());
      URI uri = new URI(actionString);
      String encoding = "UTF-8";
      String contentType = "application/x-www-form-urlencoded";
      MultiValueMap<String, String> requestValues = buildRequestValues(form, args, encoding);
      return new FormRequest(httpMethod, requestValues, uri, contentType, encoding);
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.