diff --git a/camel-core/src/main/java/org/apache/camel/component/direct/springboot/DirectComponentConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/direct/springboot/DirectComponentConfiguration.java index 848e762096f2c..ec80b4917c63a 100644 --- a/camel-core/src/main/java/org/apache/camel/component/direct/springboot/DirectComponentConfiguration.java +++ b/camel-core/src/main/java/org/apache/camel/component/direct/springboot/DirectComponentConfiguration.java @@ -32,17 +32,17 @@ public class DirectComponentConfiguration { * then we can tell the producer to block and wait for the consumer to * become active. */ - private boolean block; + private Boolean block = false; /** * The timeout value to use if block is enabled. */ - private long timeout; + private long timeout = 30000; - public boolean isBlock() { + public Boolean getBlock() { return block; } - public void setBlock(boolean block) { + public void setBlock(Boolean block) { this.block = block; } diff --git a/camel-core/src/main/java/org/apache/camel/component/directvm/springboot/DirectVmComponentConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/directvm/springboot/DirectVmComponentConfiguration.java index b336e8a51f4fb..fb294021a0b59 100644 --- a/camel-core/src/main/java/org/apache/camel/component/directvm/springboot/DirectVmComponentConfiguration.java +++ b/camel-core/src/main/java/org/apache/camel/component/directvm/springboot/DirectVmComponentConfiguration.java @@ -33,11 +33,11 @@ public class DirectVmComponentConfiguration { * then we can tell the producer to block and wait for the consumer to * become active. */ - private boolean block; + private Boolean block = false; /** * The timeout value to use if block is enabled. */ - private long timeout; + private long timeout = 30000; /** * Sets a HeaderFilterStrategy that will only be applied on producer * endpoints (on both directions: request and response). Default value: @@ -48,13 +48,13 @@ public class DirectVmComponentConfiguration { * Whether to propagate or not properties from the producer side to the * consumer side and viceversa. Default value: true. */ - private boolean propagateProperties; + private Boolean propagateProperties = true; - public boolean isBlock() { + public Boolean getBlock() { return block; } - public void setBlock(boolean block) { + public void setBlock(Boolean block) { this.block = block; } @@ -75,11 +75,11 @@ public void setHeaderFilterStrategy( this.headerFilterStrategy = headerFilterStrategy; } - public boolean isPropagateProperties() { + public Boolean getPropagateProperties() { return propagateProperties; } - public void setPropagateProperties(boolean propagateProperties) { + public void setPropagateProperties(Boolean propagateProperties) { this.propagateProperties = propagateProperties; } } \ No newline at end of file diff --git a/camel-core/src/main/java/org/apache/camel/component/properties/springboot/PropertiesComponentConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/properties/springboot/PropertiesComponentConfiguration.java index 2d311112aafca..ea98144cc62bf 100644 --- a/camel-core/src/main/java/org/apache/camel/component/properties/springboot/PropertiesComponentConfiguration.java +++ b/camel-core/src/main/java/org/apache/camel/component/properties/springboot/PropertiesComponentConfiguration.java @@ -60,7 +60,7 @@ public class PropertiesComponentConfiguration { /** * Whether or not to cache loaded properties. The default value is true. */ - private boolean cache; + private Boolean cache = false; /** * Optional prefix prepended to property names before resolution. */ @@ -74,12 +74,12 @@ public class PropertiesComponentConfiguration { * propertyPrefix and propertySuffix before falling back the plain property * name specified. If false only the augmented property name is searched. */ - private boolean fallbackToUnaugmentedProperty; + private Boolean fallbackToUnaugmentedProperty = false; /** * Whether to silently ignore if a location cannot be located such as a * properties file not found. */ - private boolean ignoreMissingLocation; + private Boolean ignoreMissingLocation = false; /** * Sets the value of the prefix token used to identify properties to * replace. Setting a value of null restores the default token (link link @@ -147,11 +147,11 @@ public void setPropertiesParser(PropertiesParser propertiesParser) { this.propertiesParser = propertiesParser; } - public boolean isCache() { + public Boolean getCache() { return cache; } - public void setCache(boolean cache) { + public void setCache(Boolean cache) { this.cache = cache; } @@ -171,20 +171,20 @@ public void setPropertySuffix(String propertySuffix) { this.propertySuffix = propertySuffix; } - public boolean isFallbackToUnaugmentedProperty() { + public Boolean getFallbackToUnaugmentedProperty() { return fallbackToUnaugmentedProperty; } public void setFallbackToUnaugmentedProperty( - boolean fallbackToUnaugmentedProperty) { + Boolean fallbackToUnaugmentedProperty) { this.fallbackToUnaugmentedProperty = fallbackToUnaugmentedProperty; } - public boolean isIgnoreMissingLocation() { + public Boolean getIgnoreMissingLocation() { return ignoreMissingLocation; } - public void setIgnoreMissingLocation(boolean ignoreMissingLocation) { + public void setIgnoreMissingLocation(Boolean ignoreMissingLocation) { this.ignoreMissingLocation = ignoreMissingLocation; } diff --git a/camel-core/src/main/java/org/apache/camel/component/xslt/springboot/XsltComponentConfiguration.java b/camel-core/src/main/java/org/apache/camel/component/xslt/springboot/XsltComponentConfiguration.java index b4f3be8391b26..75ccfc42b4436 100644 --- a/camel-core/src/main/java/org/apache/camel/component/xslt/springboot/XsltComponentConfiguration.java +++ b/camel-core/src/main/java/org/apache/camel/component/xslt/springboot/XsltComponentConfiguration.java @@ -54,13 +54,13 @@ public class XsltComponentConfiguration { * forced to reload at runtime via JMX using the clearCachedStylesheet * operation. */ - private boolean contentCache; + private Boolean contentCache = true; /** * Whether to use Saxon as the transformerFactoryClass. If enabled then the * class net.sf.saxon.TransformerFactoryImpl. You would need to add Saxon to * the classpath. */ - private boolean saxon; + private Boolean saxon = false; public XmlConverter getXmlConverter() { return xmlConverter; @@ -86,19 +86,19 @@ public void setUriResolver(URIResolver uriResolver) { this.uriResolver = uriResolver; } - public boolean isContentCache() { + public Boolean getContentCache() { return contentCache; } - public void setContentCache(boolean contentCache) { + public void setContentCache(Boolean contentCache) { this.contentCache = contentCache; } - public boolean isSaxon() { + public Boolean getSaxon() { return saxon; } - public void setSaxon(boolean saxon) { + public void setSaxon(Boolean saxon) { this.saxon = saxon; } } \ No newline at end of file diff --git a/camel-core/src/main/java/org/apache/camel/impl/springboot/ZipDataFormatConfiguration.java b/camel-core/src/main/java/org/apache/camel/impl/springboot/ZipDataFormatConfiguration.java index d6bd3be8fd2f0..5601c25634802 100644 --- a/camel-core/src/main/java/org/apache/camel/impl/springboot/ZipDataFormatConfiguration.java +++ b/camel-core/src/main/java/org/apache/camel/impl/springboot/ZipDataFormatConfiguration.java @@ -30,7 +30,7 @@ public class ZipDataFormatConfiguration { * To specify a specific compression between 0-9. -1 is default compression * 0 is no compression and 9 is best compression. */ - private Integer compressionLevel; + private Integer compressionLevel = -1; public Integer getCompressionLevel() { return compressionLevel; diff --git a/components/camel-ahc-ws/src/main/java/org/apache/camel/component/ahc/ws/springboot/WsComponentConfiguration.java b/components/camel-ahc-ws/src/main/java/org/apache/camel/component/ahc/ws/springboot/WsComponentConfiguration.java index 617585eab82b1..b71a59c5e488f 100644 --- a/components/camel-ahc-ws/src/main/java/org/apache/camel/component/ahc/ws/springboot/WsComponentConfiguration.java +++ b/components/camel-ahc-ws/src/main/java/org/apache/camel/component/ahc/ws/springboot/WsComponentConfiguration.java @@ -59,7 +59,7 @@ public class WsComponentConfiguration { * the incoming data from the request to Java and that can be a potential * security risk. */ - private boolean allowJavaSerializedObject; + private Boolean allowJavaSerializedObject = false; /** * To use a custom HeaderFilterStrategy to filter header to and from Camel * message. @@ -99,11 +99,11 @@ public void setSslContextParameters( this.sslContextParameters = sslContextParameters; } - public boolean isAllowJavaSerializedObject() { + public Boolean getAllowJavaSerializedObject() { return allowJavaSerializedObject; } - public void setAllowJavaSerializedObject(boolean allowJavaSerializedObject) { + public void setAllowJavaSerializedObject(Boolean allowJavaSerializedObject) { this.allowJavaSerializedObject = allowJavaSerializedObject; } diff --git a/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/springboot/AhcComponentConfiguration.java b/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/springboot/AhcComponentConfiguration.java index 001ede5922812..d3eb0845e44ca 100644 --- a/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/springboot/AhcComponentConfiguration.java +++ b/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/springboot/AhcComponentConfiguration.java @@ -59,7 +59,7 @@ public class AhcComponentConfiguration { * the incoming data from the request to Java and that can be a potential * security risk. */ - private boolean allowJavaSerializedObject; + private Boolean allowJavaSerializedObject = false; /** * To use a custom HeaderFilterStrategy to filter header to and from Camel * message. @@ -99,11 +99,11 @@ public void setSslContextParameters( this.sslContextParameters = sslContextParameters; } - public boolean isAllowJavaSerializedObject() { + public Boolean getAllowJavaSerializedObject() { return allowJavaSerializedObject; } - public void setAllowJavaSerializedObject(boolean allowJavaSerializedObject) { + public void setAllowJavaSerializedObject(Boolean allowJavaSerializedObject) { this.allowJavaSerializedObject = allowJavaSerializedObject; } diff --git a/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/springboot/AMQPComponentConfiguration.java b/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/springboot/AMQPComponentConfiguration.java index edabd69b0c83d..c1997e2c95a18 100644 --- a/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/springboot/AMQPComponentConfiguration.java +++ b/components/camel-amqp/src/main/java/org/apache/camel/component/amqp/springboot/AMQPComponentConfiguration.java @@ -57,7 +57,7 @@ public class AMQPComponentConfiguration { * queue on the JMS broker. To avoid this its recommended to enable this * option. */ - private boolean acceptMessagesWhileStopping; + private Boolean acceptMessagesWhileStopping = false; /** * Whether the DefaultMessageListenerContainer used in the reply managers * for request-reply messaging allow the @@ -67,7 +67,7 @@ public class AMQPComponentConfiguration { * ability is enabled by default in the regular JMS consumers but to enable * for reply managers you must enable this flag. */ - private boolean allowReplyManagerQuickStop; + private Boolean allowReplyManagerQuickStop = false; /** * The JMS acknowledgement mode defined as an Integer. Allows you to set * vendor-specific extensions to the acknowledgment mode. For the regular @@ -80,7 +80,7 @@ public class AMQPComponentConfiguration { * but sometimes can catch early any issues with the underlying JMS provider * and the use of JMS properties */ - private boolean eagerLoadingOfProperties; + private Boolean eagerLoadingOfProperties = false; /** * The JMS acknowledgement name which is one of: SESSION_TRANSACTED * CLIENT_ACKNOWLEDGE AUTO_ACKNOWLEDGE DUPS_OK_ACKNOWLEDGE @@ -89,7 +89,7 @@ public class AMQPComponentConfiguration { /** * Specifies whether the consumer container should auto-startup. */ - private boolean autoStartup; + private Boolean autoStartup = false; /** * Sets the cache level by ID for the underlying JMS resources. See * cacheLevelName option for more details. @@ -141,7 +141,7 @@ public class AMQPComponentConfiguration { /** * Specifies whether persistent delivery is used by default. */ - private boolean deliveryPersistent; + private Boolean deliveryPersistent = false; /** * Specifies the delivery mode to be used. Possible values are Possibles * values are those defined by javax.jms.DeliveryMode. NON_PERSISTENT = 1 @@ -177,7 +177,7 @@ public class AMQPComponentConfiguration { * Allows to control whether stacktraces should be logged or not by the * default errorHandler. */ - private boolean errorHandlerLogStackTrace; + private Boolean errorHandlerLogStackTrace = false; /** * Set if the deliveryMode priority or timeToLive qualities of service * should be used when sending messages. This option is based on Spring's @@ -186,12 +186,12 @@ public class AMQPComponentConfiguration { * option which operates at message granularity reading QoS properties * exclusively from the Camel In message headers. */ - private boolean explicitQosEnabled; + private Boolean explicitQosEnabled = false; /** * Specifies whether the listener session should be exposed when consuming * messages. */ - private boolean exposeListenerSession; + private Boolean exposeListenerSession = false; /** * Specifies the limit for idle executions of a receive task not having * received any message within its execution. If this limit is reached the @@ -243,16 +243,16 @@ public class AMQPComponentConfiguration { * suited payload type such as javax.jms.TextMessage to a String etc. See * section about how mapping works below for more details. */ - private boolean mapJmsMessage; + private Boolean mapJmsMessage = false; /** * When sending specifies whether message IDs should be added. */ - private boolean messageIdEnabled; + private Boolean messageIdEnabled = false; /** * Specifies whether timestamps should be enabled by default on sending * messages. */ - private boolean messageTimestampEnabled; + private Boolean messageTimestampEnabled = false; /** * If true Camel will always make a JMS message copy of the message when it * is passed to the producer for sending. Copying the message is needed in @@ -260,12 +260,12 @@ public class AMQPComponentConfiguration { * (incidentally Camel will set the alwaysCopyMessage option to true if a * replyToDestinationSelectorName is set) */ - private boolean alwaysCopyMessage; + private Boolean alwaysCopyMessage = false; /** * Specifies whether JMSMessageID should always be used as JMSCorrelationID * for InOut messages. */ - private boolean useMessageIDAsCorrelationID; + private Boolean useMessageIDAsCorrelationID = false; /** * Values greater than 1 specify the message priority when sending (where 0 * is the lowest priority and 9 is the highest). The explicitQosEnabled @@ -276,7 +276,7 @@ public class AMQPComponentConfiguration { * Specifies whether to inhibit the delivery of messages published by its * own connection. */ - private boolean pubSubNoLocal; + private Boolean pubSubNoLocal = false; /** * The timeout for receiving messages (in milliseconds). */ @@ -292,7 +292,7 @@ public class AMQPComponentConfiguration { * and a clientId. */ @Deprecated - private boolean subscriptionDurable; + private Boolean subscriptionDurable = false; /** * Allows you to specify a custom task executor for consuming messages. */ @@ -305,12 +305,12 @@ public class AMQPComponentConfiguration { /** * Specifies whether to use transacted mode */ - private boolean transacted; + private Boolean transacted = false; /** * If true Camel will create a JmsTransactionManager if there is no * transactionManager injected when option transacted=true. */ - private boolean lazyCreateTransactionManager; + private Boolean lazyCreateTransactionManager = false; /** * The Spring transaction manager to use. */ @@ -331,7 +331,7 @@ public class AMQPComponentConfiguration { * exception on startup. This ensures that Camel is not started with failed * connections. The JMS producers is tested as well. */ - private boolean testConnectionOnStartup; + private Boolean testConnectionOnStartup = false; /** * Whether to startup the JmsConsumer message listener asynchronously when * starting a route. For example if a JmsConsumer cannot get a connection to @@ -344,19 +344,19 @@ public class AMQPComponentConfiguration { * will not be able to receive messages; You can then restart the route to * retry. */ - private boolean asyncStartListener; + private Boolean asyncStartListener = false; /** * Whether to stop the JmsConsumer message listener asynchronously when * stopping a route. */ - private boolean asyncStopListener; + private Boolean asyncStopListener = false; /** * When using mapJmsMessage=false Camel will create a new JMS message to * send to a new JMS destination if you touch the headers (get or set) * during the route. Set this option to true to force Camel to send the * original JMS message that was received. */ - private boolean forceSendOriginalMessage; + private Boolean forceSendOriginalMessage = false; /** * The timeout for waiting for a reply when using the InOut Exchange Pattern * (in milliseconds). The default is 20 seconds. You can include the header @@ -382,7 +382,7 @@ public class AMQPComponentConfiguration { * enable this option on both the producer and consumer side so Camel knows * the payloads is an Exchange and not a regular payload. */ - private boolean transferExchange; + private Boolean transferExchange = false; /** * If enabled and you are using Request Reply messaging (InOut) and an * Exchange failed on the consumer side then the caused Exception will be @@ -395,7 +395,7 @@ public class AMQPComponentConfiguration { * wrapped in an outer exception such as * org.apache.camel.RuntimeCamelException when returned to the producer. */ - private boolean transferException; + private Boolean transferException = false; /** * If enabled and you are using Request Reply messaging (InOut) and an * Exchange failed with a SOAP fault (not exception) on the consumer side @@ -406,7 +406,7 @@ public class AMQPComponentConfiguration { * You may want to enable this when using Camel components that support * faults such as SOAP based such as cxf or spring-ws. */ - private boolean transferFault; + private Boolean transferFault = false; /** * Allows you to use your own implementation of the * org.springframework.jms.core.JmsOperations interface. Camel uses @@ -443,7 +443,7 @@ public class AMQPComponentConfiguration { * explicitQosEnabled option by contrast will only use options set on the * endpoint and not values from the message header. */ - private boolean preserveMessageQos; + private Boolean preserveMessageQos = false; /** * Whether the JmsConsumer processes the Exchange asynchronously. If enabled * then the JmsConsumer may pickup the next message from the JMS queue while @@ -455,26 +455,26 @@ public class AMQPComponentConfiguration { * asyncConsumer=true does not run asynchronously as transaction must be * executed synchronously (Camel 3.0 may support async transactions). */ - private boolean asyncConsumer; + private Boolean asyncConsumer = false; /** * Whether to allow sending messages with no body. If this option is false * and the message body is null then an JMSException is thrown. */ - private boolean allowNullBody; + private Boolean allowNullBody = false; /** * Only applicable when sending to JMS destination using InOnly (eg fire and * forget). Enabling this option will enrich the Camel Exchange with the * actual JMSMessageID that was used by the JMS client when the message was * sent to the JMS destination. */ - private boolean includeSentJMSMessageID; + private Boolean includeSentJMSMessageID = false; /** * Whether to include all JMSXxxx properties when mapping from JMS to Camel * Message. Setting this to true will include properties such as JMSXAppID * and JMSXUserID etc. Note: If you are using a custom headerFilterStrategy * then this option does not apply. */ - private boolean includeAllJMSXProperties; + private Boolean includeAllJMSXProperties = false; /** * Specifies what default TaskExecutor type to use in the * DefaultMessageListenerContainer for both consumer endpoints and the @@ -538,20 +538,20 @@ public void setConfiguration(JmsConfiguration configuration) { this.configuration = configuration; } - public boolean isAcceptMessagesWhileStopping() { + public Boolean getAcceptMessagesWhileStopping() { return acceptMessagesWhileStopping; } public void setAcceptMessagesWhileStopping( - boolean acceptMessagesWhileStopping) { + Boolean acceptMessagesWhileStopping) { this.acceptMessagesWhileStopping = acceptMessagesWhileStopping; } - public boolean isAllowReplyManagerQuickStop() { + public Boolean getAllowReplyManagerQuickStop() { return allowReplyManagerQuickStop; } - public void setAllowReplyManagerQuickStop(boolean allowReplyManagerQuickStop) { + public void setAllowReplyManagerQuickStop(Boolean allowReplyManagerQuickStop) { this.allowReplyManagerQuickStop = allowReplyManagerQuickStop; } @@ -563,11 +563,11 @@ public void setAcknowledgementMode(int acknowledgementMode) { this.acknowledgementMode = acknowledgementMode; } - public boolean isEagerLoadingOfProperties() { + public Boolean getEagerLoadingOfProperties() { return eagerLoadingOfProperties; } - public void setEagerLoadingOfProperties(boolean eagerLoadingOfProperties) { + public void setEagerLoadingOfProperties(Boolean eagerLoadingOfProperties) { this.eagerLoadingOfProperties = eagerLoadingOfProperties; } @@ -579,11 +579,11 @@ public void setAcknowledgementModeName(String acknowledgementModeName) { this.acknowledgementModeName = acknowledgementModeName; } - public boolean isAutoStartup() { + public Boolean getAutoStartup() { return autoStartup; } - public void setAutoStartup(boolean autoStartup) { + public void setAutoStartup(Boolean autoStartup) { this.autoStartup = autoStartup; } @@ -643,11 +643,11 @@ public void setConnectionFactory(ConnectionFactory connectionFactory) { this.connectionFactory = connectionFactory; } - public boolean isDeliveryPersistent() { + public Boolean getDeliveryPersistent() { return deliveryPersistent; } - public void setDeliveryPersistent(boolean deliveryPersistent) { + public void setDeliveryPersistent(Boolean deliveryPersistent) { this.deliveryPersistent = deliveryPersistent; } @@ -692,27 +692,27 @@ public void setErrorHandlerLoggingLevel( this.errorHandlerLoggingLevel = errorHandlerLoggingLevel; } - public boolean isErrorHandlerLogStackTrace() { + public Boolean getErrorHandlerLogStackTrace() { return errorHandlerLogStackTrace; } - public void setErrorHandlerLogStackTrace(boolean errorHandlerLogStackTrace) { + public void setErrorHandlerLogStackTrace(Boolean errorHandlerLogStackTrace) { this.errorHandlerLogStackTrace = errorHandlerLogStackTrace; } - public boolean isExplicitQosEnabled() { + public Boolean getExplicitQosEnabled() { return explicitQosEnabled; } - public void setExplicitQosEnabled(boolean explicitQosEnabled) { + public void setExplicitQosEnabled(Boolean explicitQosEnabled) { this.explicitQosEnabled = explicitQosEnabled; } - public boolean isExposeListenerSession() { + public Boolean getExposeListenerSession() { return exposeListenerSession; } - public void setExposeListenerSession(boolean exposeListenerSession) { + public void setExposeListenerSession(Boolean exposeListenerSession) { this.exposeListenerSession = exposeListenerSession; } @@ -774,44 +774,44 @@ public void setMessageConverter(MessageConverter messageConverter) { this.messageConverter = messageConverter; } - public boolean isMapJmsMessage() { + public Boolean getMapJmsMessage() { return mapJmsMessage; } - public void setMapJmsMessage(boolean mapJmsMessage) { + public void setMapJmsMessage(Boolean mapJmsMessage) { this.mapJmsMessage = mapJmsMessage; } - public boolean isMessageIdEnabled() { + public Boolean getMessageIdEnabled() { return messageIdEnabled; } - public void setMessageIdEnabled(boolean messageIdEnabled) { + public void setMessageIdEnabled(Boolean messageIdEnabled) { this.messageIdEnabled = messageIdEnabled; } - public boolean isMessageTimestampEnabled() { + public Boolean getMessageTimestampEnabled() { return messageTimestampEnabled; } - public void setMessageTimestampEnabled(boolean messageTimestampEnabled) { + public void setMessageTimestampEnabled(Boolean messageTimestampEnabled) { this.messageTimestampEnabled = messageTimestampEnabled; } - public boolean isAlwaysCopyMessage() { + public Boolean getAlwaysCopyMessage() { return alwaysCopyMessage; } - public void setAlwaysCopyMessage(boolean alwaysCopyMessage) { + public void setAlwaysCopyMessage(Boolean alwaysCopyMessage) { this.alwaysCopyMessage = alwaysCopyMessage; } - public boolean isUseMessageIDAsCorrelationID() { + public Boolean getUseMessageIDAsCorrelationID() { return useMessageIDAsCorrelationID; } public void setUseMessageIDAsCorrelationID( - boolean useMessageIDAsCorrelationID) { + Boolean useMessageIDAsCorrelationID) { this.useMessageIDAsCorrelationID = useMessageIDAsCorrelationID; } @@ -823,11 +823,11 @@ public void setPriority(int priority) { this.priority = priority; } - public boolean isPubSubNoLocal() { + public Boolean getPubSubNoLocal() { return pubSubNoLocal; } - public void setPubSubNoLocal(boolean pubSubNoLocal) { + public void setPubSubNoLocal(Boolean pubSubNoLocal) { this.pubSubNoLocal = pubSubNoLocal; } @@ -847,11 +847,11 @@ public void setRecoveryInterval(long recoveryInterval) { this.recoveryInterval = recoveryInterval; } - public boolean isSubscriptionDurable() { + public Boolean getSubscriptionDurable() { return subscriptionDurable; } - public void setSubscriptionDurable(boolean subscriptionDurable) { + public void setSubscriptionDurable(Boolean subscriptionDurable) { this.subscriptionDurable = subscriptionDurable; } @@ -871,20 +871,20 @@ public void setTimeToLive(long timeToLive) { this.timeToLive = timeToLive; } - public boolean isTransacted() { + public Boolean getTransacted() { return transacted; } - public void setTransacted(boolean transacted) { + public void setTransacted(Boolean transacted) { this.transacted = transacted; } - public boolean isLazyCreateTransactionManager() { + public Boolean getLazyCreateTransactionManager() { return lazyCreateTransactionManager; } public void setLazyCreateTransactionManager( - boolean lazyCreateTransactionManager) { + Boolean lazyCreateTransactionManager) { this.lazyCreateTransactionManager = lazyCreateTransactionManager; } @@ -913,35 +913,35 @@ public void setTransactionTimeout(int transactionTimeout) { this.transactionTimeout = transactionTimeout; } - public boolean isTestConnectionOnStartup() { + public Boolean getTestConnectionOnStartup() { return testConnectionOnStartup; } - public void setTestConnectionOnStartup(boolean testConnectionOnStartup) { + public void setTestConnectionOnStartup(Boolean testConnectionOnStartup) { this.testConnectionOnStartup = testConnectionOnStartup; } - public boolean isAsyncStartListener() { + public Boolean getAsyncStartListener() { return asyncStartListener; } - public void setAsyncStartListener(boolean asyncStartListener) { + public void setAsyncStartListener(Boolean asyncStartListener) { this.asyncStartListener = asyncStartListener; } - public boolean isAsyncStopListener() { + public Boolean getAsyncStopListener() { return asyncStopListener; } - public void setAsyncStopListener(boolean asyncStopListener) { + public void setAsyncStopListener(Boolean asyncStopListener) { this.asyncStopListener = asyncStopListener; } - public boolean isForceSendOriginalMessage() { + public Boolean getForceSendOriginalMessage() { return forceSendOriginalMessage; } - public void setForceSendOriginalMessage(boolean forceSendOriginalMessage) { + public void setForceSendOriginalMessage(Boolean forceSendOriginalMessage) { this.forceSendOriginalMessage = forceSendOriginalMessage; } @@ -962,27 +962,27 @@ public void setRequestTimeoutCheckerInterval( this.requestTimeoutCheckerInterval = requestTimeoutCheckerInterval; } - public boolean isTransferExchange() { + public Boolean getTransferExchange() { return transferExchange; } - public void setTransferExchange(boolean transferExchange) { + public void setTransferExchange(Boolean transferExchange) { this.transferExchange = transferExchange; } - public boolean isTransferException() { + public Boolean getTransferException() { return transferException; } - public void setTransferException(boolean transferException) { + public void setTransferException(Boolean transferException) { this.transferException = transferException; } - public boolean isTransferFault() { + public Boolean getTransferFault() { return transferFault; } - public void setTransferFault(boolean transferFault) { + public void setTransferFault(Boolean transferFault) { this.transferFault = transferFault; } @@ -1010,43 +1010,43 @@ public void setReplyToType(ReplyToType replyToType) { this.replyToType = replyToType; } - public boolean isPreserveMessageQos() { + public Boolean getPreserveMessageQos() { return preserveMessageQos; } - public void setPreserveMessageQos(boolean preserveMessageQos) { + public void setPreserveMessageQos(Boolean preserveMessageQos) { this.preserveMessageQos = preserveMessageQos; } - public boolean isAsyncConsumer() { + public Boolean getAsyncConsumer() { return asyncConsumer; } - public void setAsyncConsumer(boolean asyncConsumer) { + public void setAsyncConsumer(Boolean asyncConsumer) { this.asyncConsumer = asyncConsumer; } - public boolean isAllowNullBody() { + public Boolean getAllowNullBody() { return allowNullBody; } - public void setAllowNullBody(boolean allowNullBody) { + public void setAllowNullBody(Boolean allowNullBody) { this.allowNullBody = allowNullBody; } - public boolean isIncludeSentJMSMessageID() { + public Boolean getIncludeSentJMSMessageID() { return includeSentJMSMessageID; } - public void setIncludeSentJMSMessageID(boolean includeSentJMSMessageID) { + public void setIncludeSentJMSMessageID(Boolean includeSentJMSMessageID) { this.includeSentJMSMessageID = includeSentJMSMessageID; } - public boolean isIncludeAllJMSXProperties() { + public Boolean getIncludeAllJMSXProperties() { return includeAllJMSXProperties; } - public void setIncludeAllJMSXProperties(boolean includeAllJMSXProperties) { + public void setIncludeAllJMSXProperties(Boolean includeAllJMSXProperties) { this.includeAllJMSXProperties = includeAllJMSXProperties; } diff --git a/components/camel-atmosphere-websocket/src/main/java/org/apache/camel/component/atmosphere/websocket/springboot/WebsocketComponentConfiguration.java b/components/camel-atmosphere-websocket/src/main/java/org/apache/camel/component/atmosphere/websocket/springboot/WebsocketComponentConfiguration.java index 6896e657197b1..2e433ce5e6323 100644 --- a/components/camel-atmosphere-websocket/src/main/java/org/apache/camel/component/atmosphere/websocket/springboot/WebsocketComponentConfiguration.java +++ b/components/camel-atmosphere-websocket/src/main/java/org/apache/camel/component/atmosphere/websocket/springboot/WebsocketComponentConfiguration.java @@ -43,7 +43,7 @@ public class WebsocketComponentConfiguration { * Exchange. This is turn off by default as this may require servet specific * configuration to enable this when using Servlet's. */ - private boolean attachmentMultipartBinding; + private Boolean attachmentMultipartBinding = false; /** * To use a custom HttpBinding to control the mapping between Camel message * and HttpClient. @@ -60,7 +60,7 @@ public class WebsocketComponentConfiguration { * the incoming data from the request to Java and that can be a potential * security risk. */ - private boolean allowJavaSerializedObject; + private Boolean allowJavaSerializedObject = false; /** * To use a custom HeaderFilterStrategy to filter header to and from Camel * message. @@ -83,11 +83,11 @@ public void setHttpRegistry(HttpRegistry httpRegistry) { this.httpRegistry = httpRegistry; } - public boolean isAttachmentMultipartBinding() { + public Boolean getAttachmentMultipartBinding() { return attachmentMultipartBinding; } - public void setAttachmentMultipartBinding(boolean attachmentMultipartBinding) { + public void setAttachmentMultipartBinding(Boolean attachmentMultipartBinding) { this.attachmentMultipartBinding = attachmentMultipartBinding; } @@ -107,11 +107,11 @@ public void setHttpConfiguration(HttpConfiguration httpConfiguration) { this.httpConfiguration = httpConfiguration; } - public boolean isAllowJavaSerializedObject() { + public Boolean getAllowJavaSerializedObject() { return allowJavaSerializedObject; } - public void setAllowJavaSerializedObject(boolean allowJavaSerializedObject) { + public void setAllowJavaSerializedObject(Boolean allowJavaSerializedObject) { this.allowJavaSerializedObject = allowJavaSerializedObject; } diff --git a/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatConfiguration.java b/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatConfiguration.java index 929deeccca249..2dccf9d4cbae0 100644 --- a/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatConfiguration.java +++ b/components/camel-base64/src/main/java/org/apache/camel/dataformat/base64/springboot/Base64DataFormatConfiguration.java @@ -30,7 +30,7 @@ public class Base64DataFormatConfiguration { * To specific a maximum line length for the encoded data. By default 76 is * used. */ - private Integer lineLength; + private Integer lineLength = 76; /** * The line separators to use. By default \r\n is used. */ @@ -40,7 +40,7 @@ public class Base64DataFormatConfiguration { * is only applied to encode operations. Decoding seamlessly handles both * modes. Is by default false. */ - private Boolean urlSafe; + private Boolean urlSafe = false; public Integer getLineLength() { return lineLength; diff --git a/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatConfiguration.java b/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatConfiguration.java index e3babcec8c2e4..8fc27243ba726 100644 --- a/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatConfiguration.java +++ b/components/camel-beanio/src/main/java/org/apache/camel/dataformat/beanio/springboot/BeanIODataFormatConfiguration.java @@ -39,15 +39,15 @@ public class BeanIODataFormatConfiguration { /** * Whether to ignore unidentified records. */ - private Boolean ignoreUnidentifiedRecords; + private Boolean ignoreUnidentifiedRecords = false; /** * Whether to ignore unexpected records. */ - private Boolean ignoreUnexpectedRecords; + private Boolean ignoreUnexpectedRecords = false; /** * Whether to ignore invalid records. */ - private Boolean ignoreInvalidRecords; + private Boolean ignoreInvalidRecords = false; /** * The charset to use. Is by default the JVM platform default charset. */ diff --git a/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatConfiguration.java b/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatConfiguration.java index 7f3b7aa338871..0763000a6e8d5 100644 --- a/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatConfiguration.java +++ b/components/camel-boon/src/main/java/org/apache/camel/component/boon/springboot/BoonDataFormatConfiguration.java @@ -33,7 +33,7 @@ public class BoonDataFormatConfiguration { /** * To unarmshal to a List of Map or a List of Pojo. */ - private Boolean useList; + private Boolean useList = false; public String getUnmarshalTypeName() { return unmarshalTypeName; diff --git a/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatConfiguration.java b/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatConfiguration.java index 05ff8182be9f1..8d7b69fe888d1 100644 --- a/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatConfiguration.java +++ b/components/camel-castor/src/main/java/org/apache/camel/dataformat/castor/springboot/CastorDataFormatConfiguration.java @@ -33,7 +33,7 @@ public class CastorDataFormatConfiguration { /** * Whether validation is turned on or off. Is by default true. */ - private Boolean validation; + private Boolean validation = true; /** * Encoding to use when marshalling an Object to XML. Is by default UTF-8 */ diff --git a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/CryptoDataFormatConfiguration.java b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/CryptoDataFormatConfiguration.java index 3e0ef4980a3ae..57c7e0e32f125 100644 --- a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/CryptoDataFormatConfiguration.java +++ b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/CryptoDataFormatConfiguration.java @@ -62,12 +62,12 @@ public class CryptoDataFormatConfiguration { * Flag indicating that a Message Authentication Code should be calculated * and appended to the encrypted data. */ - private Boolean shouldAppendHMAC; + private Boolean shouldAppendHMAC = false; /** * Flag indicating that the configured IV should be inlined into the * encrypted data stream. Is by default false. */ - private Boolean inline; + private Boolean inline = false; public String getAlgorithm() { return algorithm; diff --git a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatConfiguration.java b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatConfiguration.java index 6efb3f570d0aa..63ce2b5e20d16 100644 --- a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatConfiguration.java +++ b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/springboot/PGPDataFormatConfiguration.java @@ -73,12 +73,12 @@ public class PGPDataFormatConfiguration { * This option will cause PGP to base64 encode the encrypted text making it * available for copy/paste etc. */ - private Boolean armored; + private Boolean armored = false; /** * Adds an integrity check/sign into the encryption file. The default value * is true. */ - private Boolean integrity; + private Boolean integrity = true; /** * Java Cryptography Extension (JCE) provider default is Bouncy Castle (BC). * Alternatively you can use for example the IAIK JCE provider; in this case diff --git a/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatConfiguration.java b/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatConfiguration.java index ce68a1f31ff40..49ae019b5fdf9 100644 --- a/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatConfiguration.java +++ b/components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/springboot/CsvDataFormatConfiguration.java @@ -39,7 +39,7 @@ public class CsvDataFormatConfiguration { /** * Disables the comment marker of the reference format. */ - private Boolean commentMarkerDisabled; + private Boolean commentMarkerDisabled = false; /** * Sets the comment marker of the reference format. */ @@ -51,7 +51,7 @@ public class CsvDataFormatConfiguration { /** * Use for disabling using escape character */ - private Boolean escapeDisabled; + private Boolean escapeDisabled = false; /** * Sets the escape character to use */ @@ -59,7 +59,7 @@ public class CsvDataFormatConfiguration { /** * Use for disabling headers */ - private Boolean headerDisabled; + private Boolean headerDisabled = false; /** * To configure the CSV headers */ @@ -67,19 +67,19 @@ public class CsvDataFormatConfiguration { /** * Whether to allow missing column names. */ - private Boolean allowMissingColumnNames; + private Boolean allowMissingColumnNames = false; /** * Whether to ignore empty lines. */ - private Boolean ignoreEmptyLines; + private Boolean ignoreEmptyLines = false; /** * Whether to ignore surrounding spaces */ - private Boolean ignoreSurroundingSpaces; + private Boolean ignoreSurroundingSpaces = false; /** * Used to disable null strings */ - private Boolean nullStringDisabled; + private Boolean nullStringDisabled = false; /** * Sets the null string */ @@ -87,7 +87,7 @@ public class CsvDataFormatConfiguration { /** * Used to disable quotes */ - private Boolean quoteDisabled; + private Boolean quoteDisabled = false; /** * Sets the quote which by default is */ @@ -103,7 +103,7 @@ public class CsvDataFormatConfiguration { /** * Whether to skip the header record in the output */ - private Boolean skipHeaderRecord; + private Boolean skipHeaderRecord = false; /** * Sets the quote mode */ @@ -112,13 +112,13 @@ public class CsvDataFormatConfiguration { * Whether the unmarshalling should produce an iterator that reads the lines * on the fly or if all the lines must be read at one. */ - private Boolean lazyLoad; + private Boolean lazyLoad = false; /** * Whether the unmarshalling should produce maps for the lines values * instead of lists. It requires to have header (either defined or * collected). */ - private Boolean useMaps; + private Boolean useMaps = false; /** * Refers to a custom CsvRecordConverter to lookup from the registry to use. */ diff --git a/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/springboot/DisruptorComponentConfiguration.java b/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/springboot/DisruptorComponentConfiguration.java index 68dd695afe1f5..077c3b7347946 100644 --- a/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/springboot/DisruptorComponentConfiguration.java +++ b/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/springboot/DisruptorComponentConfiguration.java @@ -36,7 +36,7 @@ public class DisruptorComponentConfiguration { /** * To configure the default value for multiple consumers */ - private boolean defaultMultipleConsumers; + private Boolean defaultMultipleConsumers = false; /** * To configure the default value for DisruptorProducerType The default * value is Multi. @@ -51,7 +51,7 @@ public class DisruptorComponentConfiguration { * To configure the default value for block when full The default value is * true. */ - private boolean defaultBlockWhenFull; + private Boolean defaultBlockWhenFull = false; /** * To configure the ring buffer size */ @@ -70,11 +70,11 @@ public void setDefaultConcurrentConsumers(int defaultConcurrentConsumers) { this.defaultConcurrentConsumers = defaultConcurrentConsumers; } - public boolean isDefaultMultipleConsumers() { + public Boolean getDefaultMultipleConsumers() { return defaultMultipleConsumers; } - public void setDefaultMultipleConsumers(boolean defaultMultipleConsumers) { + public void setDefaultMultipleConsumers(Boolean defaultMultipleConsumers) { this.defaultMultipleConsumers = defaultMultipleConsumers; } @@ -94,11 +94,11 @@ public void setDefaultWaitStrategy(DisruptorWaitStrategy defaultWaitStrategy) { this.defaultWaitStrategy = defaultWaitStrategy; } - public boolean isDefaultBlockWhenFull() { + public Boolean getDefaultBlockWhenFull() { return defaultBlockWhenFull; } - public void setDefaultBlockWhenFull(boolean defaultBlockWhenFull) { + public void setDefaultBlockWhenFull(Boolean defaultBlockWhenFull) { this.defaultBlockWhenFull = defaultBlockWhenFull; } diff --git a/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/vm/springboot/DisruptorVmComponentConfiguration.java b/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/vm/springboot/DisruptorVmComponentConfiguration.java index a194f49ee8c13..c872df39bbc33 100644 --- a/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/vm/springboot/DisruptorVmComponentConfiguration.java +++ b/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/vm/springboot/DisruptorVmComponentConfiguration.java @@ -36,7 +36,7 @@ public class DisruptorVmComponentConfiguration { /** * To configure the default value for multiple consumers */ - private boolean defaultMultipleConsumers; + private Boolean defaultMultipleConsumers = false; /** * To configure the default value for DisruptorProducerType The default * value is Multi. @@ -51,7 +51,7 @@ public class DisruptorVmComponentConfiguration { * To configure the default value for block when full The default value is * true. */ - private boolean defaultBlockWhenFull; + private Boolean defaultBlockWhenFull = false; /** * To configure the ring buffer size */ @@ -70,11 +70,11 @@ public void setDefaultConcurrentConsumers(int defaultConcurrentConsumers) { this.defaultConcurrentConsumers = defaultConcurrentConsumers; } - public boolean isDefaultMultipleConsumers() { + public Boolean getDefaultMultipleConsumers() { return defaultMultipleConsumers; } - public void setDefaultMultipleConsumers(boolean defaultMultipleConsumers) { + public void setDefaultMultipleConsumers(Boolean defaultMultipleConsumers) { this.defaultMultipleConsumers = defaultMultipleConsumers; } @@ -94,11 +94,11 @@ public void setDefaultWaitStrategy(DisruptorWaitStrategy defaultWaitStrategy) { this.defaultWaitStrategy = defaultWaitStrategy; } - public boolean isDefaultBlockWhenFull() { + public Boolean getDefaultBlockWhenFull() { return defaultBlockWhenFull; } - public void setDefaultBlockWhenFull(boolean defaultBlockWhenFull) { + public void setDefaultBlockWhenFull(Boolean defaultBlockWhenFull) { this.defaultBlockWhenFull = defaultBlockWhenFull; } diff --git a/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatConfiguration.java b/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatConfiguration.java index 49e41b0f8b6dc..e31437bb5970d 100644 --- a/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatConfiguration.java +++ b/components/camel-flatpack/src/main/java/org/apache/camel/dataformat/flatpack/springboot/FlatpackDataFormatConfiguration.java @@ -38,12 +38,12 @@ public class FlatpackDataFormatConfiguration { /** * Delimited or fixed. Is by default false = delimited */ - private Boolean fixed; + private Boolean fixed = false; /** * Whether the first line is ignored for delimited files (for the column * headers). Is by default true. */ - private Boolean ignoreFirstRecord; + private Boolean ignoreFirstRecord = true; /** * If the text is qualified with a char such as " */ @@ -56,12 +56,12 @@ public class FlatpackDataFormatConfiguration { * Allows for lines to be shorter than expected and ignores the extra * characters */ - private Boolean allowShortLines; + private Boolean allowShortLines = false; /** * Allows for lines to be longer than expected and ignores the extra * characters. */ - private Boolean ignoreExtraColumns; + private Boolean ignoreExtraColumns = false; public String getParserFactoryRef() { return parserFactoryRef; diff --git a/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java b/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java index 51dca10e6f5ca..6e68b76e5b999 100644 --- a/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java +++ b/components/camel-gson/src/main/java/org/apache/camel/component/gson/springboot/GsonDataFormatConfiguration.java @@ -35,7 +35,7 @@ public class GsonDataFormatConfiguration { /** * To enable pretty printing output nicely formatted. Is by default false. */ - private Boolean prettyPrint; + private Boolean prettyPrint = false; /** * Which json library to use such. Is by default xstream */ @@ -60,7 +60,7 @@ public class GsonDataFormatConfiguration { * Used for JMS users to allow the JMSType header from the JMS spec to * specify a FQN classname to use to unmarshal to. */ - private Boolean allowJmsType; + private Boolean allowJmsType = false; /** * Refers to a custom collection type to lookup in the registry to use. This * option should rarely be used but allows to use different collection types @@ -70,12 +70,12 @@ public class GsonDataFormatConfiguration { /** * To unarmshal to a List of Map or a List of Pojo. */ - private Boolean useList; + private Boolean useList = false; /** * Whether to enable the JAXB annotations module when using jackson. When * enabled then JAXB annotations can be used by Jackson. */ - private Boolean enableJaxbAnnotationModule; + private Boolean enableJaxbAnnotationModule = false; /** * To use custom Jackson modules com.fasterxml.jackson.databind.Module * specified as a String with FQN class names. Multiple classes can be diff --git a/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatConfiguration.java b/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatConfiguration.java index 0982908b242f8..b2ac0fbb896a9 100644 --- a/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatConfiguration.java +++ b/components/camel-hl7/src/main/java/org/apache/camel/component/hl7/springboot/HL7DataFormatConfiguration.java @@ -29,7 +29,7 @@ public class HL7DataFormatConfiguration { /** * Whether to validate the HL7 message Is by default true. */ - private Boolean validate; + private Boolean validate = true; public Boolean getValidate() { return validate; diff --git a/components/camel-http/src/main/java/org/apache/camel/component/http/springboot/HttpComponentConfiguration.java b/components/camel-http/src/main/java/org/apache/camel/component/http/springboot/HttpComponentConfiguration.java index 4357a5591b0de..0ce100e521d23 100644 --- a/components/camel-http/src/main/java/org/apache/camel/component/http/springboot/HttpComponentConfiguration.java +++ b/components/camel-http/src/main/java/org/apache/camel/component/http/springboot/HttpComponentConfiguration.java @@ -56,7 +56,7 @@ public class HttpComponentConfiguration { * the incoming data from the request to Java and that can be a potential * security risk. */ - private boolean allowJavaSerializedObject; + private Boolean allowJavaSerializedObject = false; /** * To use a custom HeaderFilterStrategy to filter header to and from Camel * message. @@ -97,11 +97,11 @@ public void setHttpConfiguration(HttpConfiguration httpConfiguration) { this.httpConfiguration = httpConfiguration; } - public boolean isAllowJavaSerializedObject() { + public Boolean getAllowJavaSerializedObject() { return allowJavaSerializedObject; } - public void setAllowJavaSerializedObject(boolean allowJavaSerializedObject) { + public void setAllowJavaSerializedObject(Boolean allowJavaSerializedObject) { this.allowJavaSerializedObject = allowJavaSerializedObject; } diff --git a/components/camel-http4/src/main/java/org/apache/camel/component/http4/springboot/HttpComponentConfiguration.java b/components/camel-http4/src/main/java/org/apache/camel/component/http4/springboot/HttpComponentConfiguration.java index 8980f630b722e..f3568e92091c0 100644 --- a/components/camel-http4/src/main/java/org/apache/camel/component/http4/springboot/HttpComponentConfiguration.java +++ b/components/camel-http4/src/main/java/org/apache/camel/component/http4/springboot/HttpComponentConfiguration.java @@ -60,7 +60,7 @@ public class HttpComponentConfiguration { * the incoming data from the request to Java and that can be a potential * security risk. */ - private boolean allowJavaSerializedObject; + private Boolean allowJavaSerializedObject = false; /** * To use a custom org.apache.http.protocol.HttpContext when executing * requests. @@ -140,11 +140,11 @@ public void setHttpConfiguration(HttpConfiguration httpConfiguration) { this.httpConfiguration = httpConfiguration; } - public boolean isAllowJavaSerializedObject() { + public Boolean getAllowJavaSerializedObject() { return allowJavaSerializedObject; } - public void setAllowJavaSerializedObject(boolean allowJavaSerializedObject) { + public void setAllowJavaSerializedObject(Boolean allowJavaSerializedObject) { this.allowJavaSerializedObject = allowJavaSerializedObject; } diff --git a/components/camel-ibatis/src/main/java/org/apache/camel/component/ibatis/springboot/IBatisComponentConfiguration.java b/components/camel-ibatis/src/main/java/org/apache/camel/component/ibatis/springboot/IBatisComponentConfiguration.java index bb02344b0161a..dd91d8998065b 100644 --- a/components/camel-ibatis/src/main/java/org/apache/camel/component/ibatis/springboot/IBatisComponentConfiguration.java +++ b/components/camel-ibatis/src/main/java/org/apache/camel/component/ibatis/springboot/IBatisComponentConfiguration.java @@ -40,7 +40,7 @@ public class IBatisComponentConfiguration { /** * Whether to use transactions. This option is by default true. */ - private boolean useTransactions; + private Boolean useTransactions = false; public SqlMapClient getSqlMapClient() { return sqlMapClient; @@ -58,11 +58,11 @@ public void setSqlMapConfig(String sqlMapConfig) { this.sqlMapConfig = sqlMapConfig; } - public boolean isUseTransactions() { + public Boolean getUseTransactions() { return useTransactions; } - public void setUseTransactions(boolean useTransactions) { + public void setUseTransactions(Boolean useTransactions) { this.useTransactions = useTransactions; } } \ No newline at end of file diff --git a/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatConfiguration.java b/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatConfiguration.java index f743da2083c90..bc38d28f6d7c7 100644 --- a/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatConfiguration.java +++ b/components/camel-ical/src/main/java/org/apache/camel/component/ical/springboot/ICalDataFormatConfiguration.java @@ -29,7 +29,7 @@ public class ICalDataFormatConfiguration { /** * Whether to validate. */ - private Boolean validating; + private Boolean validating = false; public Boolean getValidating() { return validating; diff --git a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatConfiguration.java b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatConfiguration.java index ea0e61b462123..c2f9ba236e83e 100644 --- a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatConfiguration.java +++ b/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatConfiguration.java @@ -35,7 +35,7 @@ public class JacksonDataFormatConfiguration { /** * To enable pretty printing output nicely formatted. Is by default false. */ - private Boolean prettyPrint; + private Boolean prettyPrint = false; /** * Which json library to use such. Is by default xstream */ @@ -60,7 +60,7 @@ public class JacksonDataFormatConfiguration { * Used for JMS users to allow the JMSType header from the JMS spec to * specify a FQN classname to use to unmarshal to. */ - private Boolean allowJmsType; + private Boolean allowJmsType = false; /** * Refers to a custom collection type to lookup in the registry to use. This * option should rarely be used but allows to use different collection types @@ -70,12 +70,12 @@ public class JacksonDataFormatConfiguration { /** * To unarmshal to a List of Map or a List of Pojo. */ - private Boolean useList; + private Boolean useList = false; /** * Whether to enable the JAXB annotations module when using jackson. When * enabled then JAXB annotations can be used by Jackson. */ - private Boolean enableJaxbAnnotationModule; + private Boolean enableJaxbAnnotationModule = false; /** * To use custom Jackson modules com.fasterxml.jackson.databind.Module * specified as a String with FQN class names. Multiple classes can be diff --git a/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatConfiguration.java b/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatConfiguration.java index 6909cb1fe1750..49e244af8ca1d 100644 --- a/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatConfiguration.java +++ b/components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/springboot/JacksonXMLDataFormatConfiguration.java @@ -33,7 +33,7 @@ public class JacksonXMLDataFormatConfiguration { /** * To enable pretty printing output nicely formatted. Is by default false. */ - private Boolean prettyPrint; + private Boolean prettyPrint = false; /** * Class name of the java type to use when unarmshalling */ @@ -54,7 +54,7 @@ public class JacksonXMLDataFormatConfiguration { * Used for JMS users to allow the JMSType header from the JMS spec to * specify a FQN classname to use to unmarshal to. */ - private Boolean allowJmsType; + private Boolean allowJmsType = false; /** * Refers to a custom collection type to lookup in the registry to use. This * option should rarely be used but allows to use different collection types @@ -64,12 +64,12 @@ public class JacksonXMLDataFormatConfiguration { /** * To unarmshal to a List of Map or a List of Pojo. */ - private Boolean useList; + private Boolean useList = false; /** * Whether to enable the JAXB annotations module when using jackson. When * enabled then JAXB annotations can be used by Jackson. */ - private Boolean enableJaxbAnnotationModule; + private Boolean enableJaxbAnnotationModule = false; /** * To use custom Jackson modules com.fasterxml.jackson.databind.Module * specified as a String with FQN class names. Multiple classes can be diff --git a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java b/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java index ef5de078f3bea..d521c10d58b2b 100644 --- a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java +++ b/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java @@ -39,28 +39,28 @@ public class JaxbDataFormatConfiguration { /** * To enable pretty printing output nicely formatted. Is by default false. */ - private Boolean prettyPrint; + private Boolean prettyPrint = false; /** * Whether to allow using ObjectFactory classes to create the POJO classes * during marshalling. This only applies to POJO classes that has not been * annotated with JAXB and providing jaxb.index descriptor files. */ - private Boolean objectFactory; + private Boolean objectFactory = false; /** * Whether to ignore JAXBElement elements - only needed to be set to false * in very special use-cases. */ - private Boolean ignoreJAXBElement; + private Boolean ignoreJAXBElement = false; /** * Whether marhsalling must be java objects with JAXB annotations. And if * not then it fails. This option can be set to false to relax that such as * when the data is already in XML format. */ - private Boolean mustBeJAXBElement; + private Boolean mustBeJAXBElement = false; /** * To ignore non xml characheters and replace them with an empty space. */ - private Boolean filterNonXmlChars; + private Boolean filterNonXmlChars = false; /** * To overrule and use a specific encoding */ @@ -74,7 +74,7 @@ public class JaxbDataFormatConfiguration { * behaviours you need set property partClass. Camel will pass this class to * JAXB's unmarshaler. */ - private Boolean fragment; + private Boolean fragment = false; /** * Name of class used for fragment parsing. See more details at the fragment * option. diff --git a/components/camel-jetty9/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentConfiguration9.java b/components/camel-jetty9/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentConfiguration9.java index fc3877cd9c924..a81cff54c12cf 100644 --- a/components/camel-jetty9/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentConfiguration9.java +++ b/components/camel-jetty9/src/main/java/org/apache/camel/component/jetty9/springboot/JettyHttpComponentConfiguration9.java @@ -96,7 +96,7 @@ public class JettyHttpComponentConfiguration9 { * If this option is true Jetty JMX support will be enabled for this * endpoint. */ - private boolean enableJmx; + private Boolean enableJmx = false; /** * To use a custom org.apache.camel.component.jetty.JettyHttpBinding which * are used to customize how a response should be written for the producer. @@ -135,7 +135,7 @@ public class JettyHttpComponentConfiguration9 { /** * Whether or not to use Jetty continuations for the Jetty Server. */ - private boolean useContinuation; + private Boolean useContinuation = false; /** * To configure security using SSLContextParameters */ @@ -174,7 +174,7 @@ public class JettyHttpComponentConfiguration9 { * other camel-jetty endpoint is share the same port otherwise this option * may not work as expected. */ - private boolean sendServerVersion; + private Boolean sendServerVersion = false; /** * Whether to allow java serialization when a request uses * context-type=application/x-java-serialized-object This is by default @@ -182,7 +182,7 @@ public class JettyHttpComponentConfiguration9 { * the incoming data from the request to Java and that can be a potential * security risk. */ - private boolean allowJavaSerializedObject; + private Boolean allowJavaSerializedObject = false; /** * To use a custom HeaderFilterStrategy to filter header to and from Camel * message. @@ -278,11 +278,11 @@ public void setThreadPool(ThreadPool threadPool) { this.threadPool = threadPool; } - public boolean isEnableJmx() { + public Boolean getEnableJmx() { return enableJmx; } - public void setEnableJmx(boolean enableJmx) { + public void setEnableJmx(Boolean enableJmx) { this.enableJmx = enableJmx; } @@ -344,11 +344,11 @@ public void setContinuationTimeout(Long continuationTimeout) { this.continuationTimeout = continuationTimeout; } - public boolean isUseContinuation() { + public Boolean getUseContinuation() { return useContinuation; } - public void setUseContinuation(boolean useContinuation) { + public void setUseContinuation(Boolean useContinuation) { this.useContinuation = useContinuation; } @@ -409,19 +409,19 @@ public void setProxyPort(Integer proxyPort) { this.proxyPort = proxyPort; } - public boolean isSendServerVersion() { + public Boolean getSendServerVersion() { return sendServerVersion; } - public void setSendServerVersion(boolean sendServerVersion) { + public void setSendServerVersion(Boolean sendServerVersion) { this.sendServerVersion = sendServerVersion; } - public boolean isAllowJavaSerializedObject() { + public Boolean getAllowJavaSerializedObject() { return allowJavaSerializedObject; } - public void setAllowJavaSerializedObject(boolean allowJavaSerializedObject) { + public void setAllowJavaSerializedObject(Boolean allowJavaSerializedObject) { this.allowJavaSerializedObject = allowJavaSerializedObject; } diff --git a/components/camel-jgroups/src/main/java/org/apache/camel/component/jgroups/springboot/JGroupsComponentConfiguration.java b/components/camel-jgroups/src/main/java/org/apache/camel/component/jgroups/springboot/JGroupsComponentConfiguration.java index 167cd79064692..6c722d3a76a35 100644 --- a/components/camel-jgroups/src/main/java/org/apache/camel/component/jgroups/springboot/JGroupsComponentConfiguration.java +++ b/components/camel-jgroups/src/main/java/org/apache/camel/component/jgroups/springboot/JGroupsComponentConfiguration.java @@ -41,7 +41,7 @@ public class JGroupsComponentConfiguration { * messages as well (not only org.jgroups.Message instances). By default * only regular messages are consumed by the endpoint. */ - private boolean enableViewMessages; + private Boolean enableViewMessages = false; public Channel getChannel() { return channel; @@ -59,11 +59,11 @@ public void setChannelProperties(String channelProperties) { this.channelProperties = channelProperties; } - public boolean isEnableViewMessages() { + public Boolean getEnableViewMessages() { return enableViewMessages; } - public void setEnableViewMessages(boolean enableViewMessages) { + public void setEnableViewMessages(Boolean enableViewMessages) { this.enableViewMessages = enableViewMessages; } } \ No newline at end of file diff --git a/components/camel-jms/src/main/java/org/apache/camel/component/jms/springboot/JmsComponentConfiguration.java b/components/camel-jms/src/main/java/org/apache/camel/component/jms/springboot/JmsComponentConfiguration.java index b027c2830f000..8862b426658da 100644 --- a/components/camel-jms/src/main/java/org/apache/camel/component/jms/springboot/JmsComponentConfiguration.java +++ b/components/camel-jms/src/main/java/org/apache/camel/component/jms/springboot/JmsComponentConfiguration.java @@ -58,7 +58,7 @@ public class JmsComponentConfiguration { * queue on the JMS broker. To avoid this its recommended to enable this * option. */ - private boolean acceptMessagesWhileStopping; + private Boolean acceptMessagesWhileStopping = false; /** * Whether the DefaultMessageListenerContainer used in the reply managers * for request-reply messaging allow the @@ -68,7 +68,7 @@ public class JmsComponentConfiguration { * ability is enabled by default in the regular JMS consumers but to enable * for reply managers you must enable this flag. */ - private boolean allowReplyManagerQuickStop; + private Boolean allowReplyManagerQuickStop = false; /** * The JMS acknowledgement mode defined as an Integer. Allows you to set * vendor-specific extensions to the acknowledgment mode. For the regular @@ -81,7 +81,7 @@ public class JmsComponentConfiguration { * but sometimes can catch early any issues with the underlying JMS provider * and the use of JMS properties */ - private boolean eagerLoadingOfProperties; + private Boolean eagerLoadingOfProperties = false; /** * The JMS acknowledgement name which is one of: SESSION_TRANSACTED * CLIENT_ACKNOWLEDGE AUTO_ACKNOWLEDGE DUPS_OK_ACKNOWLEDGE @@ -90,7 +90,7 @@ public class JmsComponentConfiguration { /** * Specifies whether the consumer container should auto-startup. */ - private boolean autoStartup; + private Boolean autoStartup = false; /** * Sets the cache level by ID for the underlying JMS resources. See * cacheLevelName option for more details. @@ -142,7 +142,7 @@ public class JmsComponentConfiguration { /** * Specifies whether persistent delivery is used by default. */ - private boolean deliveryPersistent; + private Boolean deliveryPersistent = false; /** * Specifies the delivery mode to be used. Possible values are Possibles * values are those defined by javax.jms.DeliveryMode. NON_PERSISTENT = 1 @@ -178,7 +178,7 @@ public class JmsComponentConfiguration { * Allows to control whether stacktraces should be logged or not by the * default errorHandler. */ - private boolean errorHandlerLogStackTrace; + private Boolean errorHandlerLogStackTrace = false; /** * Set if the deliveryMode priority or timeToLive qualities of service * should be used when sending messages. This option is based on Spring's @@ -187,12 +187,12 @@ public class JmsComponentConfiguration { * option which operates at message granularity reading QoS properties * exclusively from the Camel In message headers. */ - private boolean explicitQosEnabled; + private Boolean explicitQosEnabled = false; /** * Specifies whether the listener session should be exposed when consuming * messages. */ - private boolean exposeListenerSession; + private Boolean exposeListenerSession = false; /** * Specifies the limit for idle executions of a receive task not having * received any message within its execution. If this limit is reached the @@ -244,16 +244,16 @@ public class JmsComponentConfiguration { * suited payload type such as javax.jms.TextMessage to a String etc. See * section about how mapping works below for more details. */ - private boolean mapJmsMessage; + private Boolean mapJmsMessage = false; /** * When sending specifies whether message IDs should be added. */ - private boolean messageIdEnabled; + private Boolean messageIdEnabled = false; /** * Specifies whether timestamps should be enabled by default on sending * messages. */ - private boolean messageTimestampEnabled; + private Boolean messageTimestampEnabled = false; /** * If true Camel will always make a JMS message copy of the message when it * is passed to the producer for sending. Copying the message is needed in @@ -261,12 +261,12 @@ public class JmsComponentConfiguration { * (incidentally Camel will set the alwaysCopyMessage option to true if a * replyToDestinationSelectorName is set) */ - private boolean alwaysCopyMessage; + private Boolean alwaysCopyMessage = false; /** * Specifies whether JMSMessageID should always be used as JMSCorrelationID * for InOut messages. */ - private boolean useMessageIDAsCorrelationID; + private Boolean useMessageIDAsCorrelationID = false; /** * Values greater than 1 specify the message priority when sending (where 0 * is the lowest priority and 9 is the highest). The explicitQosEnabled @@ -277,7 +277,7 @@ public class JmsComponentConfiguration { * Specifies whether to inhibit the delivery of messages published by its * own connection. */ - private boolean pubSubNoLocal; + private Boolean pubSubNoLocal = false; /** * The timeout for receiving messages (in milliseconds). */ @@ -293,7 +293,7 @@ public class JmsComponentConfiguration { * and a clientId. */ @Deprecated - private boolean subscriptionDurable; + private Boolean subscriptionDurable = false; /** * Allows you to specify a custom task executor for consuming messages. */ @@ -306,12 +306,12 @@ public class JmsComponentConfiguration { /** * Specifies whether to use transacted mode */ - private boolean transacted; + private Boolean transacted = false; /** * If true Camel will create a JmsTransactionManager if there is no * transactionManager injected when option transacted=true. */ - private boolean lazyCreateTransactionManager; + private Boolean lazyCreateTransactionManager = false; /** * The Spring transaction manager to use. */ @@ -332,7 +332,7 @@ public class JmsComponentConfiguration { * exception on startup. This ensures that Camel is not started with failed * connections. The JMS producers is tested as well. */ - private boolean testConnectionOnStartup; + private Boolean testConnectionOnStartup = false; /** * Whether to startup the JmsConsumer message listener asynchronously when * starting a route. For example if a JmsConsumer cannot get a connection to @@ -345,19 +345,19 @@ public class JmsComponentConfiguration { * will not be able to receive messages; You can then restart the route to * retry. */ - private boolean asyncStartListener; + private Boolean asyncStartListener = false; /** * Whether to stop the JmsConsumer message listener asynchronously when * stopping a route. */ - private boolean asyncStopListener; + private Boolean asyncStopListener = false; /** * When using mapJmsMessage=false Camel will create a new JMS message to * send to a new JMS destination if you touch the headers (get or set) * during the route. Set this option to true to force Camel to send the * original JMS message that was received. */ - private boolean forceSendOriginalMessage; + private Boolean forceSendOriginalMessage = false; /** * The timeout for waiting for a reply when using the InOut Exchange Pattern * (in milliseconds). The default is 20 seconds. You can include the header @@ -383,7 +383,7 @@ public class JmsComponentConfiguration { * enable this option on both the producer and consumer side so Camel knows * the payloads is an Exchange and not a regular payload. */ - private boolean transferExchange; + private Boolean transferExchange = false; /** * If enabled and you are using Request Reply messaging (InOut) and an * Exchange failed on the consumer side then the caused Exception will be @@ -396,7 +396,7 @@ public class JmsComponentConfiguration { * wrapped in an outer exception such as * org.apache.camel.RuntimeCamelException when returned to the producer. */ - private boolean transferException; + private Boolean transferException = false; /** * If enabled and you are using Request Reply messaging (InOut) and an * Exchange failed with a SOAP fault (not exception) on the consumer side @@ -407,7 +407,7 @@ public class JmsComponentConfiguration { * You may want to enable this when using Camel components that support * faults such as SOAP based such as cxf or spring-ws. */ - private boolean transferFault; + private Boolean transferFault = false; /** * Allows you to use your own implementation of the * org.springframework.jms.core.JmsOperations interface. Camel uses @@ -444,7 +444,7 @@ public class JmsComponentConfiguration { * explicitQosEnabled option by contrast will only use options set on the * endpoint and not values from the message header. */ - private boolean preserveMessageQos; + private Boolean preserveMessageQos = false; /** * Whether the JmsConsumer processes the Exchange asynchronously. If enabled * then the JmsConsumer may pickup the next message from the JMS queue while @@ -456,26 +456,26 @@ public class JmsComponentConfiguration { * asyncConsumer=true does not run asynchronously as transaction must be * executed synchronously (Camel 3.0 may support async transactions). */ - private boolean asyncConsumer; + private Boolean asyncConsumer = false; /** * Whether to allow sending messages with no body. If this option is false * and the message body is null then an JMSException is thrown. */ - private boolean allowNullBody; + private Boolean allowNullBody = false; /** * Only applicable when sending to JMS destination using InOnly (eg fire and * forget). Enabling this option will enrich the Camel Exchange with the * actual JMSMessageID that was used by the JMS client when the message was * sent to the JMS destination. */ - private boolean includeSentJMSMessageID; + private Boolean includeSentJMSMessageID = false; /** * Whether to include all JMSXxxx properties when mapping from JMS to Camel * Message. Setting this to true will include properties such as JMSXAppID * and JMSXUserID etc. Note: If you are using a custom headerFilterStrategy * then this option does not apply. */ - private boolean includeAllJMSXProperties; + private Boolean includeAllJMSXProperties = false; /** * Specifies what default TaskExecutor type to use in the * DefaultMessageListenerContainer for both consumer endpoints and the @@ -539,20 +539,20 @@ public void setConfiguration(JmsConfiguration configuration) { this.configuration = configuration; } - public boolean isAcceptMessagesWhileStopping() { + public Boolean getAcceptMessagesWhileStopping() { return acceptMessagesWhileStopping; } public void setAcceptMessagesWhileStopping( - boolean acceptMessagesWhileStopping) { + Boolean acceptMessagesWhileStopping) { this.acceptMessagesWhileStopping = acceptMessagesWhileStopping; } - public boolean isAllowReplyManagerQuickStop() { + public Boolean getAllowReplyManagerQuickStop() { return allowReplyManagerQuickStop; } - public void setAllowReplyManagerQuickStop(boolean allowReplyManagerQuickStop) { + public void setAllowReplyManagerQuickStop(Boolean allowReplyManagerQuickStop) { this.allowReplyManagerQuickStop = allowReplyManagerQuickStop; } @@ -564,11 +564,11 @@ public void setAcknowledgementMode(int acknowledgementMode) { this.acknowledgementMode = acknowledgementMode; } - public boolean isEagerLoadingOfProperties() { + public Boolean getEagerLoadingOfProperties() { return eagerLoadingOfProperties; } - public void setEagerLoadingOfProperties(boolean eagerLoadingOfProperties) { + public void setEagerLoadingOfProperties(Boolean eagerLoadingOfProperties) { this.eagerLoadingOfProperties = eagerLoadingOfProperties; } @@ -580,11 +580,11 @@ public void setAcknowledgementModeName(String acknowledgementModeName) { this.acknowledgementModeName = acknowledgementModeName; } - public boolean isAutoStartup() { + public Boolean getAutoStartup() { return autoStartup; } - public void setAutoStartup(boolean autoStartup) { + public void setAutoStartup(Boolean autoStartup) { this.autoStartup = autoStartup; } @@ -644,11 +644,11 @@ public void setConnectionFactory(ConnectionFactory connectionFactory) { this.connectionFactory = connectionFactory; } - public boolean isDeliveryPersistent() { + public Boolean getDeliveryPersistent() { return deliveryPersistent; } - public void setDeliveryPersistent(boolean deliveryPersistent) { + public void setDeliveryPersistent(Boolean deliveryPersistent) { this.deliveryPersistent = deliveryPersistent; } @@ -693,27 +693,27 @@ public void setErrorHandlerLoggingLevel( this.errorHandlerLoggingLevel = errorHandlerLoggingLevel; } - public boolean isErrorHandlerLogStackTrace() { + public Boolean getErrorHandlerLogStackTrace() { return errorHandlerLogStackTrace; } - public void setErrorHandlerLogStackTrace(boolean errorHandlerLogStackTrace) { + public void setErrorHandlerLogStackTrace(Boolean errorHandlerLogStackTrace) { this.errorHandlerLogStackTrace = errorHandlerLogStackTrace; } - public boolean isExplicitQosEnabled() { + public Boolean getExplicitQosEnabled() { return explicitQosEnabled; } - public void setExplicitQosEnabled(boolean explicitQosEnabled) { + public void setExplicitQosEnabled(Boolean explicitQosEnabled) { this.explicitQosEnabled = explicitQosEnabled; } - public boolean isExposeListenerSession() { + public Boolean getExposeListenerSession() { return exposeListenerSession; } - public void setExposeListenerSession(boolean exposeListenerSession) { + public void setExposeListenerSession(Boolean exposeListenerSession) { this.exposeListenerSession = exposeListenerSession; } @@ -775,44 +775,44 @@ public void setMessageConverter(MessageConverter messageConverter) { this.messageConverter = messageConverter; } - public boolean isMapJmsMessage() { + public Boolean getMapJmsMessage() { return mapJmsMessage; } - public void setMapJmsMessage(boolean mapJmsMessage) { + public void setMapJmsMessage(Boolean mapJmsMessage) { this.mapJmsMessage = mapJmsMessage; } - public boolean isMessageIdEnabled() { + public Boolean getMessageIdEnabled() { return messageIdEnabled; } - public void setMessageIdEnabled(boolean messageIdEnabled) { + public void setMessageIdEnabled(Boolean messageIdEnabled) { this.messageIdEnabled = messageIdEnabled; } - public boolean isMessageTimestampEnabled() { + public Boolean getMessageTimestampEnabled() { return messageTimestampEnabled; } - public void setMessageTimestampEnabled(boolean messageTimestampEnabled) { + public void setMessageTimestampEnabled(Boolean messageTimestampEnabled) { this.messageTimestampEnabled = messageTimestampEnabled; } - public boolean isAlwaysCopyMessage() { + public Boolean getAlwaysCopyMessage() { return alwaysCopyMessage; } - public void setAlwaysCopyMessage(boolean alwaysCopyMessage) { + public void setAlwaysCopyMessage(Boolean alwaysCopyMessage) { this.alwaysCopyMessage = alwaysCopyMessage; } - public boolean isUseMessageIDAsCorrelationID() { + public Boolean getUseMessageIDAsCorrelationID() { return useMessageIDAsCorrelationID; } public void setUseMessageIDAsCorrelationID( - boolean useMessageIDAsCorrelationID) { + Boolean useMessageIDAsCorrelationID) { this.useMessageIDAsCorrelationID = useMessageIDAsCorrelationID; } @@ -824,11 +824,11 @@ public void setPriority(int priority) { this.priority = priority; } - public boolean isPubSubNoLocal() { + public Boolean getPubSubNoLocal() { return pubSubNoLocal; } - public void setPubSubNoLocal(boolean pubSubNoLocal) { + public void setPubSubNoLocal(Boolean pubSubNoLocal) { this.pubSubNoLocal = pubSubNoLocal; } @@ -848,11 +848,11 @@ public void setRecoveryInterval(long recoveryInterval) { this.recoveryInterval = recoveryInterval; } - public boolean isSubscriptionDurable() { + public Boolean getSubscriptionDurable() { return subscriptionDurable; } - public void setSubscriptionDurable(boolean subscriptionDurable) { + public void setSubscriptionDurable(Boolean subscriptionDurable) { this.subscriptionDurable = subscriptionDurable; } @@ -872,20 +872,20 @@ public void setTimeToLive(long timeToLive) { this.timeToLive = timeToLive; } - public boolean isTransacted() { + public Boolean getTransacted() { return transacted; } - public void setTransacted(boolean transacted) { + public void setTransacted(Boolean transacted) { this.transacted = transacted; } - public boolean isLazyCreateTransactionManager() { + public Boolean getLazyCreateTransactionManager() { return lazyCreateTransactionManager; } public void setLazyCreateTransactionManager( - boolean lazyCreateTransactionManager) { + Boolean lazyCreateTransactionManager) { this.lazyCreateTransactionManager = lazyCreateTransactionManager; } @@ -914,35 +914,35 @@ public void setTransactionTimeout(int transactionTimeout) { this.transactionTimeout = transactionTimeout; } - public boolean isTestConnectionOnStartup() { + public Boolean getTestConnectionOnStartup() { return testConnectionOnStartup; } - public void setTestConnectionOnStartup(boolean testConnectionOnStartup) { + public void setTestConnectionOnStartup(Boolean testConnectionOnStartup) { this.testConnectionOnStartup = testConnectionOnStartup; } - public boolean isAsyncStartListener() { + public Boolean getAsyncStartListener() { return asyncStartListener; } - public void setAsyncStartListener(boolean asyncStartListener) { + public void setAsyncStartListener(Boolean asyncStartListener) { this.asyncStartListener = asyncStartListener; } - public boolean isAsyncStopListener() { + public Boolean getAsyncStopListener() { return asyncStopListener; } - public void setAsyncStopListener(boolean asyncStopListener) { + public void setAsyncStopListener(Boolean asyncStopListener) { this.asyncStopListener = asyncStopListener; } - public boolean isForceSendOriginalMessage() { + public Boolean getForceSendOriginalMessage() { return forceSendOriginalMessage; } - public void setForceSendOriginalMessage(boolean forceSendOriginalMessage) { + public void setForceSendOriginalMessage(Boolean forceSendOriginalMessage) { this.forceSendOriginalMessage = forceSendOriginalMessage; } @@ -963,27 +963,27 @@ public void setRequestTimeoutCheckerInterval( this.requestTimeoutCheckerInterval = requestTimeoutCheckerInterval; } - public boolean isTransferExchange() { + public Boolean getTransferExchange() { return transferExchange; } - public void setTransferExchange(boolean transferExchange) { + public void setTransferExchange(Boolean transferExchange) { this.transferExchange = transferExchange; } - public boolean isTransferException() { + public Boolean getTransferException() { return transferException; } - public void setTransferException(boolean transferException) { + public void setTransferException(Boolean transferException) { this.transferException = transferException; } - public boolean isTransferFault() { + public Boolean getTransferFault() { return transferFault; } - public void setTransferFault(boolean transferFault) { + public void setTransferFault(Boolean transferFault) { this.transferFault = transferFault; } @@ -1011,43 +1011,43 @@ public void setReplyToType(ReplyToType replyToType) { this.replyToType = replyToType; } - public boolean isPreserveMessageQos() { + public Boolean getPreserveMessageQos() { return preserveMessageQos; } - public void setPreserveMessageQos(boolean preserveMessageQos) { + public void setPreserveMessageQos(Boolean preserveMessageQos) { this.preserveMessageQos = preserveMessageQos; } - public boolean isAsyncConsumer() { + public Boolean getAsyncConsumer() { return asyncConsumer; } - public void setAsyncConsumer(boolean asyncConsumer) { + public void setAsyncConsumer(Boolean asyncConsumer) { this.asyncConsumer = asyncConsumer; } - public boolean isAllowNullBody() { + public Boolean getAllowNullBody() { return allowNullBody; } - public void setAllowNullBody(boolean allowNullBody) { + public void setAllowNullBody(Boolean allowNullBody) { this.allowNullBody = allowNullBody; } - public boolean isIncludeSentJMSMessageID() { + public Boolean getIncludeSentJMSMessageID() { return includeSentJMSMessageID; } - public void setIncludeSentJMSMessageID(boolean includeSentJMSMessageID) { + public void setIncludeSentJMSMessageID(Boolean includeSentJMSMessageID) { this.includeSentJMSMessageID = includeSentJMSMessageID; } - public boolean isIncludeAllJMSXProperties() { + public Boolean getIncludeAllJMSXProperties() { return includeAllJMSXProperties; } - public void setIncludeAllJMSXProperties(boolean includeAllJMSXProperties) { + public void setIncludeAllJMSXProperties(Boolean includeAllJMSXProperties) { this.includeAllJMSXProperties = includeAllJMSXProperties; } diff --git a/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/springboot/JpaComponentConfiguration.java b/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/springboot/JpaComponentConfiguration.java index 44050ce3a2e9c..246ecdbb7dedd 100644 --- a/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/springboot/JpaComponentConfiguration.java +++ b/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/springboot/JpaComponentConfiguration.java @@ -45,13 +45,13 @@ public class JpaComponentConfiguration { * also be set globally on the JpaComponent instead of having to set it on * all endpoints. */ - private boolean joinTransaction; + private Boolean joinTransaction = false; /** * Whether to use Spring's SharedEntityManager for the consumer/producer. * Note in most cases joinTransaction should be set to false as this is not * an EXTENDED EntityManager. */ - private boolean sharedEntityManager; + private Boolean sharedEntityManager = false; public EntityManagerFactory getEntityManagerFactory() { return entityManagerFactory; @@ -71,19 +71,19 @@ public void setTransactionManager( this.transactionManager = transactionManager; } - public boolean isJoinTransaction() { + public Boolean getJoinTransaction() { return joinTransaction; } - public void setJoinTransaction(boolean joinTransaction) { + public void setJoinTransaction(Boolean joinTransaction) { this.joinTransaction = joinTransaction; } - public boolean isSharedEntityManager() { + public Boolean getSharedEntityManager() { return sharedEntityManager; } - public void setSharedEntityManager(boolean sharedEntityManager) { + public void setSharedEntityManager(Boolean sharedEntityManager) { this.sharedEntityManager = sharedEntityManager; } } \ No newline at end of file diff --git a/components/camel-jsch/src/main/java/org/apache/camel/component/scp/springboot/ScpComponentConfiguration.java b/components/camel-jsch/src/main/java/org/apache/camel/component/scp/springboot/ScpComponentConfiguration.java index 4fa0f5f9c0912..f843bdc421a6d 100644 --- a/components/camel-jsch/src/main/java/org/apache/camel/component/scp/springboot/ScpComponentConfiguration.java +++ b/components/camel-jsch/src/main/java/org/apache/camel/component/scp/springboot/ScpComponentConfiguration.java @@ -31,13 +31,13 @@ public class ScpComponentConfiguration { * down to DEBUG logging by default. But setting this option to true turns * on the verbose logging again. */ - private boolean verboseLogging; + private Boolean verboseLogging = false; - public boolean isVerboseLogging() { + public Boolean getVerboseLogging() { return verboseLogging; } - public void setVerboseLogging(boolean verboseLogging) { + public void setVerboseLogging(Boolean verboseLogging) { this.verboseLogging = verboseLogging; } } \ No newline at end of file diff --git a/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.java b/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.java index 8aa14e5029fe9..14eb87b569a20 100644 --- a/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.java +++ b/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.java @@ -29,7 +29,7 @@ public class LZFDataFormatConfiguration { /** * Enable encoding (compress) using multiple processing cores. */ - private Boolean usingParallelCompression; + private Boolean usingParallelCompression = false; public Boolean getUsingParallelCompression() { return usingParallelCompression; diff --git a/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java b/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java index d2af30930d0e9..a881a5dad5530 100644 --- a/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java +++ b/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java @@ -34,12 +34,12 @@ public class MimeMultipartDataFormatConfiguration { * Defines whether a message without attachment is also marshaled into a * MIME Multipart (with only one body part). Default is false. */ - private Boolean multipartWithoutAttachment; + private Boolean multipartWithoutAttachment = false; /** * Defines whether the MIME-Multipart headers are part of the message body * (true) or are set as Camel headers (false). Default is false. */ - private Boolean headersInline; + private Boolean headersInline = false; /** * A regex that defines which Camel headers are also included as MIME * headers into the MIME multipart. This will only work if headersInline is @@ -50,7 +50,7 @@ public class MimeMultipartDataFormatConfiguration { * Defines whether the content of binary parts in the MIME multipart is * binary (true) or Base-64 encoded (false) Default is false. */ - private Boolean binaryContent; + private Boolean binaryContent = false; public String getMultipartSubType() { return multipartSubType; diff --git a/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/springboot/QuartzComponentConfiguration.java b/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/springboot/QuartzComponentConfiguration.java index ad2828dec16e2..5c63e341fb405 100644 --- a/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/springboot/QuartzComponentConfiguration.java +++ b/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/springboot/QuartzComponentConfiguration.java @@ -54,12 +54,12 @@ public class QuartzComponentConfiguration { * Whether or not the scheduler should be auto started. This options is * default true */ - private boolean autoStartScheduler; + private Boolean autoStartScheduler = false; /** * Whether to enable Quartz JMX which allows to manage the Quartz scheduler * from JMX. This options is default true */ - private boolean enableJmx; + private Boolean enableJmx = false; public SchedulerFactory getFactory() { return factory; @@ -101,19 +101,19 @@ public void setStartDelayedSeconds(int startDelayedSeconds) { this.startDelayedSeconds = startDelayedSeconds; } - public boolean isAutoStartScheduler() { + public Boolean getAutoStartScheduler() { return autoStartScheduler; } - public void setAutoStartScheduler(boolean autoStartScheduler) { + public void setAutoStartScheduler(Boolean autoStartScheduler) { this.autoStartScheduler = autoStartScheduler; } - public boolean isEnableJmx() { + public Boolean getEnableJmx() { return enableJmx; } - public void setEnableJmx(boolean enableJmx) { + public void setEnableJmx(Boolean enableJmx) { this.enableJmx = enableJmx; } } \ No newline at end of file diff --git a/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/springboot/QuartzComponentConfiguration.java b/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/springboot/QuartzComponentConfiguration.java index bf1836b28cd14..3f37ca4e62d5e 100644 --- a/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/springboot/QuartzComponentConfiguration.java +++ b/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/springboot/QuartzComponentConfiguration.java @@ -33,7 +33,7 @@ public class QuartzComponentConfiguration { * Whether or not the scheduler should be auto started. This options is * default true */ - private boolean autoStartScheduler; + private Boolean autoStartScheduler = false; /** * Seconds to wait before starting the quartz scheduler. */ @@ -42,12 +42,12 @@ public class QuartzComponentConfiguration { * Whether to prefix the quartz job with the endpoint id. This option is * default false. */ - private boolean prefixJobNameWithEndpointId; + private Boolean prefixJobNameWithEndpointId = false; /** * Whether to enable Quartz JMX which allows to manage the Quartz scheduler * from JMX. This options is default true */ - private boolean enableJmx; + private Boolean enableJmx = false; /** * Properties to configure the Quartz scheduler. */ @@ -63,7 +63,7 @@ public class QuartzComponentConfiguration { * to false to reuse Quartz scheduler instances between multiple * CamelContext's. */ - private boolean prefixInstanceName; + private Boolean prefixInstanceName = false; /** * To use the custom SchedulerFactory which is used to create the Scheduler. */ @@ -74,11 +74,11 @@ public class QuartzComponentConfiguration { */ private Scheduler scheduler; - public boolean isAutoStartScheduler() { + public Boolean getAutoStartScheduler() { return autoStartScheduler; } - public void setAutoStartScheduler(boolean autoStartScheduler) { + public void setAutoStartScheduler(Boolean autoStartScheduler) { this.autoStartScheduler = autoStartScheduler; } @@ -90,20 +90,20 @@ public void setStartDelayedSeconds(int startDelayedSeconds) { this.startDelayedSeconds = startDelayedSeconds; } - public boolean isPrefixJobNameWithEndpointId() { + public Boolean getPrefixJobNameWithEndpointId() { return prefixJobNameWithEndpointId; } public void setPrefixJobNameWithEndpointId( - boolean prefixJobNameWithEndpointId) { + Boolean prefixJobNameWithEndpointId) { this.prefixJobNameWithEndpointId = prefixJobNameWithEndpointId; } - public boolean isEnableJmx() { + public Boolean getEnableJmx() { return enableJmx; } - public void setEnableJmx(boolean enableJmx) { + public void setEnableJmx(Boolean enableJmx) { this.enableJmx = enableJmx; } @@ -123,11 +123,11 @@ public void setPropertiesFile(String propertiesFile) { this.propertiesFile = propertiesFile; } - public boolean isPrefixInstanceName() { + public Boolean getPrefixInstanceName() { return prefixInstanceName; } - public void setPrefixInstanceName(boolean prefixInstanceName) { + public void setPrefixInstanceName(Boolean prefixInstanceName) { this.prefixInstanceName = prefixInstanceName; } diff --git a/components/camel-quickfix/src/main/java/org/apache/camel/component/quickfixj/springboot/QuickfixjComponentConfiguration.java b/components/camel-quickfix/src/main/java/org/apache/camel/component/quickfixj/springboot/QuickfixjComponentConfiguration.java index e05070f452a5f..ea7208898e772 100644 --- a/components/camel-quickfix/src/main/java/org/apache/camel/component/quickfixj/springboot/QuickfixjComponentConfiguration.java +++ b/components/camel-quickfix/src/main/java/org/apache/camel/component/quickfixj/springboot/QuickfixjComponentConfiguration.java @@ -53,7 +53,7 @@ public class QuickfixjComponentConfiguration { * If set to true the engines will be created and started when needed (when * first message is send) */ - private boolean lazyCreateEngines; + private Boolean lazyCreateEngines = false; public MessageFactory getMessageFactory() { return messageFactory; @@ -88,11 +88,11 @@ public void setConfigurations( this.configurations = configurations; } - public boolean isLazyCreateEngines() { + public Boolean getLazyCreateEngines() { return lazyCreateEngines; } - public void setLazyCreateEngines(boolean lazyCreateEngines) { + public void setLazyCreateEngines(Boolean lazyCreateEngines) { this.lazyCreateEngines = lazyCreateEngines; } } \ No newline at end of file diff --git a/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/springboot/RestletComponentConfiguration.java b/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/springboot/RestletComponentConfiguration.java index 7c581dba0b61a..cb65d97171f7f 100644 --- a/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/springboot/RestletComponentConfiguration.java +++ b/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/springboot/RestletComponentConfiguration.java @@ -110,7 +110,7 @@ public class RestletComponentConfiguration { * request input stream into a stream cache and put it into message body if * this option is false to support reading the stream multiple times. */ - private boolean disableStreamCache; + private Boolean disableStreamCache = false; /** * To configure the port number for the restlet consumer routes. This allows * to configure this once to reuse the same port for these consumers. @@ -253,11 +253,11 @@ public void setMaxQueued(Integer maxQueued) { this.maxQueued = maxQueued; } - public boolean isDisableStreamCache() { + public Boolean getDisableStreamCache() { return disableStreamCache; } - public void setDisableStreamCache(boolean disableStreamCache) { + public void setDisableStreamCache(Boolean disableStreamCache) { this.disableStreamCache = disableStreamCache; } diff --git a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/springboot/SalesforceComponentConfiguration.java b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/springboot/SalesforceComponentConfiguration.java index 37c73eae2ab5e..1b88a01511417 100644 --- a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/springboot/SalesforceComponentConfiguration.java +++ b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/springboot/SalesforceComponentConfiguration.java @@ -67,11 +67,11 @@ public class SalesforceComponentConfiguration { /** * Enable for Socks4 proxy false by default */ - private boolean isHttpProxySocks4; + private Boolean isHttpProxySocks4 = false; /** * Enable for TLS connections true by default */ - private boolean isHttpProxySecure; + private Boolean isHttpProxySecure = false; /** * HTTP proxy included addresses */ @@ -91,7 +91,7 @@ public class SalesforceComponentConfiguration { /** * Use HTTP proxy Digest authentication false by default */ - private boolean httpProxyUseDigestAuth; + private Boolean httpProxyUseDigestAuth = false; /** * Package names to scan for DTO classes (multiple packages can be separated * by comma). @@ -163,19 +163,19 @@ public void setHttpProxyPassword(String httpProxyPassword) { this.httpProxyPassword = httpProxyPassword; } - public boolean isIsHttpProxySocks4() { + public Boolean getIsHttpProxySocks4() { return isHttpProxySocks4; } - public void setIsHttpProxySocks4(boolean isHttpProxySocks4) { + public void setIsHttpProxySocks4(Boolean isHttpProxySocks4) { this.isHttpProxySocks4 = isHttpProxySocks4; } - public boolean isIsHttpProxySecure() { + public Boolean getIsHttpProxySecure() { return isHttpProxySecure; } - public void setIsHttpProxySecure(boolean isHttpProxySecure) { + public void setIsHttpProxySecure(Boolean isHttpProxySecure) { this.isHttpProxySecure = isHttpProxySecure; } @@ -213,11 +213,11 @@ public void setHttpProxyRealm(String httpProxyRealm) { this.httpProxyRealm = httpProxyRealm; } - public boolean isHttpProxyUseDigestAuth() { + public Boolean getHttpProxyUseDigestAuth() { return httpProxyUseDigestAuth; } - public void setHttpProxyUseDigestAuth(boolean httpProxyUseDigestAuth) { + public void setHttpProxyUseDigestAuth(Boolean httpProxyUseDigestAuth) { this.httpProxyUseDigestAuth = httpProxyUseDigestAuth; } diff --git a/components/camel-servlet/src/main/java/org/apache/camel/component/servlet/springboot/ServletComponentConfiguration.java b/components/camel-servlet/src/main/java/org/apache/camel/component/servlet/springboot/ServletComponentConfiguration.java index 56c156c93ee9a..be38061093876 100644 --- a/components/camel-servlet/src/main/java/org/apache/camel/component/servlet/springboot/ServletComponentConfiguration.java +++ b/components/camel-servlet/src/main/java/org/apache/camel/component/servlet/springboot/ServletComponentConfiguration.java @@ -44,7 +44,7 @@ public class ServletComponentConfiguration { * Exchange. This is turn off by default as this may require servet specific * configuration to enable this when using Servlet's. */ - private boolean attachmentMultipartBinding; + private Boolean attachmentMultipartBinding = false; /** * To use a custom HttpBinding to control the mapping between Camel message * and HttpClient. @@ -61,7 +61,7 @@ public class ServletComponentConfiguration { * the incoming data from the request to Java and that can be a potential * security risk. */ - private boolean allowJavaSerializedObject; + private Boolean allowJavaSerializedObject = false; /** * To use a custom HeaderFilterStrategy to filter header to and from Camel * message. @@ -84,11 +84,11 @@ public void setHttpRegistry(HttpRegistry httpRegistry) { this.httpRegistry = httpRegistry; } - public boolean isAttachmentMultipartBinding() { + public Boolean getAttachmentMultipartBinding() { return attachmentMultipartBinding; } - public void setAttachmentMultipartBinding(boolean attachmentMultipartBinding) { + public void setAttachmentMultipartBinding(Boolean attachmentMultipartBinding) { this.attachmentMultipartBinding = attachmentMultipartBinding; } @@ -108,11 +108,11 @@ public void setHttpConfiguration(HttpConfiguration httpConfiguration) { this.httpConfiguration = httpConfiguration; } - public boolean isAllowJavaSerializedObject() { + public Boolean getAllowJavaSerializedObject() { return allowJavaSerializedObject; } - public void setAllowJavaSerializedObject(boolean allowJavaSerializedObject) { + public void setAllowJavaSerializedObject(Boolean allowJavaSerializedObject) { this.allowJavaSerializedObject = allowJavaSerializedObject; } diff --git a/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java b/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java index 812ab2d1a1078..613f9891d5d25 100644 --- a/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java +++ b/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java @@ -54,12 +54,12 @@ public class SnakeYAMLDataFormatConfiguration { /** * Use ApplicationContextClassLoader as custom ClassLoader */ - private Boolean useApplicationContextClassLoader; + private Boolean useApplicationContextClassLoader = true; /** * Force the emitter to produce a pretty YAML document when using the flow * style. */ - private Boolean prettyFlow; + private Boolean prettyFlow = false; public YAMLLibrary getLibrary() { return library; diff --git a/components/camel-sql/src/main/java/org/apache/camel/component/sql/springboot/SqlComponentConfiguration.java b/components/camel-sql/src/main/java/org/apache/camel/component/sql/springboot/SqlComponentConfiguration.java index f8d5ea6252ad4..42e07456e1289 100644 --- a/components/camel-sql/src/main/java/org/apache/camel/component/sql/springboot/SqlComponentConfiguration.java +++ b/components/camel-sql/src/main/java/org/apache/camel/component/sql/springboot/SqlComponentConfiguration.java @@ -35,7 +35,7 @@ public class SqlComponentConfiguration { * Sets whether to use placeholder and replace all placeholder characters * with sign in the SQL queries. This option is default true */ - private boolean usePlaceholder; + private Boolean usePlaceholder = true; public DataSource getDataSource() { return dataSource; @@ -45,11 +45,11 @@ public void setDataSource(DataSource dataSource) { this.dataSource = dataSource; } - public boolean isUsePlaceholder() { + public Boolean getUsePlaceholder() { return usePlaceholder; } - public void setUsePlaceholder(boolean usePlaceholder) { + public void setUsePlaceholder(Boolean usePlaceholder) { this.usePlaceholder = usePlaceholder; } } \ No newline at end of file diff --git a/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java b/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java index 313b0081d4a80..3b879041f9924 100644 --- a/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java +++ b/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java @@ -31,7 +31,7 @@ public class TarFileDataFormatConfiguration { * allows to work with the splitter EIP to split the data using an iterator * in a streaming mode. */ - private Boolean usingIterator; + private Boolean usingIterator = false; public Boolean getUsingIterator() { return usingIterator; diff --git a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatConfiguration.java b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatConfiguration.java index 2711a90b3ed54..8d5545d954e05 100644 --- a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatConfiguration.java +++ b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatConfiguration.java @@ -29,7 +29,7 @@ public class UniVocityCsvDataFormatConfiguration { /** * Whether or not all values must be quoted when writing them. */ - private Boolean quoteAllFields; + private Boolean quoteAllFields = false; /** * The quote symbol. */ @@ -49,28 +49,28 @@ public class UniVocityCsvDataFormatConfiguration { /** * Whether or not the empty lines must be ignored. The default value is true */ - private Boolean skipEmptyLines; + private Boolean skipEmptyLines = true; /** * Whether or not the trailing white spaces must ignored. The default value * is true */ - private Boolean ignoreTrailingWhitespaces; + private Boolean ignoreTrailingWhitespaces = true; /** * Whether or not the leading white spaces must be ignored. The default * value is true */ - private Boolean ignoreLeadingWhitespaces; + private Boolean ignoreLeadingWhitespaces = true; /** * Whether or not the headers are disabled. When defined this option * explicitly sets the headers as null which indicates that there is no * header. The default value is false */ - private Boolean headersDisabled; + private Boolean headersDisabled = false; /** * Whether or not the header must be read in the first line of the test * document The default value is false */ - private Boolean headerExtractionEnabled; + private Boolean headerExtractionEnabled = false; /** * The maximum number of record to read. */ @@ -97,13 +97,13 @@ public class UniVocityCsvDataFormatConfiguration { * on the fly or if all the lines must be read at one. The default value is * false */ - private Boolean lazyLoad; + private Boolean lazyLoad = false; /** * Whether the unmarshalling should produce maps for the lines values * instead of lists. It requires to have header (either defined or * collected). The default value is false */ - private Boolean asMap; + private Boolean asMap = false; public Boolean getQuoteAllFields() { return quoteAllFields; diff --git a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatConfiguration.java b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatConfiguration.java index c7028aad234af..14ac12427bc4a 100644 --- a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatConfiguration.java +++ b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatConfiguration.java @@ -30,11 +30,11 @@ public class UniVocityFixedWidthDataFormatConfiguration { * Whether or not the trailing characters until new line must be ignored. * The default value is false */ - private Boolean skipTrailingCharsUntilNewline; + private Boolean skipTrailingCharsUntilNewline = false; /** * Whether or not the record ends on new line. The default value is false */ - private Boolean recordEndsOnNewline; + private Boolean recordEndsOnNewline = false; /** * The padding character. The default value is a space */ @@ -46,28 +46,28 @@ public class UniVocityFixedWidthDataFormatConfiguration { /** * Whether or not the empty lines must be ignored. The default value is true */ - private Boolean skipEmptyLines; + private Boolean skipEmptyLines = true; /** * Whether or not the trailing white spaces must ignored. The default value * is true */ - private Boolean ignoreTrailingWhitespaces; + private Boolean ignoreTrailingWhitespaces = true; /** * Whether or not the leading white spaces must be ignored. The default * value is true */ - private Boolean ignoreLeadingWhitespaces; + private Boolean ignoreLeadingWhitespaces = true; /** * Whether or not the headers are disabled. When defined this option * explicitly sets the headers as null which indicates that there is no * header. The default value is false */ - private Boolean headersDisabled; + private Boolean headersDisabled = false; /** * Whether or not the header must be read in the first line of the test * document The default value is false */ - private Boolean headerExtractionEnabled; + private Boolean headerExtractionEnabled = false; /** * The maximum number of record to read. */ @@ -94,13 +94,13 @@ public class UniVocityFixedWidthDataFormatConfiguration { * on the fly or if all the lines must be read at one. The default value is * false */ - private Boolean lazyLoad; + private Boolean lazyLoad = false; /** * Whether the unmarshalling should produce maps for the lines values * instead of lists. It requires to have header (either defined or * collected). The default value is false */ - private Boolean asMap; + private Boolean asMap = false; public Boolean getSkipTrailingCharsUntilNewline() { return skipTrailingCharsUntilNewline; diff --git a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityTsvDataFormatConfiguration.java b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityTsvDataFormatConfiguration.java index d33838c318750..7c9a66b2688dc 100644 --- a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityTsvDataFormatConfiguration.java +++ b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityTsvDataFormatConfiguration.java @@ -37,28 +37,28 @@ public class UniVocityTsvDataFormatConfiguration { /** * Whether or not the empty lines must be ignored. The default value is true */ - private Boolean skipEmptyLines; + private Boolean skipEmptyLines = true; /** * Whether or not the trailing white spaces must ignored. The default value * is true */ - private Boolean ignoreTrailingWhitespaces; + private Boolean ignoreTrailingWhitespaces = true; /** * Whether or not the leading white spaces must be ignored. The default * value is true */ - private Boolean ignoreLeadingWhitespaces; + private Boolean ignoreLeadingWhitespaces = true; /** * Whether or not the headers are disabled. When defined this option * explicitly sets the headers as null which indicates that there is no * header. The default value is false */ - private Boolean headersDisabled; + private Boolean headersDisabled = false; /** * Whether or not the header must be read in the first line of the test * document The default value is false */ - private Boolean headerExtractionEnabled; + private Boolean headerExtractionEnabled = false; /** * The maximum number of record to read. */ @@ -85,13 +85,13 @@ public class UniVocityTsvDataFormatConfiguration { * on the fly or if all the lines must be read at one. The default value is * false */ - private Boolean lazyLoad; + private Boolean lazyLoad = false; /** * Whether the unmarshalling should produce maps for the lines values * instead of lists. It requires to have header (either defined or * collected). The default value is false */ - private Boolean asMap; + private Boolean asMap = false; public String getEscapeChar() { return escapeChar; diff --git a/components/camel-websocket/src/main/java/org/apache/camel/component/websocket/springboot/WebsocketComponentConfiguration.java b/components/camel-websocket/src/main/java/org/apache/camel/component/websocket/springboot/WebsocketComponentConfiguration.java index 76a2821a363f4..a40d156279bef 100644 --- a/components/camel-websocket/src/main/java/org/apache/camel/component/websocket/springboot/WebsocketComponentConfiguration.java +++ b/components/camel-websocket/src/main/java/org/apache/camel/component/websocket/springboot/WebsocketComponentConfiguration.java @@ -64,7 +64,7 @@ public class WebsocketComponentConfiguration { * If this option is true Jetty JMX support will be enabled for this * endpoint. See Jetty JMX support for more details. */ - private boolean enableJmx; + private Boolean enableJmx = false; /** * To set a value for minimum number of threads in server thread pool. * MaxThreads/minThreads or threadPool fields are required due to switch to @@ -141,11 +141,11 @@ public void setSslKeystore(String sslKeystore) { this.sslKeystore = sslKeystore; } - public boolean isEnableJmx() { + public Boolean getEnableJmx() { return enableJmx; } - public void setEnableJmx(boolean enableJmx) { + public void setEnableJmx(Boolean enableJmx) { this.enableJmx = enableJmx; } diff --git a/components/camel-xmljson/src/main/java/org/apache/camel/dataformat/xmljson/springboot/XmlJsonDataFormatConfiguration.java b/components/camel-xmljson/src/main/java/org/apache/camel/dataformat/xmljson/springboot/XmlJsonDataFormatConfiguration.java index 868ed9e309c65..b656df6ad318e 100644 --- a/components/camel-xmljson/src/main/java/org/apache/camel/dataformat/xmljson/springboot/XmlJsonDataFormatConfiguration.java +++ b/components/camel-xmljson/src/main/java/org/apache/camel/dataformat/xmljson/springboot/XmlJsonDataFormatConfiguration.java @@ -49,13 +49,13 @@ public class XmlJsonDataFormatConfiguration { * (XML to JSon conversion). If disabled XML string 12 turns into 'x: '1' * 'y': '2' . Otherwise it turns into 'a': 'x: '1' 'y': '2' . */ - private Boolean forceTopLevelObject; + private Boolean forceTopLevelObject = false; /** * Flag to be tolerant to incomplete namespace prefixes. Used for * unmarshalling (JSON to XML conversion). In most cases json-lib * automatically changes this flag at runtime to match the processing. */ - private Boolean namespaceLenient; + private Boolean namespaceLenient = false; /** * Specifies the name of the top-level element. Used for unmarshalling (JSON * to XML conversion). If not set json-lib will use arrayName or objectName @@ -70,24 +70,24 @@ public class XmlJsonDataFormatConfiguration { * text values or disregarded. Used for marshalling (XML to JSon * conversion). */ - private Boolean skipWhitespace; + private Boolean skipWhitespace = false; /** * Determines whether leading and trailing white spaces will be omitted from * String values. Used for marshalling (XML to JSon conversion). */ - private Boolean trimSpaces; + private Boolean trimSpaces = false; /** * Signals whether namespaces should be ignored. By default they will be * added to the JSON output using xmlns elements. Used for marshalling (XML * to JSon conversion). */ - private Boolean skipNamespaces; + private Boolean skipNamespaces = false; /** * Removes the namespace prefixes from XML qualified elements so that the * resulting JSON string does not contain them. Used for marshalling (XML to * JSon conversion). */ - private Boolean removeNamespacePrefixes; + private Boolean removeNamespacePrefixes = false; /** * With expandable properties JSON array elements are converted to XML as a * sequence of repetitive XML elements with the local name equal to the JSON diff --git a/components/camel-xmlrpc/src/main/java/org/apache/camel/dataformat/xmlrpc/springboot/XmlRpcDataFormatConfiguration.java b/components/camel-xmlrpc/src/main/java/org/apache/camel/dataformat/xmlrpc/springboot/XmlRpcDataFormatConfiguration.java index 6a97071c707e4..40ee576878512 100644 --- a/components/camel-xmlrpc/src/main/java/org/apache/camel/dataformat/xmlrpc/springboot/XmlRpcDataFormatConfiguration.java +++ b/components/camel-xmlrpc/src/main/java/org/apache/camel/dataformat/xmlrpc/springboot/XmlRpcDataFormatConfiguration.java @@ -29,7 +29,7 @@ public class XmlRpcDataFormatConfiguration { /** * Whether to unmarshal request or response Is by default false */ - private Boolean request; + private Boolean request = false; public Boolean getRequest() { return request; diff --git a/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatConfiguration.java b/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatConfiguration.java index 6eca1fb70d220..76b3bbbca97de 100644 --- a/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatConfiguration.java +++ b/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatConfiguration.java @@ -54,7 +54,7 @@ public class XMLSecurityDataFormatConfiguration { * the contents of the XML Element false = Element Level true = Element * Content Level */ - private Boolean secureTagContents; + private Boolean secureTagContents = false; /** * The cipher algorithm to be used for encryption/decryption of the * asymmetric key. The available choices are: XMLCipher.RSA_v1dot5 @@ -96,7 +96,7 @@ public class XMLSecurityDataFormatConfiguration { * Whether to add the public key used to encrypt the session key as a * KeyValue in the EncryptedKey structure or not. */ - private Boolean addKeyValueForEncryptedKey; + private Boolean addKeyValueForEncryptedKey = true; public String getXmlCipherAlgorithm() { return xmlCipherAlgorithm; diff --git a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java index 31072462af046..ac5cb6c408127 100644 --- a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java +++ b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java @@ -35,7 +35,7 @@ public class JsonDataFormatConfiguration { /** * To enable pretty printing output nicely formatted. Is by default false. */ - private Boolean prettyPrint; + private Boolean prettyPrint = false; /** * Which json library to use such. Is by default xstream */ @@ -60,7 +60,7 @@ public class JsonDataFormatConfiguration { * Used for JMS users to allow the JMSType header from the JMS spec to * specify a FQN classname to use to unmarshal to. */ - private Boolean allowJmsType; + private Boolean allowJmsType = false; /** * Refers to a custom collection type to lookup in the registry to use. This * option should rarely be used but allows to use different collection types @@ -70,12 +70,12 @@ public class JsonDataFormatConfiguration { /** * To unarmshal to a List of Map or a List of Pojo. */ - private Boolean useList; + private Boolean useList = false; /** * Whether to enable the JAXB annotations module when using jackson. When * enabled then JAXB annotations can be used by Jackson. */ - private Boolean enableJaxbAnnotationModule; + private Boolean enableJaxbAnnotationModule = false; /** * To use custom Jackson modules com.fasterxml.jackson.databind.Module * specified as a String with FQN class names. Multiple classes can be diff --git a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatConfiguration.java b/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatConfiguration.java index b12703fc647f4..630e2bb4bff1b 100644 --- a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatConfiguration.java +++ b/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatConfiguration.java @@ -31,7 +31,7 @@ public class ZipFileDataFormatConfiguration { * allows to work with the splitter EIP to split the data using an iterator * in a streaming mode. */ - private Boolean usingIterator; + private Boolean usingIterator = false; public Boolean getUsingIterator() { return usingIterator;