Example usage for org.springframework.boot.cli.command.init InitializrService ACCEPT_META_DATA

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

Introduction

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

Prototype

String ACCEPT_META_DATA

To view the source code for org.springframework.boot.cli.command.init InitializrService ACCEPT_META_DATA.

Click Source Link

Document

Accept header to use to retrieve the json meta-data.

Usage

From source file:org.springframework.boot.cli.command.init.AbstractHttpClientMockTests.java

private ArgumentMatcher<HttpGet> getForMetadata(boolean serviceCapabilities) {
    if (!serviceCapabilities) {
        return new HasAcceptHeader(InitializrService.ACCEPT_META_DATA, true);
    }// w w  w .j  a  v  a 2 s .  c o m
    return new HasAcceptHeader(InitializrService.ACCEPT_SERVICE_CAPABILITIES, true);
}

From source file:org.springframework.boot.cli.command.init.AbstractHttpClientMockTests.java

private ArgumentMatcher<HttpGet> getForNonMetadata() {
    return new HasAcceptHeader(InitializrService.ACCEPT_META_DATA, false);
}