@CliCommand(value = { GET_HTTPSOURCE }, help = "Make GET request to http endpoint")
	public String getHttp(
			@CliOption(mandatory = false, key = { "", "target" }, help = "the URL to make the request to", unspecifiedDefaultValue = "http://localhost:9393") String target)
			throws IOException {

		final StringBuilder buffer = new StringBuilder();
		URI requestURI = URI.create(target);

		try {
			outputRequest("GET", requestURI, null, "", buffer);
			ResponseEntity<String> response = createRestTemplate(buffer).getForEntity(requestURI, String.class);
			outputResponse(response, buffer);
			if (!response.getStatusCode().equals(HttpStatus.OK)) {
				buffer.append(OsUtils.LINE_SEPARATOR).append(
						String.format("Error sending request to '%s'", target));
			}
			return buffer.toString();
		}
		catch (ResourceAccessException e) {
			return String.format(buffer.toString() + "Failed to access http endpoint %s", target);
		}
		catch (Exception e) {
			return String.format(buffer.toString() + "Failed to get data from http endpoint %s", target);
		}
	}
Http commands.

@author Jon Brisbin
@author Ilayaperumal Gopinathan
@author Gunnar Hillert
@author Eric Bottard
@author David Turanski
spring-xd-shell/src/main/java/org/springframework/xd/shell/command/HttpCommands.java