Package org.graylog2.plugin.lookup
Interface LookupDataAdapterConfiguration
- All Known Implementing Classes:
AbuseChRansomAdapter.Config
,CSVFileDataAdapter.Config
,DnsLookupDataAdapter.Config
,DSVHTTPDataAdapter.Config
,FallbackAdapterConfig
,HTTPJSONPathDataAdapter.Config
,MaxmindDataAdapter.Config
,OTXDataAdapter.Config
,SpamhausEDROPDataAdapter.Config
,TorExitNodeDataAdapter.Config
,WhoisDataAdapter.Config
public interface LookupDataAdapterConfiguration
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
type()
validate()
Override this method to check for logical errors in the configuration, such as missing files, or invalid combinations of options.validate
(LookupDataAdapterValidationContext validationContext) Same asvalidate()
but providing access to additional services via the given context object.
-
Field Details
-
TYPE_FIELD
- See Also:
-
-
Method Details
-
type
String type() -
validate
Override this method to check for logical errors in the configuration, such as missing files, or invalid combinations of options. Prefer validation annotations for simple per-property validations rules, such as min/max values, non-empty strings etc.
By default the configuration has no extra validation errors (i.e. the result of this method is
Optional.empty()
.Returning failing validations here does not prevent saving the configuration!
If your validation needs access to additional services, override
validate(LookupDataAdapterValidationContext)
instead.- Returns:
- optionally map of property name to error messages
-
validate
default Optional<com.google.common.collect.Multimap<String,String>> validate(LookupDataAdapterValidationContext validationContext) Same asvalidate()
but providing access to additional services via the given context object.If you override this message, don't also override
validate()
as the calling code is not expected to call both methods. -
isCloudCompatible
default boolean isCloudCompatible()
-