Interface SpringCloudConfigClient
@Client(value="${spring.cloud.config.uri:`http://localhost:8888`}",
configuration=SpringCloudClientConfiguration.class)
@Requires(beans=SpringCloudClientConfiguration.class)
public interface SpringCloudConfigClient
A non-blocking HTTP client for Spring Cloud Config Client.
- Since:
- 1.0
- Author:
- Thiago Locatelli
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<ConfigServerResponse>
readValues
(@NonNull String applicationName, @Nullable String profiles) Reads an application configuration from Spring Config Server.org.reactivestreams.Publisher<ConfigServerResponse>
readValues
(@NonNull String applicationName, @Nullable String profiles, @Nullable String label) Reads a versioned (#label) application configuration from Spring Config Server.org.reactivestreams.Publisher<ConfigServerResponse>
readValuesAuthorized
(@NonNull String applicationName, @Nullable String profiles, @Nullable String label, String authorization) Reads a versioned (#label) application configuration from Spring Config Server with authorization parameter.org.reactivestreams.Publisher<ConfigServerResponse>
readValuesAuthorized
(@NonNull String applicationName, @Nullable String profiles, String authorization) Reads an application configuration from Spring Config Server with authorization parameter.
-
Field Details
-
CLIENT_DESCRIPTION
- See Also:
-
-
Method Details
-
readValues
@Get("/{applicationName}{/profiles}") @Produces(single=true) @Retryable(attempts="${spring.cloud.config.config.retry-count:3}", delay="${spring.cloud.config.config.retry-delay:1s}") org.reactivestreams.Publisher<ConfigServerResponse> readValues(@NonNull @NonNull String applicationName, @Nullable @Nullable String profiles) Reads an application configuration from Spring Config Server.- Parameters:
applicationName
- The application nameprofiles
- The active profiles- Returns:
- A
Publisher
that emits a list ofConfigServerResponse
-
readValuesAuthorized
@Get("/{applicationName}{/profiles}") @Produces(single=true) @Retryable(attempts="${spring.cloud.config.config.retry-count:3}", delay="${spring.cloud.config.config.retry-delay:1s}") org.reactivestreams.Publisher<ConfigServerResponse> readValuesAuthorized(@NonNull @NonNull String applicationName, @Nullable @Nullable String profiles, @Header String authorization) Reads an application configuration from Spring Config Server with authorization parameter.- Parameters:
applicationName
- The application nameprofiles
- The active profilesauthorization
- The Basic authorization header needed to authorize against the server- Returns:
- A
Publisher
that emits a list ofConfigServerResponse
-
readValues
@Get("/{applicationName}{/profiles}{/label}") @Produces(single=true) @Retryable(attempts="${spring.cloud.config.config.retry-count:3}", delay="${spring.cloud.config.config.retry-delay:1s}") org.reactivestreams.Publisher<ConfigServerResponse> readValues(@NonNull @NonNull String applicationName, @Nullable @Nullable String profiles, @Nullable @Nullable String label) Reads a versioned (#label) application configuration from Spring Config Server.- Parameters:
applicationName
- The application nameprofiles
- The active profileslabel
- The label- Returns:
- A
Publisher
that emits a list ofConfigServerResponse
-
readValuesAuthorized
@Get("/{applicationName}{/profiles}{/label}") @Produces(single=true) @Retryable(attempts="${spring.cloud.config.config.retry-count:3}", delay="${spring.cloud.config.config.retry-delay:1s}") org.reactivestreams.Publisher<ConfigServerResponse> readValuesAuthorized(@NonNull @NonNull String applicationName, @Nullable @Nullable String profiles, @Nullable @Nullable String label, @Header String authorization) Reads a versioned (#label) application configuration from Spring Config Server with authorization parameter.- Parameters:
applicationName
- The application nameprofiles
- The active profileslabel
- The labelauthorization
- The Basic authorization header needed to authorize against the server- Returns:
- A
Publisher
that emits a list ofConfigServerResponse
-