List of usage examples for org.springframework.boot.cli.command.init InitializrServiceMetadata InitializrServiceMetadata
InitializrServiceMetadata(ProjectType defaultProjectType)
From source file:org.springframework.boot.cli.command.init.InitializrService.java
private InitializrServiceMetadata parseJsonMetadata(HttpEntity httpEntity) throws IOException { try {/* www . j a v a 2 s . com*/ return new InitializrServiceMetadata(getContentAsJson(httpEntity)); } catch (JSONException ex) { throw new ReportableException("Invalid content received from server (" + ex.getMessage() + ")", ex); } }