public class HttpConnectorCommonConfiguration extends Object
smallrye-http
connector.Modifier and Type | Field and Description |
---|---|
protected org.eclipse.microprofile.config.Config |
config |
Constructor and Description |
---|
HttpConnectorCommonConfiguration(org.eclipse.microprofile.config.Config config)
Creates a new HttpConnectorCommonConfiguration.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.microprofile.config.Config |
config() |
String |
getChannel() |
protected <T> Optional<T> |
getFromAlias(String alias,
Class<T> type)
Retrieves the value stored for the given alias.
|
protected <T> T |
getFromAliasWithDefaultValue(String alias,
Class<T> type,
T defaultValue)
Retrieves the value stored for the given alias.
|
void |
validate() |
public HttpConnectorCommonConfiguration(org.eclipse.microprofile.config.Config config)
public org.eclipse.microprofile.config.Config config()
protected <T> Optional<T> getFromAlias(String alias, Class<T> type)
T
- the targeted typealias
- the attribute alias, must not be null
or blanktype
- the targeted typeprotected <T> T getFromAliasWithDefaultValue(String alias, Class<T> type, T defaultValue)
T
- the targeted typealias
- the attribute alias, must not be null
or blanktype
- the targeted typedefaultValue
- the default valuepublic String getChannel()
public void validate()
Copyright © 2018–2020 SmallRye. All rights reserved.