public class DefaultComponentVerifierExtension extends Object implements ComponentVerifierExtension, ComponentVerifier, CamelContextAware, ComponentAware
ComponentVerifierExtension.Result, ComponentVerifierExtension.Scope, ComponentVerifierExtension.VerificationError| Modifier | Constructor and Description |
|---|---|
protected |
DefaultComponentVerifierExtension(String defaultScheme) |
protected |
DefaultComponentVerifierExtension(String defaultScheme,
CamelContext camelContext) |
protected |
DefaultComponentVerifierExtension(String defaultScheme,
CamelContext camelContext,
Component component) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitunwrapgetComponentprotected DefaultComponentVerifierExtension(String defaultScheme)
protected DefaultComponentVerifierExtension(String defaultScheme, CamelContext camelContext)
protected DefaultComponentVerifierExtension(String defaultScheme, CamelContext camelContext, Component component)
public void setCamelContext(CamelContext camelContext)
CamelContextAwareCamelContextsetCamelContext in interface CamelContextAwarecamelContext - the Camel contextpublic CamelContext getCamelContext()
CamelContextAwareCamelContextgetCamelContext in interface CamelContextAwarepublic Component getComponent()
ComponentAwareComponentgetComponent in interface ComponentAwarepublic void setComponent(Component component)
ComponentAwareComponentsetComponent in interface ComponentAwarecomponent - the componentpublic ComponentVerifierExtension.Result verify(ComponentVerifierExtension.Scope scope, Map<String,Object> parameters)
ComponentVerifierExtensionThe supported scopes are:
ComponentVerifierExtension.Scope.PARAMETERS: to validate that all the mandatory options are provided and syntactically correct.ComponentVerifierExtension.Scope.CONNECTIVITY: to validate that the given options (i.e. credentials, addresses) are correct. Verifying with this
scope typically implies reaching out to the backend via some sort of network connection.verify in interface ComponentVerifierExtensionscope - the scope of the verificationparameters - the parameters to verify which are interpreted individually by each component verifierprotected ComponentVerifierExtension.Result verifyConnectivity(Map<String,Object> parameters)
protected ComponentVerifierExtension.Result verifyParameters(Map<String,Object> parameters)
protected void verifyParametersAgainstCatalog(ResultBuilder builder, Map<String,Object> parameters)
protected void verifyParametersAgainstCatalog(ResultBuilder builder, Map<String,Object> parameters, CatalogVerifierCustomizer customizer)
protected <T> T setProperties(T instance, Map<String,Object> properties) throws Exception
Exceptionprotected <T> T setProperties(T instance, String prefix, Map<String,Object> properties) throws Exception
Exceptionprotected <T> Optional<T> getOption(Map<String,Object> parameters, String key, Class<T> type)
protected <T> T getOption(Map<String,Object> parameters, String key, Class<T> type, Supplier<T> defaultSupplier)
protected <T> T getMandatoryOption(Map<String,Object> parameters, String key, Class<T> type) throws NoSuchOptionException
NoSuchOptionExceptionApache Camel