Skip to content

Commit

Permalink
CAMEL-17881: Regen
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Jan 1, 2025
1 parent 3534635 commit 780b513
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
"receiveBufferSize": { "index": 28, "kind": "property", "displayName": "Receive Buffer Size", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "8192", "configurationClass": "org.apache.camel.component.mllp.MllpConfiguration", "configurationField": "configuration", "description": "Sets the SO_RCVBUF option to the specified value (in bytes)" },
"receiveTimeout": { "index": 29, "kind": "property", "displayName": "Receive Timeout", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 15000, "configurationClass": "org.apache.camel.component.mllp.MllpConfiguration", "configurationField": "configuration", "description": "The SO_TIMEOUT value (in milliseconds) used when waiting for the start of an MLLP frame" },
"sendBufferSize": { "index": 30, "kind": "property", "displayName": "Send Buffer Size", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "8192", "configurationClass": "org.apache.camel.component.mllp.MllpConfiguration", "configurationField": "configuration", "description": "Sets the SO_SNDBUF option to the specified value (in bytes)" },
"idleTimeout": { "index": 31, "kind": "property", "displayName": "Idle Timeout", "group": "tcp", "label": "advanced,tcp", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.mllp.MllpConfiguration", "configurationField": "configuration", "description": "The approximate idle time allowed before the Client TCP Connection will be reset. A null value or a value less than or equal to zero will disable the idle timeout." }
"sslContextParameters": { "index": 31, "kind": "property", "displayName": "Ssl Context Parameters", "group": "security", "label": "security", "required": false, "type": "object", "javaType": "org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.mllp.MllpConfiguration", "configurationField": "configuration", "description": "Sets the SSLContextParameters for securing TCP connections. If set, the MLLP component will use SSL\/TLS for securing both producer and consumer TCP connections. This allows the configuration of trust stores, key stores, protocols, and other SSL\/TLS settings. If not set, the MLLP component will use plain TCP communication." },
"useGlobalSslContextParameters": { "index": 32, "kind": "property", "displayName": "Use Global Ssl Context Parameters", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Enable usage of global SSL context parameters." },
"idleTimeout": { "index": 33, "kind": "property", "displayName": "Idle Timeout", "group": "tcp", "label": "advanced,tcp", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.mllp.MllpConfiguration", "configurationField": "configuration", "description": "The approximate idle time allowed before the Client TCP Connection will be reset. A null value or a value less than or equal to zero will disable the idle timeout." }
},
"headers": {
"CamelMllpLocalAddress": { "index": 0, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The local TCP Address of the Socket", "constantName": "org.apache.camel.component.mllp.MllpConstants#MLLP_LOCAL_ADDRESS" },
Expand Down Expand Up @@ -107,6 +109,7 @@
"receiveBufferSize": { "index": 26, "kind": "parameter", "displayName": "Receive Buffer Size", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "8192", "configurationClass": "org.apache.camel.component.mllp.MllpConfiguration", "configurationField": "configuration", "description": "Sets the SO_RCVBUF option to the specified value (in bytes)" },
"receiveTimeout": { "index": 27, "kind": "parameter", "displayName": "Receive Timeout", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 15000, "configurationClass": "org.apache.camel.component.mllp.MllpConfiguration", "configurationField": "configuration", "description": "The SO_TIMEOUT value (in milliseconds) used when waiting for the start of an MLLP frame" },
"sendBufferSize": { "index": 28, "kind": "parameter", "displayName": "Send Buffer Size", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "8192", "configurationClass": "org.apache.camel.component.mllp.MllpConfiguration", "configurationField": "configuration", "description": "Sets the SO_SNDBUF option to the specified value (in bytes)" },
"idleTimeout": { "index": 29, "kind": "parameter", "displayName": "Idle Timeout", "group": "tcp", "label": "advanced,tcp", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.mllp.MllpConfiguration", "configurationField": "configuration", "description": "The approximate idle time allowed before the Client TCP Connection will be reset. A null value or a value less than or equal to zero will disable the idle timeout." }
"sslContextParameters": { "index": 29, "kind": "parameter", "displayName": "Ssl Context Parameters", "group": "security", "label": "security", "required": false, "type": "object", "javaType": "org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.mllp.MllpConfiguration", "configurationField": "configuration", "description": "Sets the SSLContextParameters for securing TCP connections. If set, the MLLP component will use SSL\/TLS for securing both producer and consumer TCP connections. This allows the configuration of trust stores, key stores, protocols, and other SSL\/TLS settings. If not set, the MLLP component will use plain TCP communication." },
"idleTimeout": { "index": 30, "kind": "parameter", "displayName": "Idle Timeout", "group": "tcp", "label": "advanced,tcp", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.mllp.MllpConfiguration", "configurationField": "configuration", "description": "The approximate idle time allowed before the Client TCP Connection will be reset. A null value or a value less than or equal to zero will disable the idle timeout." }
}
}
13 changes: 13 additions & 0 deletions components-starter/camel-mllp-starter/src/main/docs/mllp.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,12 @@
"sourceType": "org.apache.camel.component.mllp.springboot.MllpComponentConfiguration",
"defaultValue": 8192
},
{
"name": "camel.component.mllp.ssl-context-parameters",
"type": "org.apache.camel.support.jsse.SSLContextParameters",
"description": "Sets the SSLContextParameters for securing TCP connections. If set, the MLLP component will use SSL\/TLS for securing both producer and consumer TCP connections. This allows the configuration of trust stores, key stores, protocols, and other SSL\/TLS settings. If not set, the MLLP component will use plain TCP communication. The option is a org.apache.camel.support.jsse.SSLContextParameters type.",
"sourceType": "org.apache.camel.component.mllp.springboot.MllpComponentConfiguration"
},
{
"name": "camel.component.mllp.string-payload",
"type": "java.lang.Boolean",
Expand All @@ -238,6 +244,13 @@
"sourceType": "org.apache.camel.component.mllp.springboot.MllpComponentConfiguration",
"defaultValue": true
},
{
"name": "camel.component.mllp.use-global-ssl-context-parameters",
"type": "java.lang.Boolean",
"description": "Enable usage of global SSL context parameters.",
"sourceType": "org.apache.camel.component.mllp.springboot.MllpComponentConfiguration",
"defaultValue": false
},
{
"name": "camel.component.mllp.validate-payload",
"type": "java.lang.Boolean",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.apache.camel.component.mllp.MllpConfiguration;
import org.apache.camel.component.mllp.MllpIdleTimeoutStrategy;
import org.apache.camel.spring.boot.ComponentConfigurationPropertiesCommon;
import org.apache.camel.support.jsse.SSLContextParameters;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
Expand Down Expand Up @@ -211,6 +212,19 @@ public class MllpComponentConfiguration
* Sets the SO_SNDBUF option to the specified value (in bytes)
*/
private Integer sendBufferSize = 8192;
/**
* Sets the SSLContextParameters for securing TCP connections. If set, the
* MLLP component will use SSL/TLS for securing both producer and consumer
* TCP connections. This allows the configuration of trust stores, key
* stores, protocols, and other SSL/TLS settings. If not set, the MLLP
* component will use plain TCP communication. The option is a
* org.apache.camel.support.jsse.SSLContextParameters type.
*/
private SSLContextParameters sslContextParameters;
/**
* Enable usage of global SSL context parameters.
*/
private Boolean useGlobalSslContextParameters = false;
/**
* The approximate idle time allowed before the Client TCP Connection will
* be reset. A null value or a value less than or equal to zero will disable
Expand Down Expand Up @@ -467,6 +481,24 @@ public void setSendBufferSize(Integer sendBufferSize) {
this.sendBufferSize = sendBufferSize;
}

public SSLContextParameters getSslContextParameters() {
return sslContextParameters;
}

public void setSslContextParameters(
SSLContextParameters sslContextParameters) {
this.sslContextParameters = sslContextParameters;
}

public Boolean getUseGlobalSslContextParameters() {
return useGlobalSslContextParameters;
}

public void setUseGlobalSslContextParameters(
Boolean useGlobalSslContextParameters) {
this.useGlobalSslContextParameters = useGlobalSslContextParameters;
}

public Integer getIdleTimeout() {
return idleTimeout;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class MllpComponentConverter implements GenericConverter {
public Set<ConvertiblePair> getConvertibleTypes() {
Set<ConvertiblePair> answer = new LinkedHashSet<>();
answer.add(new ConvertiblePair(String.class, org.apache.camel.component.mllp.MllpConfiguration.class));
answer.add(new ConvertiblePair(String.class, org.apache.camel.support.jsse.SSLContextParameters.class));
return answer;
}

Expand All @@ -57,6 +58,7 @@ public Object convert(
ref = ref.startsWith("#bean:") ? ref.substring(6) : ref.substring(1);
switch (targetType.getName()) {
case "org.apache.camel.component.mllp.MllpConfiguration": return applicationContext.getBean(ref, org.apache.camel.component.mllp.MllpConfiguration.class);
case "org.apache.camel.support.jsse.SSLContextParameters": return applicationContext.getBean(ref, org.apache.camel.support.jsse.SSLContextParameters.class);
}
return null;
}
Expand Down

0 comments on commit 780b513

Please sign in to comment.