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

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

Introduction

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

Prototype

String ACCEPT_SERVICE_CAPABILITIES

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

Click Source Link

Document

Accept header to use to retrieve the service capabilities of the service.

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);
    }/*from w  w  w. j a  v  a  2 s .  c  om*/
    return new HasAcceptHeader(InitializrService.ACCEPT_SERVICE_CAPABILITIES, true);
}