public class DefaultComponentVerifier extends Object implements ComponentVerifier
ComponentVerifier.Result, ComponentVerifier.Scope, ComponentVerifier.VerificationError| Constructor and Description |
|---|
DefaultComponentVerifier(String defaultScheme,
CamelContext camelContext) |
public DefaultComponentVerifier(String defaultScheme, CamelContext camelContext)
public ComponentVerifier.Result verify(ComponentVerifier.Scope scope, Map<String,Object> parameters)
ComponentVerifierThe supported scopes are:
ComponentVerifier.Scope.PARAMETERS: to validate that all the mandatory options are provided and syntactically correct.ComponentVerifier.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 ComponentVerifierscope - the scope of the verificationparameters - the parameters to verify which are interpreted individually by each component verifierprotected ComponentVerifier.Result verifyConnectivity(Map<String,Object> parameters)
protected ComponentVerifier.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 CamelContext getCamelContext()
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