Skip to content

Commit

Permalink
camel-netty-http: Fix catalog to include proxy as protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Sep 25, 2024
1 parent a151d0d commit 9d88f5e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"CamelNettyRequestTimeout": { "index": 22, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The read timeout.", "constantName": "org.apache.camel.component.netty.NettyConstants#NETTY_REQUEST_TIMEOUT" }
},
"properties": {
"protocol": { "index": 0, "kind": "path", "displayName": "Protocol", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "http", "https" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.http.NettyHttpConfiguration", "configurationField": "configuration", "description": "The protocol to use which is either http, https or proxy - a consumer only option." },
"protocol": { "index": 0, "kind": "path", "displayName": "Protocol", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "http", "https", "proxy" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.http.NettyHttpConfiguration", "configurationField": "configuration", "description": "The protocol to use which is either http, https or proxy (consumer only)." },
"host": { "index": 1, "kind": "path", "displayName": "Host", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.http.NettyHttpConfiguration", "configurationField": "configuration", "description": "The local hostname such as localhost, or 0.0.0.0 when being a consumer. The remote HTTP server hostname when using producer." },
"port": { "index": 2, "kind": "path", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.http.NettyHttpConfiguration", "configurationField": "configuration", "description": "The host port number" },
"path": { "index": 3, "kind": "path", "displayName": "Path", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.http.NettyHttpConfiguration", "configurationField": "configuration", "description": "Resource path" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"CamelNettyRequestTimeout": { "index": 22, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The read timeout.", "constantName": "org.apache.camel.component.netty.NettyConstants#NETTY_REQUEST_TIMEOUT" }
},
"properties": {
"protocol": { "index": 0, "kind": "path", "displayName": "Protocol", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "http", "https" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.http.NettyHttpConfiguration", "configurationField": "configuration", "description": "The protocol to use which is either http, https or proxy - a consumer only option." },
"protocol": { "index": 0, "kind": "path", "displayName": "Protocol", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "http", "https", "proxy" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.http.NettyHttpConfiguration", "configurationField": "configuration", "description": "The protocol to use which is either http, https or proxy (consumer only)." },
"host": { "index": 1, "kind": "path", "displayName": "Host", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.http.NettyHttpConfiguration", "configurationField": "configuration", "description": "The local hostname such as localhost, or 0.0.0.0 when being a consumer. The remote HTTP server hostname when using producer." },
"port": { "index": 2, "kind": "path", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.http.NettyHttpConfiguration", "configurationField": "configuration", "description": "The host port number" },
"path": { "index": 3, "kind": "path", "displayName": "Path", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.http.NettyHttpConfiguration", "configurationField": "configuration", "description": "Resource path" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
@Configurer
public class NettyHttpConfiguration extends NettyConfiguration {

@UriPath(enums = "http,https")
@UriPath(enums = "http,https,proxy")
@Metadata(required = true)
private String protocol;
@UriPath
Expand Down Expand Up @@ -109,7 +109,7 @@ public String getProtocol() {
}

/**
* The protocol to use which is either http, https or proxy - a consumer only option.
* The protocol to use which is either http, https or proxy (consumer only).
*/
@Override
public void setProtocol(String protocol) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10619,9 +10619,8 @@ public static NettyEndpointBuilderFactory.NettyEndpointBuilder netty(String comp
* Syntax: <code>netty-http:protocol://host:port/path</code>
*
* Path parameter: protocol (required)
* The protocol to use which is either http, https or proxy - a consumer
* only option.
* There are 2 enums and the value can be one of: http, https
* The protocol to use which is either http, https or proxy (consumer only).
* There are 3 enums and the value can be one of: http, https, proxy
*
* Path parameter: host (required)
* The local hostname such as localhost, or 0.0.0.0 when being a consumer.
Expand Down Expand Up @@ -10650,9 +10649,8 @@ public static NettyHttpEndpointBuilderFactory.NettyHttpEndpointBuilder nettyHttp
* Syntax: <code>netty-http:protocol://host:port/path</code>
*
* Path parameter: protocol (required)
* The protocol to use which is either http, https or proxy - a consumer
* only option.
* There are 2 enums and the value can be one of: http, https
* The protocol to use which is either http, https or proxy (consumer only).
* There are 3 enums and the value can be one of: http, https, proxy
*
* Path parameter: host (required)
* The local hostname such as localhost, or 0.0.0.0 when being a consumer.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5231,9 +5231,9 @@ default NettyHttpHeaderNameBuilder nettyHttp() {
* Syntax: <code>netty-http:protocol://host:port/path</code>
*
* Path parameter: protocol (required)
* The protocol to use which is either http, https or proxy - a consumer
* only option.
* There are 2 enums and the value can be one of: http, https
* The protocol to use which is either http, https or proxy (consumer
* only).
* There are 3 enums and the value can be one of: http, https, proxy
*
* Path parameter: host (required)
* The local hostname such as localhost, or 0.0.0.0 when being a
Expand Down Expand Up @@ -5262,9 +5262,9 @@ default NettyHttpEndpointBuilder nettyHttp(String path) {
* Syntax: <code>netty-http:protocol://host:port/path</code>
*
* Path parameter: protocol (required)
* The protocol to use which is either http, https or proxy - a consumer
* only option.
* There are 2 enums and the value can be one of: http, https
* The protocol to use which is either http, https or proxy (consumer
* only).
* There are 3 enums and the value can be one of: http, https, proxy
*
* Path parameter: host (required)
* The local hostname such as localhost, or 0.0.0.0 when being a
Expand Down

0 comments on commit 9d88f5e

Please sign in to comment.