Class QuarkusHttpConnectorCommonConfiguration
java.lang.Object
io.quarkus.reactivemessaging.http.runtime.QuarkusHttpConnectorCommonConfiguration
- Direct Known Subclasses:
QuarkusHttpConnectorIncomingConfiguration,QuarkusHttpConnectorOutgoingConfiguration
Extracts the common configuration for the
quarkus-http connector.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQuarkusHttpConnectorCommonConfiguration(org.eclipse.microprofile.config.Config config) Creates a new QuarkusHttpConnectorCommonConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.microprofile.config.Configconfig()protected <T> Optional<T> getFromAlias(String alias, Class<T> type) Retrieves the value stored for the given alias.protected <T> TgetFromAliasWithDefaultValue(String alias, Class<T> type, T defaultValue) Retrieves the value stored for the given alias.Gets the method value from the configuration.voidvalidate()
-
Field Details
-
config
protected final org.eclipse.microprofile.config.Config config
-
-
Constructor Details
-
QuarkusHttpConnectorCommonConfiguration
public QuarkusHttpConnectorCommonConfiguration(org.eclipse.microprofile.config.Config config) Creates a new QuarkusHttpConnectorCommonConfiguration.
-
-
Method Details
-
config
public org.eclipse.microprofile.config.Config config()- Returns:
- the connector configuration
-
getFromAlias
Retrieves the value stored for the given alias.- Type Parameters:
T- the targeted type- Parameters:
alias- the attribute alias, must not benullor blanktype- the targeted type- Returns:
- the configuration value for the given alias, empty if not set
-
getFromAliasWithDefaultValue
Retrieves the value stored for the given alias. Returns the default value if not present.- Type Parameters:
T- the targeted type- Parameters:
alias- the attribute alias, must not benullor blanktype- the targeted typedefaultValue- the default value- Returns:
- the configuration value for the given alias, empty if not set
-
getChannel
- Returns:
- the channel name
-
getMethod
Gets the method value from the configuration. Attribute Name: method Description: The HTTP method (either `POST` or `PUT`) Default Value: POST- Returns:
- the method
-
validate
public void validate()
-