Example usage for org.springframework.boot.cli.command.init InitializrServiceMetadata InitializrServiceMetadata

List of usage examples for org.springframework.boot.cli.command.init InitializrServiceMetadata InitializrServiceMetadata

Introduction

In this page you can find the example usage for org.springframework.boot.cli.command.init InitializrServiceMetadata InitializrServiceMetadata.

Prototype

InitializrServiceMetadata(ProjectType defaultProjectType) 

Source Link

Usage

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);
    }
}