http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatAutoConfiguration.java b/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatAutoConfiguration.java deleted file mode 100644 index 9b82553..0000000 --- a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatAutoConfiguration.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.converter.jaxb.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.converter.jaxb.JaxbDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(JaxbDataFormatConfiguration.class) -public class JaxbDataFormatAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(JaxbDataFormat.class) - public JaxbDataFormat configureJaxbDataFormat(CamelContext camelContext, - JaxbDataFormatConfiguration configuration) throws Exception { - JaxbDataFormat dataformat = new JaxbDataFormat(); - if (dataformat instanceof CamelContextAware) { - ((CamelContextAware) dataformat).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), dataformat, parameters); - return dataformat; - } -} \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java ---------------------------------------------------------------------- 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 deleted file mode 100644 index ef5de07..0000000 --- a/components/camel-jaxb/src/main/java/org/apache/camel/converter/jaxb/springboot/JaxbDataFormatConfiguration.java +++ /dev/null @@ -1,227 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.converter.jaxb.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel JAXB support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.jaxb") -public class JaxbDataFormatConfiguration { - - /** - * Package name where your JAXB classes are located. - */ - private String contextPath; - /** - * To validate against an existing schema. Your can use the prefix - * classpath: file: or http: to specify how the resource should by resolved. - * You can separate multiple schema files by using the '' character. - */ - private String schema; - /** - * To enable pretty printing output nicely formatted. Is by default false. - */ - private Boolean prettyPrint; - /** - * 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; - /** - * Whether to ignore JAXBElement elements - only needed to be set to false - * in very special use-cases. - */ - private Boolean ignoreJAXBElement; - /** - * 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; - /** - * To ignore non xml characheters and replace them with an empty space. - */ - private Boolean filterNonXmlChars; - /** - * To overrule and use a specific encoding - */ - private String encoding; - /** - * To turn on marshalling XML fragment trees. By default JAXB looks for - * XmlRootElement annotation on given class to operate on whole XML tree. - * This is useful but not always - sometimes generated code does not have - * XmlRootElement annotation sometimes you need unmarshall only part of - * tree. In that case you can use partial unmarshalling. To enable this - * behaviours you need set property partClass. Camel will pass this class to - * JAXB's unmarshaler. - */ - private Boolean fragment; - /** - * Name of class used for fragment parsing. See more details at the fragment - * option. - */ - private String partClass; - /** - * XML namespace to use for fragment parsing. See more details at the - * fragment option. - */ - private String partNamespace; - /** - * When marshalling using JAXB or SOAP then the JAXB implementation will - * automatic assign namespace prefixes such as ns2 ns3 ns4 etc. To control - * this mapping Camel allows you to refer to a map which contains the - * desired mapping. - */ - private String namespacePrefixRef; - /** - * To use a custom xml stream writer. - */ - private String xmlStreamWriterWrapper; - /** - * To define the location of the schema - */ - private String schemaLocation; - /** - * To define the location of the namespaceless schema - */ - private String noNamespaceSchemaLocation; - - public String getContextPath() { - return contextPath; - } - - public void setContextPath(String contextPath) { - this.contextPath = contextPath; - } - - public String getSchema() { - return schema; - } - - public void setSchema(String schema) { - this.schema = schema; - } - - public Boolean getPrettyPrint() { - return prettyPrint; - } - - public void setPrettyPrint(Boolean prettyPrint) { - this.prettyPrint = prettyPrint; - } - - public Boolean getObjectFactory() { - return objectFactory; - } - - public void setObjectFactory(Boolean objectFactory) { - this.objectFactory = objectFactory; - } - - public Boolean getIgnoreJAXBElement() { - return ignoreJAXBElement; - } - - public void setIgnoreJAXBElement(Boolean ignoreJAXBElement) { - this.ignoreJAXBElement = ignoreJAXBElement; - } - - public Boolean getMustBeJAXBElement() { - return mustBeJAXBElement; - } - - public void setMustBeJAXBElement(Boolean mustBeJAXBElement) { - this.mustBeJAXBElement = mustBeJAXBElement; - } - - public Boolean getFilterNonXmlChars() { - return filterNonXmlChars; - } - - public void setFilterNonXmlChars(Boolean filterNonXmlChars) { - this.filterNonXmlChars = filterNonXmlChars; - } - - public String getEncoding() { - return encoding; - } - - public void setEncoding(String encoding) { - this.encoding = encoding; - } - - public Boolean getFragment() { - return fragment; - } - - public void setFragment(Boolean fragment) { - this.fragment = fragment; - } - - public String getPartClass() { - return partClass; - } - - public void setPartClass(String partClass) { - this.partClass = partClass; - } - - public String getPartNamespace() { - return partNamespace; - } - - public void setPartNamespace(String partNamespace) { - this.partNamespace = partNamespace; - } - - public String getNamespacePrefixRef() { - return namespacePrefixRef; - } - - public void setNamespacePrefixRef(String namespacePrefixRef) { - this.namespacePrefixRef = namespacePrefixRef; - } - - public String getXmlStreamWriterWrapper() { - return xmlStreamWriterWrapper; - } - - public void setXmlStreamWriterWrapper(String xmlStreamWriterWrapper) { - this.xmlStreamWriterWrapper = xmlStreamWriterWrapper; - } - - public String getSchemaLocation() { - return schemaLocation; - } - - public void setSchemaLocation(String schemaLocation) { - this.schemaLocation = schemaLocation; - } - - public String getNoNamespaceSchemaLocation() { - return noNamespaceSchemaLocation; - } - - public void setNoNamespaceSchemaLocation(String noNamespaceSchemaLocation) { - this.noNamespaceSchemaLocation = noNamespaceSchemaLocation; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatAutoConfiguration.java b/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatAutoConfiguration.java deleted file mode 100644 index efd6ca4..0000000 --- a/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatAutoConfiguration.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.jibx.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.jibx.JibxDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(JibxDataFormatConfiguration.class) -public class JibxDataFormatAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(JibxDataFormat.class) - public JibxDataFormat configureJibxDataFormat(CamelContext camelContext, - JibxDataFormatConfiguration configuration) throws Exception { - JibxDataFormat dataformat = new JibxDataFormat(); - if (dataformat instanceof CamelContextAware) { - ((CamelContextAware) dataformat).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), dataformat, parameters); - return dataformat; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatConfiguration.java b/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatConfiguration.java deleted file mode 100644 index 3f0742f..0000000 --- a/components/camel-jibx/src/main/java/org/apache/camel/dataformat/jibx/springboot/JibxDataFormatConfiguration.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.jibx.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Jibx support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.jibx") -public class JibxDataFormatConfiguration { - - /** - * Class name to use when unmarshalling from XML to Java. - */ - private String unmarshallClass; - /** - * To use a custom binding factory - */ - private String bindingName; - - public String getUnmarshallClass() { - return unmarshallClass; - } - - public void setUnmarshallClass(String unmarshallClass) { - this.unmarshallClass = unmarshallClass; - } - - public String getBindingName() { - return bindingName; - } - - public void setBindingName(String bindingName) { - this.bindingName = bindingName; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatAutoConfiguration.java b/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatAutoConfiguration.java deleted file mode 100644 index ba84e01..0000000 --- a/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatAutoConfiguration.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.lzf.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.lzf.LZFDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(LZFDataFormatConfiguration.class) -public class LZFDataFormatAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(LZFDataFormat.class) - public LZFDataFormat configureLZFDataFormat(CamelContext camelContext, - LZFDataFormatConfiguration configuration) throws Exception { - LZFDataFormat dataformat = new LZFDataFormat(); - if (dataformat instanceof CamelContextAware) { - ((CamelContextAware) dataformat).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), dataformat, parameters); - return dataformat; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.java ---------------------------------------------------------------------- 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 deleted file mode 100644 index 8aa14e5..0000000 --- a/components/camel-lzf/src/main/java/org/apache/camel/dataformat/lzf/springboot/LZFDataFormatConfiguration.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.lzf.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel LZF support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.lzf") -public class LZFDataFormatConfiguration { - - /** - * Enable encoding (compress) using multiple processing cores. - */ - private Boolean usingParallelCompression; - - public Boolean getUsingParallelCompression() { - return usingParallelCompression; - } - - public void setUsingParallelCompression(Boolean usingParallelCompression) { - this.usingParallelCompression = usingParallelCompression; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatAutoConfiguration.java b/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatAutoConfiguration.java deleted file mode 100644 index 697355d..0000000 --- a/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatAutoConfiguration.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.mime.multipart.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.mime.multipart.MimeMultipartDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(MimeMultipartDataFormatConfiguration.class) -public class MimeMultipartDataFormatAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(MimeMultipartDataFormat.class) - public MimeMultipartDataFormat configureMimeMultipartDataFormat( - CamelContext camelContext, - MimeMultipartDataFormatConfiguration configuration) - throws Exception { - MimeMultipartDataFormat dataformat = new MimeMultipartDataFormat(); - if (dataformat instanceof CamelContextAware) { - ((CamelContextAware) dataformat).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), dataformat, parameters); - return dataformat; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java ---------------------------------------------------------------------- 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 deleted file mode 100644 index d2af309..0000000 --- a/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/springboot/MimeMultipartDataFormatConfiguration.java +++ /dev/null @@ -1,94 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.mime.multipart.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Mail support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.mime-multipart") -public class MimeMultipartDataFormatConfiguration { - - /** - * Specify the subtype of the MIME Multipart. Default is mixed. - */ - private String multipartSubType; - /** - * Defines whether a message without attachment is also marshaled into a - * MIME Multipart (with only one body part). Default is false. - */ - private Boolean multipartWithoutAttachment; - /** - * 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; - /** - * A regex that defines which Camel headers are also included as MIME - * headers into the MIME multipart. This will only work if headersInline is - * set to true. Default is to include no headers - */ - private String includeHeaders; - /** - * 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; - - public String getMultipartSubType() { - return multipartSubType; - } - - public void setMultipartSubType(String multipartSubType) { - this.multipartSubType = multipartSubType; - } - - public Boolean getMultipartWithoutAttachment() { - return multipartWithoutAttachment; - } - - public void setMultipartWithoutAttachment(Boolean multipartWithoutAttachment) { - this.multipartWithoutAttachment = multipartWithoutAttachment; - } - - public Boolean getHeadersInline() { - return headersInline; - } - - public void setHeadersInline(Boolean headersInline) { - this.headersInline = headersInline; - } - - public String getIncludeHeaders() { - return includeHeaders; - } - - public void setIncludeHeaders(String includeHeaders) { - this.includeHeaders = includeHeaders; - } - - public Boolean getBinaryContent() { - return binaryContent; - } - - public void setBinaryContent(Boolean binaryContent) { - this.binaryContent = binaryContent; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatAutoConfiguration.java b/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatAutoConfiguration.java deleted file mode 100644 index c522438..0000000 --- a/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatAutoConfiguration.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.protobuf.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.protobuf.ProtobufDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(ProtobufDataFormatConfiguration.class) -public class ProtobufDataFormatAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(ProtobufDataFormat.class) - public ProtobufDataFormat configureProtobufDataFormat( - CamelContext camelContext, - ProtobufDataFormatConfiguration configuration) throws Exception { - ProtobufDataFormat dataformat = new ProtobufDataFormat(); - if (dataformat instanceof CamelContextAware) { - ((CamelContextAware) dataformat).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), dataformat, parameters); - return dataformat; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatConfiguration.java b/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatConfiguration.java deleted file mode 100644 index 4d06d4f..0000000 --- a/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/springboot/ProtobufDataFormatConfiguration.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.protobuf.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Components - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.protobuf") -public class ProtobufDataFormatConfiguration { - - /** - * Name of class to use when unarmshalling - */ - private String instanceClass; - - public String getInstanceClass() { - return instanceClass; - } - - public void setInstanceClass(String instanceClass) { - this.instanceClass = instanceClass; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatAutoConfiguration.java b/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatAutoConfiguration.java deleted file mode 100644 index c51f6e1..0000000 --- a/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatAutoConfiguration.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.rss.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.rss.RssDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(RssDataFormatConfiguration.class) -public class RssDataFormatAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(RssDataFormat.class) - public RssDataFormat configureRssDataFormat(CamelContext camelContext, - RssDataFormatConfiguration configuration) throws Exception { - RssDataFormat dataformat = new RssDataFormat(); - if (dataformat instanceof CamelContextAware) { - ((CamelContextAware) dataformat).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), dataformat, parameters); - return dataformat; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatConfiguration.java b/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatConfiguration.java deleted file mode 100644 index 2616eba..0000000 --- a/components/camel-rss/src/main/java/org/apache/camel/dataformat/rss/springboot/RssDataFormatConfiguration.java +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.rss.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel RSS support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.rss") -public class RssDataFormatConfiguration { -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatAutoConfiguration.java b/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatAutoConfiguration.java deleted file mode 100644 index a38d523..0000000 --- a/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatAutoConfiguration.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.snakeyaml.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.component.snakeyaml.SnakeYAMLDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(SnakeYAMLDataFormatConfiguration.class) -public class SnakeYAMLDataFormatAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SnakeYAMLDataFormat.class) - public SnakeYAMLDataFormat configureSnakeYAMLDataFormat( - CamelContext camelContext, - SnakeYAMLDataFormatConfiguration configuration) throws Exception { - SnakeYAMLDataFormat dataformat = new SnakeYAMLDataFormat(); - if (dataformat instanceof CamelContextAware) { - ((CamelContextAware) dataformat).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), dataformat, parameters); - return dataformat; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java ---------------------------------------------------------------------- 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 deleted file mode 100644 index 812ab2d..0000000 --- a/components/camel-snakeyaml/src/main/java/org/apache/camel/component/snakeyaml/springboot/SnakeYAMLDataFormatConfiguration.java +++ /dev/null @@ -1,128 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.snakeyaml.springboot; - -import org.apache.camel.model.dataformat.YAMLLibrary; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel SnakeYAML support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.yaml") -public class SnakeYAMLDataFormatConfiguration { - - /** - * Which yaml library to use such. Is by default SnakeYAML - */ - private YAMLLibrary library; - /** - * Class name of the java type to use when unarmshalling - */ - private String unmarshalTypeName; - /** - * BaseConstructor to construct incoming documents. - */ - private String constructor; - /** - * Representer to emit outgoing objects. - */ - private String representer; - /** - * DumperOptions to configure outgoing objects. - */ - private String dumperOptions; - /** - * Resolver to detect implicit type - */ - private String resolver; - /** - * Use ApplicationContextClassLoader as custom ClassLoader - */ - private Boolean useApplicationContextClassLoader; - /** - * Force the emitter to produce a pretty YAML document when using the flow - * style. - */ - private Boolean prettyFlow; - - public YAMLLibrary getLibrary() { - return library; - } - - public void setLibrary(YAMLLibrary library) { - this.library = library; - } - - public String getUnmarshalTypeName() { - return unmarshalTypeName; - } - - public void setUnmarshalTypeName(String unmarshalTypeName) { - this.unmarshalTypeName = unmarshalTypeName; - } - - public String getConstructor() { - return constructor; - } - - public void setConstructor(String constructor) { - this.constructor = constructor; - } - - public String getRepresenter() { - return representer; - } - - public void setRepresenter(String representer) { - this.representer = representer; - } - - public String getDumperOptions() { - return dumperOptions; - } - - public void setDumperOptions(String dumperOptions) { - this.dumperOptions = dumperOptions; - } - - public String getResolver() { - return resolver; - } - - public void setResolver(String resolver) { - this.resolver = resolver; - } - - public Boolean getUseApplicationContextClassLoader() { - return useApplicationContextClassLoader; - } - - public void setUseApplicationContextClassLoader( - Boolean useApplicationContextClassLoader) { - this.useApplicationContextClassLoader = useApplicationContextClassLoader; - } - - public Boolean getPrettyFlow() { - return prettyFlow; - } - - public void setPrettyFlow(Boolean prettyFlow) { - this.prettyFlow = prettyFlow; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatAutoConfiguration.java b/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatAutoConfiguration.java deleted file mode 100644 index 68af579..0000000 --- a/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatAutoConfiguration.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.soap.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.soap.SoapJaxbDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(SoapJaxbDataFormatConfiguration.class) -public class SoapJaxbDataFormatAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SoapJaxbDataFormat.class) - public SoapJaxbDataFormat configureSoapJaxbDataFormat( - CamelContext camelContext, - SoapJaxbDataFormatConfiguration configuration) throws Exception { - SoapJaxbDataFormat dataformat = new SoapJaxbDataFormat(); - if (dataformat instanceof CamelContextAware) { - ((CamelContextAware) dataformat).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), dataformat, parameters); - return dataformat; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatConfiguration.java b/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatConfiguration.java deleted file mode 100644 index 4acfcf1..0000000 --- a/components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/springboot/SoapJaxbDataFormatConfiguration.java +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.soap.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel SOAP support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.soapjaxb") -public class SoapJaxbDataFormatConfiguration { - - /** - * Package name where your JAXB classes are located. - */ - private String contextPath; - /** - * To overrule and use a specific encoding - */ - private String encoding; - /** - * Refers to an element strategy to lookup from the registry. An element - * name strategy is used for two purposes. The first is to find a xml - * element name for a given object and soap action when marshaling the - * object into a SOAP message. The second is to find an Exception class for - * a given soap fault name. The following three element strategy class name - * is provided out of the box. QNameStrategy - Uses a fixed qName that is - * configured on instantiation. Exception lookup is not supported - * TypeNameStrategy - Uses the name and namespace from the XMLType - * annotation of the given type. If no namespace is set then package-info is - * used. Exception lookup is not supported ServiceInterfaceStrategy - Uses - * information from a webservice interface to determine the type name and to - * find the exception class for a SOAP fault All three classes is located in - * the package name org.apache.camel.dataformat.soap.name If you have - * generated the web service stub code with cxf-codegen or a similar tool - * then you probably will want to use the ServiceInterfaceStrategy. In the - * case you have no annotated service interface you should use QNameStrategy - * or TypeNameStrategy. - */ - private String elementNameStrategyRef; - /** - * SOAP version should either be 1.1 or 1.2. Is by default 1.1 - */ - private String version; - /** - * When marshalling using JAXB or SOAP then the JAXB implementation will - * automatic assign namespace prefixes such as ns2 ns3 ns4 etc. To control - * this mapping Camel allows you to refer to a map which contains the - * desired mapping. - */ - private String namespacePrefixRef; - /** - * To validate against an existing schema. Your can use the prefix - * classpath: file: or http: to specify how the resource should by resolved. - * You can separate multiple schema files by using the '' character. - */ - private String schema; - - public String getContextPath() { - return contextPath; - } - - public void setContextPath(String contextPath) { - this.contextPath = contextPath; - } - - public String getEncoding() { - return encoding; - } - - public void setEncoding(String encoding) { - this.encoding = encoding; - } - - public String getElementNameStrategyRef() { - return elementNameStrategyRef; - } - - public void setElementNameStrategyRef(String elementNameStrategyRef) { - this.elementNameStrategyRef = elementNameStrategyRef; - } - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public String getNamespacePrefixRef() { - return namespacePrefixRef; - } - - public void setNamespacePrefixRef(String namespacePrefixRef) { - this.namespacePrefixRef = namespacePrefixRef; - } - - public String getSchema() { - return schema; - } - - public void setSchema(String schema) { - this.schema = schema; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatAutoConfiguration.java b/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatAutoConfiguration.java deleted file mode 100644 index 3b78a10..0000000 --- a/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatAutoConfiguration.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.syslog.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.component.syslog.SyslogDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(SyslogDataFormatConfiguration.class) -public class SyslogDataFormatAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(SyslogDataFormat.class) - public SyslogDataFormat configureSyslogDataFormat( - CamelContext camelContext, - SyslogDataFormatConfiguration configuration) throws Exception { - SyslogDataFormat dataformat = new SyslogDataFormat(); - if (dataformat instanceof CamelContextAware) { - ((CamelContextAware) dataformat).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), dataformat, parameters); - return dataformat; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatConfiguration.java b/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatConfiguration.java deleted file mode 100644 index 12dec5f..0000000 --- a/components/camel-syslog/src/main/java/org/apache/camel/component/syslog/springboot/SyslogDataFormatConfiguration.java +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.syslog.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Syslog support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.syslog") -public class SyslogDataFormatConfiguration { -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatAutoConfiguration.java b/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatAutoConfiguration.java deleted file mode 100644 index 4985a3b..0000000 --- a/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatAutoConfiguration.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.tagsoup.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.tagsoup.TidyMarkupDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(TidyMarkupDataFormatConfiguration.class) -public class TidyMarkupDataFormatAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(TidyMarkupDataFormat.class) - public TidyMarkupDataFormat configureTidyMarkupDataFormat( - CamelContext camelContext, - TidyMarkupDataFormatConfiguration configuration) throws Exception { - TidyMarkupDataFormat dataformat = new TidyMarkupDataFormat(); - if (dataformat instanceof CamelContextAware) { - ((CamelContextAware) dataformat).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), dataformat, parameters); - return dataformat; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatConfiguration.java b/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatConfiguration.java deleted file mode 100644 index 8d4a802..0000000 --- a/components/camel-tagsoup/src/main/java/org/apache/camel/dataformat/tagsoup/springboot/TidyMarkupDataFormatConfiguration.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.tagsoup.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel TagSoup support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.tidyMarkup") -public class TidyMarkupDataFormatConfiguration { - - /** - * What data type to unmarshal as can either be org.w3c.dom.Node or - * java.lang.String. Is by default org.w3c.dom.Node - */ - private String dataObjectType; - - public String getDataObjectType() { - return dataObjectType; - } - - public void setDataObjectType(String dataObjectType) { - this.dataObjectType = dataObjectType; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatAutoConfiguration.java b/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatAutoConfiguration.java deleted file mode 100644 index ae88b60..0000000 --- a/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatAutoConfiguration.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.tarfile.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.tarfile.TarFileDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(TarFileDataFormatConfiguration.class) -public class TarFileDataFormatAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(TarFileDataFormat.class) - public TarFileDataFormat configureTarFileDataFormat( - CamelContext camelContext, - TarFileDataFormatConfiguration configuration) throws Exception { - TarFileDataFormat dataformat = new TarFileDataFormat(); - if (dataformat instanceof CamelContextAware) { - ((CamelContextAware) dataformat).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), dataformat, parameters); - return dataformat; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java ---------------------------------------------------------------------- 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 deleted file mode 100644 index 313b008..0000000 --- a/components/camel-tarfile/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.tarfile.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Tar file support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.tarfile") -public class TarFileDataFormatConfiguration { - - /** - * If the tar file has more then one entry the setting this option to true - * allows to work with the splitter EIP to split the data using an iterator - * in a streaming mode. - */ - private Boolean usingIterator; - - public Boolean getUsingIterator() { - return usingIterator; - } - - public void setUsingIterator(Boolean usingIterator) { - this.usingIterator = usingIterator; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatAutoConfiguration.java b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatAutoConfiguration.java deleted file mode 100644 index e70d780..0000000 --- a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatAutoConfiguration.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.univocity.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.univocity.UniVocityCsvDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(UniVocityCsvDataFormatConfiguration.class) -public class UniVocityCsvDataFormatAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(UniVocityCsvDataFormat.class) - public UniVocityCsvDataFormat configureUniVocityCsvDataFormat( - CamelContext camelContext, - UniVocityCsvDataFormatConfiguration configuration) throws Exception { - UniVocityCsvDataFormat dataformat = new UniVocityCsvDataFormat(); - if (dataformat instanceof CamelContextAware) { - ((CamelContextAware) dataformat).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), dataformat, parameters); - return dataformat; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatConfiguration.java ---------------------------------------------------------------------- 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 deleted file mode 100644 index 2711a90..0000000 --- a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityCsvDataFormatConfiguration.java +++ /dev/null @@ -1,243 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.univocity.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel UniVocity parsers data format support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.univocity-csv") -public class UniVocityCsvDataFormatConfiguration { - - /** - * Whether or not all values must be quoted when writing them. - */ - private Boolean quoteAllFields; - /** - * The quote symbol. - */ - private String quote; - /** - * The quote escape symbol - */ - private String quoteEscape; - /** - * The delimiter of values - */ - private String delimiter; - /** - * The string representation of a null value. The default value is null - */ - private String nullValue; - /** - * Whether or not the empty lines must be ignored. The default value is true - */ - private Boolean skipEmptyLines; - /** - * Whether or not the trailing white spaces must ignored. The default value - * is true - */ - private Boolean ignoreTrailingWhitespaces; - /** - * Whether or not the leading white spaces must be ignored. The default - * value is true - */ - private Boolean ignoreLeadingWhitespaces; - /** - * 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; - /** - * Whether or not the header must be read in the first line of the test - * document The default value is false - */ - private Boolean headerExtractionEnabled; - /** - * The maximum number of record to read. - */ - private Integer numberOfRecordsToRead; - /** - * The String representation of an empty value - */ - private String emptyValue; - /** - * The line separator of the files The default value is to use the JVM - * platform line separator - */ - private String lineSeparator; - /** - * The normalized line separator of the files The default value is \n - */ - private String normalizedLineSeparator; - /** - * The comment symbol. The default value is - */ - private String comment; - /** - * Whether the unmarshalling should produce an iterator that reads the lines - * on the fly or if all the lines must be read at one. The default value is - * false - */ - private Boolean lazyLoad; - /** - * 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; - - public Boolean getQuoteAllFields() { - return quoteAllFields; - } - - public void setQuoteAllFields(Boolean quoteAllFields) { - this.quoteAllFields = quoteAllFields; - } - - public String getQuote() { - return quote; - } - - public void setQuote(String quote) { - this.quote = quote; - } - - public String getQuoteEscape() { - return quoteEscape; - } - - public void setQuoteEscape(String quoteEscape) { - this.quoteEscape = quoteEscape; - } - - public String getDelimiter() { - return delimiter; - } - - public void setDelimiter(String delimiter) { - this.delimiter = delimiter; - } - - public String getNullValue() { - return nullValue; - } - - public void setNullValue(String nullValue) { - this.nullValue = nullValue; - } - - public Boolean getSkipEmptyLines() { - return skipEmptyLines; - } - - public void setSkipEmptyLines(Boolean skipEmptyLines) { - this.skipEmptyLines = skipEmptyLines; - } - - public Boolean getIgnoreTrailingWhitespaces() { - return ignoreTrailingWhitespaces; - } - - public void setIgnoreTrailingWhitespaces(Boolean ignoreTrailingWhitespaces) { - this.ignoreTrailingWhitespaces = ignoreTrailingWhitespaces; - } - - public Boolean getIgnoreLeadingWhitespaces() { - return ignoreLeadingWhitespaces; - } - - public void setIgnoreLeadingWhitespaces(Boolean ignoreLeadingWhitespaces) { - this.ignoreLeadingWhitespaces = ignoreLeadingWhitespaces; - } - - public Boolean getHeadersDisabled() { - return headersDisabled; - } - - public void setHeadersDisabled(Boolean headersDisabled) { - this.headersDisabled = headersDisabled; - } - - public Boolean getHeaderExtractionEnabled() { - return headerExtractionEnabled; - } - - public void setHeaderExtractionEnabled(Boolean headerExtractionEnabled) { - this.headerExtractionEnabled = headerExtractionEnabled; - } - - public Integer getNumberOfRecordsToRead() { - return numberOfRecordsToRead; - } - - public void setNumberOfRecordsToRead(Integer numberOfRecordsToRead) { - this.numberOfRecordsToRead = numberOfRecordsToRead; - } - - public String getEmptyValue() { - return emptyValue; - } - - public void setEmptyValue(String emptyValue) { - this.emptyValue = emptyValue; - } - - public String getLineSeparator() { - return lineSeparator; - } - - public void setLineSeparator(String lineSeparator) { - this.lineSeparator = lineSeparator; - } - - public String getNormalizedLineSeparator() { - return normalizedLineSeparator; - } - - public void setNormalizedLineSeparator(String normalizedLineSeparator) { - this.normalizedLineSeparator = normalizedLineSeparator; - } - - public String getComment() { - return comment; - } - - public void setComment(String comment) { - this.comment = comment; - } - - public Boolean getLazyLoad() { - return lazyLoad; - } - - public void setLazyLoad(Boolean lazyLoad) { - this.lazyLoad = lazyLoad; - } - - public Boolean getAsMap() { - return asMap; - } - - public void setAsMap(Boolean asMap) { - this.asMap = asMap; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/234f57d4/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatAutoConfiguration.java b/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatAutoConfiguration.java deleted file mode 100644 index 66a7bf4..0000000 --- a/components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/springboot/UniVocityFixedWidthDataFormatAutoConfiguration.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.dataformat.univocity.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.univocity.UniVocityFixedWidthDataFormat; -import org.apache.camel.util.IntrospectionSupport; -import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@Configuration -@EnableConfigurationProperties(UniVocityFixedWidthDataFormatConfiguration.class) -public class UniVocityFixedWidthDataFormatAutoConfiguration { - - @Bean - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(UniVocityFixedWidthDataFormat.class) - public UniVocityFixedWidthDataFormat configureUniVocityFixedWidthDataFormat( - CamelContext camelContext, - UniVocityFixedWidthDataFormatConfiguration configuration) - throws Exception { - UniVocityFixedWidthDataFormat dataformat = new UniVocityFixedWidthDataFormat(); - if (dataformat instanceof CamelContextAware) { - ((CamelContextAware) dataformat).setCamelContext(camelContext); - } - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), dataformat, parameters); - return dataformat; - } -} \ No newline at end of file