Interface ComponentVerifierExtension
-
- All Superinterfaces:
ComponentExtension
public interface ComponentVerifierExtension extends ComponentExtension
Defines the interface used for validating component/endpoint parameters. The central method of this interface isverify(ComponentVerifierExtension.Scope, Map)
which takes a scope and a set of parameters which should be verified. The return value is aComponentVerifierExtension.Result
of the verification
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ComponentVerifierExtension.Result
The result of a verificationstatic class
ComponentVerifierExtension.Scope
The scope defines how the parameters should be verified.static interface
ComponentVerifierExtension.VerificationError
This interface represents a detailed error in case when the verification fails.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ComponentVerifierExtension.Result
verify(ComponentVerifierExtension.Scope scope, Map<String,Object> parameters)
Verify the given parameters against a provided scope.-
Methods inherited from interface org.apache.camel.component.extension.ComponentExtension
unwrap
-
-
-
-
Method Detail
-
verify
ComponentVerifierExtension.Result verify(ComponentVerifierExtension.Scope scope, Map<String,Object> parameters)
Verify the given parameters against a provided scope.The 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.
- Parameters:
scope
- the scope of the verificationparameters
- the parameters to verify which are interpreted individually by each component verifier- Returns:
- the verification result
-
-