Examples of postForObject()


Examples of org.springframework.web.client.RestTemplate.postForObject()

    if (container != null) {
      String containerHost = container.getAttributes().getIp();
      String containerManagementPort = container.getAttributes().getManagementPort();
      RestTemplate restTemplate = new RestTemplate(new SimpleClientHttpRequestFactory());
      try {
        restTemplate.postForObject(CONTAINER_HOST_URI_PROTOCOL + containerHost + ":"
            + containerManagementPort + managementContextPath + SHUTDOWN_ENDPOINT, Object.class,
            Object.class);

      }
      catch (RestClientException e) {
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.