From 6c532942ba16afe42430cc4c7305be697eddd6a9 Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Mon, 12 Oct 2026 02:39:01 +0000 Subject: [PATCH] Add component definition: dns --- component.json | 221 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 221 insertions(+) create mode 100644 component.json diff --git a/component.json b/component.json new file mode 100644 index 0000000..9e12e21 --- /dev/null +++ b/component.json @@ -0,0 +1,221 @@ +{ + "component": { + "kind": "component", + "name": "dns", + "title": "DNS", + "description": "Perform DNS queries using DNSJava.", + "deprecated": false, + "firstVersion": "1.1.0", + "label": "networking", + "javaType": "org.apache.camel.component.dns.DnsComponent", + "supportLevel": "Preview", + "metadata": { + "quarkusVersion": "3.36.0", + "camelArtifact": "org.apache.camel:camel-dns", + "camelVersion": "4.20.0" + }, + "groupId": "org.apache.camel.quarkus", + "artifactId": "camel-quarkus-dns", + "version": "4.20.0 (CEQ 3.36.0)", + "scheme": "dns", + "extendsScheme": "", + "syntax": "dns:dnsType", + "async": false, + "api": false, + "consumerOnly": false, + "producerOnly": true, + "lenientProperties": false, + "browsable": false, + "remote": true + }, + "componentProperties": { + "lazyStartProducer": { + "index": 0, + "kind": "property", + "displayName": "Lazy Start Producer", + "group": "producer", + "label": "producer", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": false, + "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing." + }, + "autowiredEnabled": { + "index": 1, + "kind": "property", + "displayName": "Autowired Enabled", + "group": "advanced", + "label": "advanced", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": true, + "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc." + } + }, + "headers": { + "dns.class": { + "index": 0, + "kind": "header", + "displayName": "", + "group": "lookup dig", + "label": "lookup dig", + "required": false, + "javaType": "String", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The DNS class of the lookup. Should match the values of org.xbill.dns.DClass. Optional.", + "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_CLASS" + }, + "dns.name": { + "index": 1, + "kind": "header", + "displayName": "", + "group": "lookup", + "label": "lookup", + "required": true, + "javaType": "String", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The name to lookup", + "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_NAME" + }, + "dns.domain": { + "index": 2, + "kind": "header", + "displayName": "", + "group": "ip", + "label": "ip", + "required": true, + "javaType": "String", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The domain name.", + "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_DOMAIN" + }, + "dns.server": { + "index": 3, + "kind": "header", + "displayName": "", + "group": "dig", + "label": "dig", + "required": false, + "javaType": "String", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The server in particular for the query. If none is given, the default one specified by the OS will be used. Optional.", + "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_SERVER" + }, + "dns.type": { + "index": 4, + "kind": "header", + "displayName": "", + "group": "lookup dig", + "label": "lookup dig", + "required": false, + "javaType": "String", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The type of the lookup. Should match the values of org.xbill.dns.Type. Optional.", + "constantName": "org.apache.camel.component.dns.DnsConstants#DNS_TYPE" + }, + "term": { + "index": 5, + "kind": "header", + "displayName": "", + "group": "wikipedia", + "label": "wikipedia", + "required": true, + "javaType": "", + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The term", + "constantName": "org.apache.camel.component.dns.DnsConstants#TERM" + } + }, + "properties": { + "dnsType": { + "index": 0, + "kind": "path", + "displayName": "Dns Type", + "group": "producer", + "label": "", + "required": true, + "type": "enum", + "javaType": "org.apache.camel.component.dns.DnsType", + "enum": [ + "dig", + "ip", + "lookup", + "wikipedia" + ], + "deprecated": false, + "deprecationNote": "", + "autowired": false, + "secret": false, + "description": "The type of the lookup." + }, + "lazyStartProducer": { + "index": 1, + "kind": "parameter", + "displayName": "Lazy Start Producer", + "group": "producer (advanced)", + "label": "producer,advanced", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": false, + "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing." + } + }, + "propertiesSchema": { + "properties": { + "dnsType": { + "title": "Dns Type", + "description": "The type of the lookup.", + "type": "string", + "enum": [ + "dig", + "ip", + "lookup", + "wikipedia" + ], + "$comment": "group:producer" + }, + "lazyStartProducer": { + "title": "Lazy Start Producer", + "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing.", + "type": "boolean", + "$comment": "group:producer (advanced)", + "default": false + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "dnsType" + ] + } +} \ No newline at end of file