http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/springboot/XmlSignatureComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/springboot/XmlSignatureComponentConfiguration.java b/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/springboot/XmlSignatureComponentConfiguration.java deleted file mode 100644 index f6d4e31..0000000 --- a/components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/springboot/XmlSignatureComponentConfiguration.java +++ /dev/null @@ -1,717 +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.xmlsecurity.springboot; - -import java.util.List; -import javax.xml.crypto.AlgorithmMethod; -import javax.xml.crypto.KeySelector; -import javax.xml.crypto.URIDereferencer; -import javax.xml.crypto.dsig.spec.XPathFilterParameterSpec; -import org.apache.camel.component.xmlsecurity.api.KeyAccessor; -import org.apache.camel.component.xmlsecurity.api.ValidationFailedHandler; -import org.apache.camel.component.xmlsecurity.api.XmlSignature2Message; -import org.apache.camel.component.xmlsecurity.api.XmlSignatureChecker; -import org.apache.camel.component.xmlsecurity.api.XmlSignatureProperties; -import org.apache.camel.component.xmlsecurity.processor.XmlSignerConfiguration; -import org.apache.camel.component.xmlsecurity.processor.XmlVerifierConfiguration; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Used to sign and verify exchanges using the XML signature specification. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.xmlsecurity") -public class XmlSignatureComponentConfiguration { - - /** - * To use a shared XmlSignerConfiguration configuration to use as base for - * configuring endpoints. Properties of the shared configuration can also be - * set individually. - */ - private XmlSignerConfiguration signerConfiguration; - /** - * To use a shared XmlVerifierConfiguration configuration to use as base for - * configuring endpoints. Properties of the shared configuration can also be - * set individually. - */ - private XmlVerifierConfiguration verifierConfiguration; - /** - * If you want to restrict the remote access via reference URIs you can - * setSigner an own dereferencer. Optional parameter. If not setSigner the - * provider default dereferencer is used which can resolve URI fragments - * HTTP file and XPpointer URIs. Attention: The implementation is provider - * dependent! - */ - private URIDereferencer signerUriDereferencer; - /** - * You can setSigner a base URI which is used in the URI dereferencing. - * Relative URIs are then concatenated with the base URI. - */ - private String signerBaseUri; - /** - * Disallows that the incoming XML document contains DTD DOCTYPE - * declaration. The default value is link BooleanTRUE. - */ - private Boolean signerDisallowDoctypeDecl; - /** - * For the signing process a private key is necessary. You specify a key - * accessor bean which provides this private key. The key accessor bean must - * implement the KeyAccessor interface. The package - * org.apache.camel.component.xmlsecurity.api contains the default - * implementation class DefaultKeyAccessor which reads the private key from - * a Java keystore. - */ - private KeyAccessor signerKeyAccessor; - /** - * Indicator whether the XML declaration in the outgoing message body should - * be omitted. Default value is false. Can be overwritten by the header link - * XmlSignatureConstantsHEADER_OMIT_XML_DECLARATION. - */ - private Boolean signerOmitXmlDeclaration; - /** - * Determines if the XML signature specific headers be cleared after signing - * and verification. Defaults to true. - */ - private Boolean signerClearHeaders; - /** - * Canonicalization method used to canonicalize the SignedInfo element - * before the digest is calculated. You can use the helper methods - * XmlSignatureHelper.getCanonicalizationMethod(String algorithm) or - * getSignerCanonicalizationMethod(String algorithm List - * inclusiveNamespacePrefixes) to create a canonicalization method. - */ - private AlgorithmMethod signerCanonicalizationMethod; - /** - * Classpath to the XML Schema. Must be specified in the detached XML - * Signature case for determining the ID attributes might be setSigner in - * the enveloped and enveloping case. If setSigner then the XML document is - * validated with the specified XML schema. The schema resource URI can be - * overwritten by the header link - * XmlSignatureConstantsHEADER_SCHEMA_RESOURCE_URI. - */ - private String signerSchemaResourceUri; - /** - * The character encoding of the resulting signed XML document. If null then - * the encoding of the original XML document is used. - */ - private String signerOutputXmlEncoding; - /** - * Transforms which are executed on the message body before the digest is - * calculated. By default C14n is added and in the case of enveloped - * signature (see option parentLocalName) also - * http://www.w3.org/2000/09/xmldsigenveloped-signature is added at position - * 0 of the list. Use methods in XmlSignatureHelper to create the transform - * methods. - */ - private List<AlgorithmMethod> signerTransformMethods; - /** - * Signature algorithm. Default value is - * http://www.w3.org/2000/09/xmldsigrsa-sha1. - */ - private String signerSignatureAlgorithm; - /** - * Digest algorithm URI. Optional parameter. This digest algorithm is used - * for calculating the digest of the input message. If this digest algorithm - * is not specified then the digest algorithm is calculated from the - * signature algorithm. Example: http://www.w3.org/2001/04/xmlencsha256 - */ - private String signerDigestAlgorithm; - /** - * In order to protect the KeyInfo element from tampering you can add a - * reference to the signed info element so that it is protected via the - * signature value. The default value is true. Only relevant when a KeyInfo - * is returned by KeyAccessor. and link KeyInfogetId() is not null. - */ - private Boolean signerAddKeyInfoReference; - /** - * Namespace prefix for the XML signature namespace - * http://www.w3.org/2000/09/xmldsig. Default value is ds. If null or an - * empty value is setSigner then no prefix is used for the XML signature - * namespace. See best practice - * http://www.w3.org/TR/xmldsig-bestpractices/signing-xml- - * without-namespaces - */ - private String signerPrefixForXmlSignatureNamespace; - /** - * Local name of the parent element to which the XML signature element will - * be added. Only relevant for enveloped XML signature. Alternatively you - * can also use link setParentXpath(XPathFilterParameterSpec). Default value - * is null. The value must be null for enveloping and detached XML - * signature. This parameter or the parameter link - * setParentXpath(XPathFilterParameterSpec) for enveloped signature and the - * parameter link setXpathsToIdAttributes(List) for detached signature must - * not be setSigner in the same configuration. If the parameters parentXpath - * and parentLocalName are specified in the same configuration then an - * exception is thrown. - */ - private String signerParentLocalName; - /** - * Namespace of the parent element to which the XML signature element will - * be added. - */ - private String signerParentNamespace; - /** - * setSigners the content object Id attribute value. By default a UUID is - * generated. If you setSigner the null value then a new UUID will be - * generated. Only used in the enveloping case. - */ - private String signerContentObjectId; - /** - * setSigners the signature Id. If this parameter is not setSigner (null - * value) then a unique ID is generated for the signature ID (default). If - * this parameter is setSigner to (empty string) then no Id attribute is - * created in the signature element. - */ - private String signerSignatureId; - /** - * Reference URI for the content to be signed. Only used in the enveloped - * case. If the reference URI contains an ID attribute value then the - * resource schema URI ( link setSchemaResourceUri(String)) must also be - * setSigner because the schema validator will then find out which - * attributes are ID attributes. Will be ignored in the enveloping or - * detached case. - */ - private String signerContentReferenceUri; - /** - * Type of the content reference. The default value is null. This value can - * be overwritten by the header link - * XmlSignatureConstantsHEADER_CONTENT_REFERENCE_TYPE. - */ - private String signerContentReferenceType; - /** - * Indicator whether the message body contains plain text. The default value - * is false indicating that the message body contains XML. The value can be - * overwritten by the header link - * XmlSignatureConstantsHEADER_MESSAGE_IS_PLAIN_TEXT. - */ - private Boolean signerPlainText; - /** - * Encoding of the plain text. Only relevant if the message body is plain - * text (see parameter link plainText. Default value is UTF-8. - */ - private String signerPlainTextEncoding; - /** - * For adding additional References and Objects to the XML signature which - * contain additional properties you can provide a bean which implements the - * XmlSignatureProperties interface. - */ - private XmlSignatureProperties signerProperties; - /** - * Define the elements which are signed in the detached case via XPATH - * expressions to ID attributes (attributes of type ID). For each element - * found via the XPATH expression a detached signature is created whose - * reference URI contains the corresponding attribute value (preceded by - * ''). The signature becomes the last sibling of the signed element. - * Elements with deeper hierarchy level are signed first. You can also - * setSigner the XPATH list dynamically via the header link - * XmlSignatureConstantsHEADER_XPATHS_TO_ID_ATTRIBUTES. The parameter link - * setParentLocalName(String) or link - * setParentXpath(XPathFilterParameterSpec) for enveloped signature and this - * parameter for detached signature must not be setSigner in the same - * configuration. - */ - private List<XPathFilterParameterSpec> signerXpathsToIdAttributes; - /** - * setSigners the XPath to find the parent node in the enveloped case. - * Either you specify the parent node via this method or the local name and - * namespace of the parent with the methods link setParentLocalName(String) - * and link setParentNamespace(String). Default value is null. The value - * must be null for enveloping and detached XML signature. If the parameters - * parentXpath and parentLocalName are specified in the same configuration - * then an exception is thrown. - */ - private XPathFilterParameterSpec signerParentXpath; - /** - * If you want to restrict the remote access via reference URIs you can - * setVerifier an own dereferencer. Optional parameter. If not setVerifier - * the provider default dereferencer is used which can resolve URI fragments - * HTTP file and XPpointer URIs. Attention: The implementation is provider - * dependent! - */ - private URIDereferencer verifierUriDereferencer; - /** - * You can setVerifier a base URI which is used in the URI dereferencing. - * Relative URIs are then concatenated with the base URI. - */ - private String verifierBaseUri; - /** - * Provides the key for validating the XML signature. - */ - private KeySelector verifierKeySelector; - /** - * This interface allows the application to check the XML signature before - * the validation is executed. This step is recommended in - * http://www.w3.org/TR/xmldsig-bestpractices/check-what-is-signed - */ - private XmlSignatureChecker verifierXmlSignatureChecker; - /** - * Disallows that the incoming XML document contains DTD DOCTYPE - * declaration. The default value is link BooleanTRUE. - */ - private Boolean verifierDisallowDoctypeDecl; - /** - * Indicator whether the XML declaration in the outgoing message body should - * be omitted. Default value is false. Can be overwritten by the header link - * XmlSignatureConstantsHEADER_OMIT_XML_DECLARATION. - */ - private Boolean verifierOmitXmlDeclaration; - /** - * Determines if the XML signature specific headers be cleared after signing - * and verification. Defaults to true. - */ - private Boolean verifierClearHeaders; - /** - * Classpath to the XML Schema. Must be specified in the detached XML - * Signature case for determining the ID attributes might be setVerifier in - * the enveloped and enveloping case. If setVerifier then the XML document - * is validated with the specified XML schema. The schema resource URI can - * be overwritten by the header link - * XmlSignatureConstantsHEADER_SCHEMA_RESOURCE_URI. - */ - private String verifierSchemaResourceUri; - /** - * The character encoding of the resulting signed XML document. If null then - * the encoding of the original XML document is used. - */ - private String verifierOutputXmlEncoding; - /** - * Bean which maps the XML signature to the output-message after the - * validation. How this mapping should be done can be configured by the - * options outputNodeSearchType outputNodeSearch and - * removeSignatureElements. The default implementation offers three - * possibilities which are related to the three output node search types - * Default ElementName and XPath. The default implementation determines a - * node which is then serialized and setVerifier to the body of the output - * message If the search type is ElementName then the output node (which - * must be in this case an element) is determined by the local name and - * namespace defined in the search value (see option outputNodeSearch). If - * the search type is XPath then the output node is determined by the XPath - * specified in the search value (in this case the output node can be of - * type Element TextNode or Document). If the output node search type is - * Default then the following rules apply: In the enveloped XML signature - * case (there is a reference with URI= and transform - * http://www.w3.org/2000/09/xmldsigenveloped-signature) the incoming XML - * document without the Signature element is setVerifier to the output - * message body. In the non-enveloped XML signature case the message body is - * determined from a referenced Object; this is explained in more detail in - * chapter Output Node Determination in Enveloping XML Signature Case. - */ - private XmlSignature2Message verifierXmlSignature2Message; - /** - * Handles the different validation failed situations. The default - * implementation throws specific exceptions for the different situations - * (All exceptions have the package name - * org.apache.camel.component.xmlsecurity.api and are a sub-class of - * XmlSignatureInvalidException. If the signature value validation fails a - * XmlSignatureInvalidValueException is thrown. If a reference validation - * fails a XmlSignatureInvalidContentHashException is thrown. For more - * detailed information see the JavaDoc. - */ - private ValidationFailedHandler verifierValidationFailedHandler; - /** - * setVerifiers the output node search value for determining the node from - * the XML signature document which shall be setVerifier to the output - * message body. The class of the value depends on the type of the output - * node search. The output node search is forwarded to XmlSignature2Message. - */ - private Object verifierOutputNodeSearch; - /** - * Determines the search type for determining the output node which is - * serialized into the output message bodyF. See link - * setOutputNodeSearch(Object). The supported default search types you can - * find in DefaultXmlSignature2Message. - */ - private String verifierOutputNodeSearchType; - /** - * Indicator whether the XML signature elements (elements with local name - * Signature and namesapce http://www.w3.org/2000/09/xmldsig) shall be - * removed from the document setVerifier to the output message. Normally - * this is only necessary if the XML signature is enveloped. The default - * value is link BooleanFALSE. This parameter is forwarded to - * XmlSignature2Message. This indicator has no effect if the output node - * search is of type link - * DefaultXmlSignature2MessageOUTPUT_NODE_SEARCH_TYPE_DEFAULT.F - */ - private Boolean verifierRemoveSignatureElements; - /** - * Enables secure validation. If true then secure validation is enabled. - */ - private Boolean verifierSecureValidation; - /** - * Name of handler to - */ - private String verifierValidationFailedHandlerName; - - public XmlSignerConfiguration getSignerConfiguration() { - return signerConfiguration; - } - - public void setSignerConfiguration( - XmlSignerConfiguration signerConfiguration) { - this.signerConfiguration = signerConfiguration; - } - - public XmlVerifierConfiguration getVerifierConfiguration() { - return verifierConfiguration; - } - - public void setVerifierConfiguration( - XmlVerifierConfiguration verifierConfiguration) { - this.verifierConfiguration = verifierConfiguration; - } - - public URIDereferencer getSignerUriDereferencer() { - return signerUriDereferencer; - } - - public void setSignerUriDereferencer(URIDereferencer signerUriDereferencer) { - this.signerUriDereferencer = signerUriDereferencer; - } - - public String getSignerBaseUri() { - return signerBaseUri; - } - - public void setSignerBaseUri(String signerBaseUri) { - this.signerBaseUri = signerBaseUri; - } - - public Boolean getSignerDisallowDoctypeDecl() { - return signerDisallowDoctypeDecl; - } - - public void setSignerDisallowDoctypeDecl(Boolean signerDisallowDoctypeDecl) { - this.signerDisallowDoctypeDecl = signerDisallowDoctypeDecl; - } - - public KeyAccessor getSignerKeyAccessor() { - return signerKeyAccessor; - } - - public void setSignerKeyAccessor(KeyAccessor signerKeyAccessor) { - this.signerKeyAccessor = signerKeyAccessor; - } - - public Boolean getSignerOmitXmlDeclaration() { - return signerOmitXmlDeclaration; - } - - public void setSignerOmitXmlDeclaration(Boolean signerOmitXmlDeclaration) { - this.signerOmitXmlDeclaration = signerOmitXmlDeclaration; - } - - public Boolean getSignerClearHeaders() { - return signerClearHeaders; - } - - public void setSignerClearHeaders(Boolean signerClearHeaders) { - this.signerClearHeaders = signerClearHeaders; - } - - public AlgorithmMethod getSignerCanonicalizationMethod() { - return signerCanonicalizationMethod; - } - - public void setSignerCanonicalizationMethod( - AlgorithmMethod signerCanonicalizationMethod) { - this.signerCanonicalizationMethod = signerCanonicalizationMethod; - } - - public String getSignerSchemaResourceUri() { - return signerSchemaResourceUri; - } - - public void setSignerSchemaResourceUri(String signerSchemaResourceUri) { - this.signerSchemaResourceUri = signerSchemaResourceUri; - } - - public String getSignerOutputXmlEncoding() { - return signerOutputXmlEncoding; - } - - public void setSignerOutputXmlEncoding(String signerOutputXmlEncoding) { - this.signerOutputXmlEncoding = signerOutputXmlEncoding; - } - - public List<AlgorithmMethod> getSignerTransformMethods() { - return signerTransformMethods; - } - - public void setSignerTransformMethods( - List<AlgorithmMethod> signerTransformMethods) { - this.signerTransformMethods = signerTransformMethods; - } - - public String getSignerSignatureAlgorithm() { - return signerSignatureAlgorithm; - } - - public void setSignerSignatureAlgorithm(String signerSignatureAlgorithm) { - this.signerSignatureAlgorithm = signerSignatureAlgorithm; - } - - public String getSignerDigestAlgorithm() { - return signerDigestAlgorithm; - } - - public void setSignerDigestAlgorithm(String signerDigestAlgorithm) { - this.signerDigestAlgorithm = signerDigestAlgorithm; - } - - public Boolean getSignerAddKeyInfoReference() { - return signerAddKeyInfoReference; - } - - public void setSignerAddKeyInfoReference(Boolean signerAddKeyInfoReference) { - this.signerAddKeyInfoReference = signerAddKeyInfoReference; - } - - public String getSignerPrefixForXmlSignatureNamespace() { - return signerPrefixForXmlSignatureNamespace; - } - - public void setSignerPrefixForXmlSignatureNamespace( - String signerPrefixForXmlSignatureNamespace) { - this.signerPrefixForXmlSignatureNamespace = signerPrefixForXmlSignatureNamespace; - } - - public String getSignerParentLocalName() { - return signerParentLocalName; - } - - public void setSignerParentLocalName(String signerParentLocalName) { - this.signerParentLocalName = signerParentLocalName; - } - - public String getSignerParentNamespace() { - return signerParentNamespace; - } - - public void setSignerParentNamespace(String signerParentNamespace) { - this.signerParentNamespace = signerParentNamespace; - } - - public String getSignerContentObjectId() { - return signerContentObjectId; - } - - public void setSignerContentObjectId(String signerContentObjectId) { - this.signerContentObjectId = signerContentObjectId; - } - - public String getSignerSignatureId() { - return signerSignatureId; - } - - public void setSignerSignatureId(String signerSignatureId) { - this.signerSignatureId = signerSignatureId; - } - - public String getSignerContentReferenceUri() { - return signerContentReferenceUri; - } - - public void setSignerContentReferenceUri(String signerContentReferenceUri) { - this.signerContentReferenceUri = signerContentReferenceUri; - } - - public String getSignerContentReferenceType() { - return signerContentReferenceType; - } - - public void setSignerContentReferenceType(String signerContentReferenceType) { - this.signerContentReferenceType = signerContentReferenceType; - } - - public Boolean getSignerPlainText() { - return signerPlainText; - } - - public void setSignerPlainText(Boolean signerPlainText) { - this.signerPlainText = signerPlainText; - } - - public String getSignerPlainTextEncoding() { - return signerPlainTextEncoding; - } - - public void setSignerPlainTextEncoding(String signerPlainTextEncoding) { - this.signerPlainTextEncoding = signerPlainTextEncoding; - } - - public XmlSignatureProperties getSignerProperties() { - return signerProperties; - } - - public void setSignerProperties(XmlSignatureProperties signerProperties) { - this.signerProperties = signerProperties; - } - - public List<XPathFilterParameterSpec> getSignerXpathsToIdAttributes() { - return signerXpathsToIdAttributes; - } - - public void setSignerXpathsToIdAttributes( - List<XPathFilterParameterSpec> signerXpathsToIdAttributes) { - this.signerXpathsToIdAttributes = signerXpathsToIdAttributes; - } - - public XPathFilterParameterSpec getSignerParentXpath() { - return signerParentXpath; - } - - public void setSignerParentXpath(XPathFilterParameterSpec signerParentXpath) { - this.signerParentXpath = signerParentXpath; - } - - public URIDereferencer getVerifierUriDereferencer() { - return verifierUriDereferencer; - } - - public void setVerifierUriDereferencer( - URIDereferencer verifierUriDereferencer) { - this.verifierUriDereferencer = verifierUriDereferencer; - } - - public String getVerifierBaseUri() { - return verifierBaseUri; - } - - public void setVerifierBaseUri(String verifierBaseUri) { - this.verifierBaseUri = verifierBaseUri; - } - - public KeySelector getVerifierKeySelector() { - return verifierKeySelector; - } - - public void setVerifierKeySelector(KeySelector verifierKeySelector) { - this.verifierKeySelector = verifierKeySelector; - } - - public XmlSignatureChecker getVerifierXmlSignatureChecker() { - return verifierXmlSignatureChecker; - } - - public void setVerifierXmlSignatureChecker( - XmlSignatureChecker verifierXmlSignatureChecker) { - this.verifierXmlSignatureChecker = verifierXmlSignatureChecker; - } - - public Boolean getVerifierDisallowDoctypeDecl() { - return verifierDisallowDoctypeDecl; - } - - public void setVerifierDisallowDoctypeDecl( - Boolean verifierDisallowDoctypeDecl) { - this.verifierDisallowDoctypeDecl = verifierDisallowDoctypeDecl; - } - - public Boolean getVerifierOmitXmlDeclaration() { - return verifierOmitXmlDeclaration; - } - - public void setVerifierOmitXmlDeclaration(Boolean verifierOmitXmlDeclaration) { - this.verifierOmitXmlDeclaration = verifierOmitXmlDeclaration; - } - - public Boolean getVerifierClearHeaders() { - return verifierClearHeaders; - } - - public void setVerifierClearHeaders(Boolean verifierClearHeaders) { - this.verifierClearHeaders = verifierClearHeaders; - } - - public String getVerifierSchemaResourceUri() { - return verifierSchemaResourceUri; - } - - public void setVerifierSchemaResourceUri(String verifierSchemaResourceUri) { - this.verifierSchemaResourceUri = verifierSchemaResourceUri; - } - - public String getVerifierOutputXmlEncoding() { - return verifierOutputXmlEncoding; - } - - public void setVerifierOutputXmlEncoding(String verifierOutputXmlEncoding) { - this.verifierOutputXmlEncoding = verifierOutputXmlEncoding; - } - - public XmlSignature2Message getVerifierXmlSignature2Message() { - return verifierXmlSignature2Message; - } - - public void setVerifierXmlSignature2Message( - XmlSignature2Message verifierXmlSignature2Message) { - this.verifierXmlSignature2Message = verifierXmlSignature2Message; - } - - public ValidationFailedHandler getVerifierValidationFailedHandler() { - return verifierValidationFailedHandler; - } - - public void setVerifierValidationFailedHandler( - ValidationFailedHandler verifierValidationFailedHandler) { - this.verifierValidationFailedHandler = verifierValidationFailedHandler; - } - - public Object getVerifierOutputNodeSearch() { - return verifierOutputNodeSearch; - } - - public void setVerifierOutputNodeSearch(Object verifierOutputNodeSearch) { - this.verifierOutputNodeSearch = verifierOutputNodeSearch; - } - - public String getVerifierOutputNodeSearchType() { - return verifierOutputNodeSearchType; - } - - public void setVerifierOutputNodeSearchType( - String verifierOutputNodeSearchType) { - this.verifierOutputNodeSearchType = verifierOutputNodeSearchType; - } - - public Boolean getVerifierRemoveSignatureElements() { - return verifierRemoveSignatureElements; - } - - public void setVerifierRemoveSignatureElements( - Boolean verifierRemoveSignatureElements) { - this.verifierRemoveSignatureElements = verifierRemoveSignatureElements; - } - - public Boolean getVerifierSecureValidation() { - return verifierSecureValidation; - } - - public void setVerifierSecureValidation(Boolean verifierSecureValidation) { - this.verifierSecureValidation = verifierSecureValidation; - } - - public String getVerifierValidationFailedHandlerName() { - return verifierValidationFailedHandlerName; - } - - public void setVerifierValidationFailedHandlerName( - String verifierValidationFailedHandlerName) { - this.verifierValidationFailedHandlerName = verifierValidationFailedHandlerName; - } -} \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatAutoConfiguration.java b/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatAutoConfiguration.java deleted file mode 100644 index c5e39fc..0000000 --- a/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatAutoConfiguration.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.xmlsecurity.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat; -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(XMLSecurityDataFormatConfiguration.class) -public class XMLSecurityDataFormatAutoConfiguration { - - @Bean(name = "secureXML-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(XMLSecurityDataFormat.class) - public XMLSecurityDataFormat configureXMLSecurityDataFormat( - CamelContext camelContext, - XMLSecurityDataFormatConfiguration configuration) throws Exception { - XMLSecurityDataFormat dataformat = new XMLSecurityDataFormat(); - 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/67633827/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatConfiguration.java ---------------------------------------------------------------------- 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 deleted file mode 100644 index f42c34b..0000000 --- a/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/springboot/XMLSecurityDataFormatConfiguration.java +++ /dev/null @@ -1,189 +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.xmlsecurity.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Partial XML Encryption/Decryption and XML Signature support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.securexml") -public class XMLSecurityDataFormatConfiguration { - - /** - * The cipher algorithm to be used for encryption/decryption of the XML - * message content. The available choices are: XMLCipher.TRIPLEDES - * XMLCipher.AES_128 XMLCipher.AES_128_GCM XMLCipher.AES_192 - * XMLCipher.AES_192_GCM XMLCipher.AES_256 XMLCipher.AES_256_GCM - * XMLCipher.SEED_128 XMLCipher.CAMELLIA_128 XMLCipher.CAMELLIA_192 - * XMLCipher.CAMELLIA_256 The default value is MLCipher.TRIPLEDES - */ - private String xmlCipherAlgorithm; - /** - * A String used as passPhrase to encrypt/decrypt content. The passPhrase - * has to be provided. If no passPhrase is specified a default passPhrase is - * used. The passPhrase needs to be put together in conjunction with the - * appropriate encryption algorithm. For example using TRIPLEDES the - * passPhase can be a Only another 24 Byte key - */ - private String passPhrase; - /** - * The XPath reference to the XML Element selected for - * encryption/decryption. If no tag is specified the entire payload is - * encrypted/decrypted. - */ - private String secureTag; - /** - * A boolean value to specify whether the XML Element is to be encrypted or - * the contents of the XML Element false = Element Level true = Element - * Content Level - */ - private Boolean secureTagContents = false; - /** - * The cipher algorithm to be used for encryption/decryption of the - * asymmetric key. The available choices are: XMLCipher.RSA_v1dot5 - * XMLCipher.RSA_OAEP XMLCipher.RSA_OAEP_11 The default value is - * XMLCipher.RSA_OAEP - */ - private String keyCipherAlgorithm; - /** - * The key alias to be used when retrieving the recipient's public or - * private key from a KeyStore when performing asymmetric key encryption or - * decryption. - */ - private String recipientKeyAlias; - /** - * Refers to a KeyStore instance to lookup in the registry which is used for - * configuration options for creating and loading a KeyStore instance that - * represents the sender's trustStore or recipient's keyStore. - */ - private String keyOrTrustStoreParametersId; - /** - * The password to be used for retrieving the private key from the KeyStore. - * This key is used for asymmetric decryption. - */ - private String keyPassword; - /** - * The digest algorithm to use with the RSA OAEP algorithm. The available - * choices are: XMLCipher.SHA1 XMLCipher.SHA256 XMLCipher.SHA512 The default - * value is XMLCipher.SHA1 - */ - private String digestAlgorithm; - /** - * The MGF Algorithm to use with the RSA OAEP algorithm. The available - * choices are: EncryptionConstants.MGF1_SHA1 - * EncryptionConstants.MGF1_SHA256 EncryptionConstants.MGF1_SHA512 The - * default value is EncryptionConstants.MGF1_SHA1 - */ - private String mgfAlgorithm; - /** - * Whether to add the public key used to encrypt the session key as a - * KeyValue in the EncryptedKey structure or not. - */ - private Boolean addKeyValueForEncryptedKey = true; - - public String getXmlCipherAlgorithm() { - return xmlCipherAlgorithm; - } - - public void setXmlCipherAlgorithm(String xmlCipherAlgorithm) { - this.xmlCipherAlgorithm = xmlCipherAlgorithm; - } - - public String getPassPhrase() { - return passPhrase; - } - - public void setPassPhrase(String passPhrase) { - this.passPhrase = passPhrase; - } - - public String getSecureTag() { - return secureTag; - } - - public void setSecureTag(String secureTag) { - this.secureTag = secureTag; - } - - public Boolean getSecureTagContents() { - return secureTagContents; - } - - public void setSecureTagContents(Boolean secureTagContents) { - this.secureTagContents = secureTagContents; - } - - public String getKeyCipherAlgorithm() { - return keyCipherAlgorithm; - } - - public void setKeyCipherAlgorithm(String keyCipherAlgorithm) { - this.keyCipherAlgorithm = keyCipherAlgorithm; - } - - public String getRecipientKeyAlias() { - return recipientKeyAlias; - } - - public void setRecipientKeyAlias(String recipientKeyAlias) { - this.recipientKeyAlias = recipientKeyAlias; - } - - public String getKeyOrTrustStoreParametersId() { - return keyOrTrustStoreParametersId; - } - - public void setKeyOrTrustStoreParametersId( - String keyOrTrustStoreParametersId) { - this.keyOrTrustStoreParametersId = keyOrTrustStoreParametersId; - } - - public String getKeyPassword() { - return keyPassword; - } - - public void setKeyPassword(String keyPassword) { - this.keyPassword = keyPassword; - } - - public String getDigestAlgorithm() { - return digestAlgorithm; - } - - public void setDigestAlgorithm(String digestAlgorithm) { - this.digestAlgorithm = digestAlgorithm; - } - - public String getMgfAlgorithm() { - return mgfAlgorithm; - } - - public void setMgfAlgorithm(String mgfAlgorithm) { - this.mgfAlgorithm = mgfAlgorithm; - } - - public Boolean getAddKeyValueForEncryptedKey() { - return addKeyValueForEncryptedKey; - } - - public void setAddKeyValueForEncryptedKey(Boolean addKeyValueForEncryptedKey) { - this.addKeyValueForEncryptedKey = addKeyValueForEncryptedKey; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-xmlsecurity/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-xmlsecurity/src/main/resources/META-INF/spring.factories b/components/camel-xmlsecurity/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 5b80369..0000000 --- a/components/camel-xmlsecurity/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,21 +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. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.component.xmlsecurity.springboot.XmlSignatureComponentAutoConfiguration,\ -org.apache.camel.dataformat.xmlsecurity.springboot.XMLSecurityDataFormatAutoConfiguration - http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatAutoConfiguration.java b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatAutoConfiguration.java deleted file mode 100644 index 9e52328..0000000 --- a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatAutoConfiguration.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.xstream.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.xstream.JsonDataFormat; -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(JsonDataFormatConfiguration.class) -public class JsonDataFormatAutoConfiguration { - - @Bean(name = "json-xstream-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(JsonDataFormat.class) - public JsonDataFormat configureJsonDataFormat(CamelContext camelContext, - JsonDataFormatConfiguration configuration) throws Exception { - JsonDataFormat dataformat = new JsonDataFormat(); - 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/67633827/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java ---------------------------------------------------------------------- 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 deleted file mode 100644 index 153dbc5..0000000 --- a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/JsonDataFormatConfiguration.java +++ /dev/null @@ -1,245 +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.xstream.springboot; - -import org.apache.camel.dataformat.xstream.JsonDataFormat; -import org.apache.camel.model.dataformat.JsonLibrary; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel XStream support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.json-xstream") -public class JsonDataFormatConfiguration { - - /** - * Lookup and use the existing ObjectMapper with the given id when using - * Jackson. - */ - private String objectMapper; - /** - * To enable pretty printing output nicely formatted. Is by default false. - */ - private Boolean prettyPrint = false; - /** - * Which json library to use. - */ - private JsonLibrary library = JsonLibrary.XStream; - /** - * Class name of the java type to use when unarmshalling - */ - private String unmarshalTypeName; - /** - * When marshalling a POJO to JSON you might want to exclude certain fields - * from the JSON output. With Jackson you can use JSON views to accomplish - * this. This option is to refer to the class which has JsonView annotations - */ - private Class jsonView; - /** - * If you want to marshal a pojo to JSON and the pojo has some fields with - * null values. And you want to skip these null values you can set this - * option to NOT_NULL - */ - private String include; - /** - * 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 = 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 - * than java.util.Collection based as default. - */ - private String collectionTypeName; - /** - * To unarmshal to a List of Map or a List of Pojo. - */ - 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 = false; - /** - * To use custom Jackson modules com.fasterxml.jackson.databind.Module - * specified as a String with FQN class names. Multiple classes can be - * separated by comma. - */ - private String moduleClassNames; - /** - * To use custom Jackson modules referred from the Camel registry. Multiple - * modules can be separated by comma. - */ - private String moduleRefs; - /** - * Set of features to enable on the Jackson - * com.fasterxml.jackson.databind.ObjectMapper. The features should be a - * name that matches a enum from - * com.fasterxml.jackson.databind.SerializationFeature - * com.fasterxml.jackson.databind.DeserializationFeature or - * com.fasterxml.jackson.databind.MapperFeature Multiple features can be - * separated by comma - */ - private String enableFeatures; - /** - * Set of features to disable on the Jackson - * com.fasterxml.jackson.databind.ObjectMapper. The features should be a - * name that matches a enum from - * com.fasterxml.jackson.databind.SerializationFeature - * com.fasterxml.jackson.databind.DeserializationFeature or - * com.fasterxml.jackson.databind.MapperFeature Multiple features can be - * separated by comma - */ - private String disableFeatures; - /** - * Adds permissions that controls which Java packages and classes XStream is - * allowed to use during unmarshal from xml/json to Java beans. A permission - * must be configured either here or globally using a JVM system property. - * The permission can be specified in a syntax where a plus sign is allow - * and minus sign is deny. Wildcards is supported by using . as prefix. For - * example to allow com.foo and all subpackages then specfy com.foo.. - * Multiple permissions can be configured separated by comma such as - * com.foo.-com.foo.bar.MySecretBean. The following default permission is - * always included: -java.lang.java.util. unless its overridden by - * specifying a JVM system property with they key - * org.apache.camel.xstream.permissions. - */ - private String permissions; - - public String getObjectMapper() { - return objectMapper; - } - - public void setObjectMapper(String objectMapper) { - this.objectMapper = objectMapper; - } - - public Boolean getPrettyPrint() { - return prettyPrint; - } - - public void setPrettyPrint(Boolean prettyPrint) { - this.prettyPrint = prettyPrint; - } - - public JsonLibrary getLibrary() { - return library; - } - - public void setLibrary(JsonLibrary library) { - this.library = library; - } - - public String getUnmarshalTypeName() { - return unmarshalTypeName; - } - - public void setUnmarshalTypeName(String unmarshalTypeName) { - this.unmarshalTypeName = unmarshalTypeName; - } - - public Class getJsonView() { - return jsonView; - } - - public void setJsonView(Class jsonView) { - this.jsonView = jsonView; - } - - public String getInclude() { - return include; - } - - public void setInclude(String include) { - this.include = include; - } - - public Boolean getAllowJmsType() { - return allowJmsType; - } - - public void setAllowJmsType(Boolean allowJmsType) { - this.allowJmsType = allowJmsType; - } - - public String getCollectionTypeName() { - return collectionTypeName; - } - - public void setCollectionTypeName(String collectionTypeName) { - this.collectionTypeName = collectionTypeName; - } - - public Boolean getUseList() { - return useList; - } - - public void setUseList(Boolean useList) { - this.useList = useList; - } - - public Boolean getEnableJaxbAnnotationModule() { - return enableJaxbAnnotationModule; - } - - public void setEnableJaxbAnnotationModule(Boolean enableJaxbAnnotationModule) { - this.enableJaxbAnnotationModule = enableJaxbAnnotationModule; - } - - public String getModuleClassNames() { - return moduleClassNames; - } - - public void setModuleClassNames(String moduleClassNames) { - this.moduleClassNames = moduleClassNames; - } - - public String getModuleRefs() { - return moduleRefs; - } - - public void setModuleRefs(String moduleRefs) { - this.moduleRefs = moduleRefs; - } - - public String getEnableFeatures() { - return enableFeatures; - } - - public void setEnableFeatures(String enableFeatures) { - this.enableFeatures = enableFeatures; - } - - public String getDisableFeatures() { - return disableFeatures; - } - - public void setDisableFeatures(String disableFeatures) { - this.disableFeatures = disableFeatures; - } - - public String getPermissions() { - return permissions; - } - - public void setPermissions(String permissions) { - this.permissions = permissions; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatAutoConfiguration.java b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatAutoConfiguration.java deleted file mode 100644 index e93b205..0000000 --- a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatAutoConfiguration.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.xstream.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.xstream.XStreamDataFormat; -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(XStreamDataFormatConfiguration.class) -public class XStreamDataFormatAutoConfiguration { - - @Bean(name = "xstream-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(XStreamDataFormat.class) - public XStreamDataFormat configureXStreamDataFormat( - CamelContext camelContext, - XStreamDataFormatConfiguration configuration) throws Exception { - XStreamDataFormat dataformat = new XStreamDataFormat(); - 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/67633827/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatConfiguration.java b/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatConfiguration.java deleted file mode 100644 index 53a2ce0..0000000 --- a/components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/springboot/XStreamDataFormatConfiguration.java +++ /dev/null @@ -1,159 +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.xstream.springboot; - -import java.util.List; -import java.util.Map; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel XStream support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.xstream") -public class XStreamDataFormatConfiguration { - - /** - * Adds permissions that controls which Java packages and classes XStream is - * allowed to use during unmarshal from xml/json to Java beans. A permission - * must be configured either here or globally using a JVM system property. - * The permission can be specified in a syntax where a plus sign is allow - * and minus sign is deny. Wildcards is supported by using . as prefix. For - * example to allow com.foo and all subpackages then specfy com.foo.. - * Multiple permissions can be configured separated by comma such as - * com.foo.-com.foo.bar.MySecretBean. The following default permission is - * always included: -java.lang.java.util. unless its overridden by - * specifying a JVM system property with they key - * org.apache.camel.xstream.permissions. - */ - private String permissions; - /** - * Sets the encoding to use - */ - private String encoding; - /** - * To use a custom XStream driver. The instance must be of type - * com.thoughtworks.xstream.io.HierarchicalStreamDriver - */ - private String driver; - /** - * To refer to a custom XStream driver to lookup in the registry. The - * instance must be of type - * com.thoughtworks.xstream.io.HierarchicalStreamDriver - */ - private String driverRef; - /** - * Mode for dealing with duplicate references The possible values are: - * NO_REFERENCES ID_REFERENCES XPATH_RELATIVE_REFERENCES - * XPATH_ABSOLUTE_REFERENCES SINGLE_NODE_XPATH_RELATIVE_REFERENCES - * SINGLE_NODE_XPATH_ABSOLUTE_REFERENCES - */ - private String mode; - /** - * List of class names for using custom XStream converters. The classes must - * be of type com.thoughtworks.xstream.converters.Converter - */ - private List<String> converters; - /** - * Alias a Class to a shorter name to be used in XML elements. - */ - private Map<String, String> aliases; - /** - * Prevents a field from being serialized. To omit a field you must always - * provide the declaring type and not necessarily the type that is - * converted. - */ - private Map<String, String[]> omitFields; - /** - * Adds a default implicit collection which is used for any unmapped XML - * tag. - */ - private Map<String, String[]> implicitCollections; - - public String getPermissions() { - return permissions; - } - - public void setPermissions(String permissions) { - this.permissions = permissions; - } - - public String getEncoding() { - return encoding; - } - - public void setEncoding(String encoding) { - this.encoding = encoding; - } - - public String getDriver() { - return driver; - } - - public void setDriver(String driver) { - this.driver = driver; - } - - public String getDriverRef() { - return driverRef; - } - - public void setDriverRef(String driverRef) { - this.driverRef = driverRef; - } - - public String getMode() { - return mode; - } - - public void setMode(String mode) { - this.mode = mode; - } - - public List<String> getConverters() { - return converters; - } - - public void setConverters(List<String> converters) { - this.converters = converters; - } - - public Map<String, String> getAliases() { - return aliases; - } - - public void setAliases(Map<String, String> aliases) { - this.aliases = aliases; - } - - public Map<String, String[]> getOmitFields() { - return omitFields; - } - - public void setOmitFields(Map<String, String[]> omitFields) { - this.omitFields = omitFields; - } - - public Map<String, String[]> getImplicitCollections() { - return implicitCollections; - } - - public void setImplicitCollections(Map<String, String[]> implicitCollections) { - this.implicitCollections = implicitCollections; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-xstream/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-xstream/src/main/resources/META-INF/spring.factories b/components/camel-xstream/src/main/resources/META-INF/spring.factories deleted file mode 100644 index d8c183a..0000000 --- a/components/camel-xstream/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,21 +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. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.dataformat.xstream.springboot.JsonDataFormatAutoConfiguration,\ -org.apache.camel.dataformat.xstream.springboot.XStreamDataFormatAutoConfiguration - http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-yammer/src/main/java/org/apache/camel/component/yammer/springboot/YammerComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-yammer/src/main/java/org/apache/camel/component/yammer/springboot/YammerComponentAutoConfiguration.java b/components/camel-yammer/src/main/java/org/apache/camel/component/yammer/springboot/YammerComponentAutoConfiguration.java deleted file mode 100644 index 354e12b..0000000 --- a/components/camel-yammer/src/main/java/org/apache/camel/component/yammer/springboot/YammerComponentAutoConfiguration.java +++ /dev/null @@ -1,51 +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.yammer.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.yammer.YammerComponent; -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(YammerComponentConfiguration.class) -public class YammerComponentAutoConfiguration { - - @Bean(name = "yammer-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(YammerComponent.class) - public YammerComponent configureYammerComponent(CamelContext camelContext, - YammerComponentConfiguration configuration) throws Exception { - YammerComponent component = new YammerComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-yammer/src/main/java/org/apache/camel/component/yammer/springboot/YammerComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-yammer/src/main/java/org/apache/camel/component/yammer/springboot/YammerComponentConfiguration.java b/components/camel-yammer/src/main/java/org/apache/camel/component/yammer/springboot/YammerComponentConfiguration.java deleted file mode 100644 index 1ba82a4..0000000 --- a/components/camel-yammer/src/main/java/org/apache/camel/component/yammer/springboot/YammerComponentConfiguration.java +++ /dev/null @@ -1,79 +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.yammer.springboot; - -import org.apache.camel.component.yammer.YammerConfiguration; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The yammer component allows you to interact with the Yammer enterprise social - * network. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.yammer") -public class YammerComponentConfiguration { - - /** - * The consumer key - */ - private String consumerKey; - /** - * The consumer secret - */ - private String consumerSecret; - /** - * The access token - */ - private String accessToken; - /** - * To use a shared yammer configuration - */ - private YammerConfiguration config; - - public String getConsumerKey() { - return consumerKey; - } - - public void setConsumerKey(String consumerKey) { - this.consumerKey = consumerKey; - } - - public String getConsumerSecret() { - return consumerSecret; - } - - public void setConsumerSecret(String consumerSecret) { - this.consumerSecret = consumerSecret; - } - - public String getAccessToken() { - return accessToken; - } - - public void setAccessToken(String accessToken) { - this.accessToken = accessToken; - } - - public YammerConfiguration getConfig() { - return config; - } - - public void setConfig(YammerConfiguration config) { - this.config = config; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-yammer/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-yammer/src/main/resources/META-INF/spring.factories b/components/camel-yammer/src/main/resources/META-INF/spring.factories deleted file mode 100644 index 898e683..0000000 --- a/components/camel-yammer/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +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. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.component.yammer.springboot.YammerComponentAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatAutoConfiguration.java b/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatAutoConfiguration.java deleted file mode 100644 index 59ada4e..0000000 --- a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatAutoConfiguration.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.zipfile.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.CamelContextAware; -import org.apache.camel.dataformat.zipfile.ZipFileDataFormat; -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(ZipFileDataFormatConfiguration.class) -public class ZipFileDataFormatAutoConfiguration { - - @Bean(name = "zipfile-dataformat") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(ZipFileDataFormat.class) - public ZipFileDataFormat configureZipFileDataFormat( - CamelContext camelContext, - ZipFileDataFormatConfiguration configuration) throws Exception { - ZipFileDataFormat dataformat = new ZipFileDataFormat(); - 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/67633827/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatConfiguration.java ---------------------------------------------------------------------- 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 deleted file mode 100644 index 295c99b..0000000 --- a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatConfiguration.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.zipfile.springboot; - -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * Camel Zip file support - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.dataformat.zipfile") -public class ZipFileDataFormatConfiguration { - - /** - * If the zip 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 = false; - - 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/67633827/components/camel-zipfile/src/main/resources/META-INF/spring.factories ---------------------------------------------------------------------- diff --git a/components/camel-zipfile/src/main/resources/META-INF/spring.factories b/components/camel-zipfile/src/main/resources/META-INF/spring.factories deleted file mode 100644 index dceb18a..0000000 --- a/components/camel-zipfile/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,19 +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. -# - -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.camel.dataformat.zipfile.springboot.ZipFileDataFormatAutoConfiguration http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/springboot/ZooKeeperComponentAutoConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/springboot/ZooKeeperComponentAutoConfiguration.java b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/springboot/ZooKeeperComponentAutoConfiguration.java deleted file mode 100644 index 705bc04..0000000 --- a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/springboot/ZooKeeperComponentAutoConfiguration.java +++ /dev/null @@ -1,52 +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.zookeeper.springboot; - -import java.util.HashMap; -import java.util.Map; -import org.apache.camel.CamelContext; -import org.apache.camel.component.zookeeper.ZooKeeperComponent; -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(ZooKeeperComponentConfiguration.class) -public class ZooKeeperComponentAutoConfiguration { - - @Bean(name = "zookeeper-component") - @ConditionalOnClass(CamelContext.class) - @ConditionalOnMissingBean(ZooKeeperComponent.class) - public ZooKeeperComponent configureZooKeeperComponent( - CamelContext camelContext, - ZooKeeperComponentConfiguration configuration) throws Exception { - ZooKeeperComponent component = new ZooKeeperComponent(); - component.setCamelContext(camelContext); - Map<String, Object> parameters = new HashMap<>(); - IntrospectionSupport.getProperties(configuration, parameters, null, - false); - IntrospectionSupport.setProperties(camelContext, - camelContext.getTypeConverter(), component, parameters); - return component; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/67633827/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/springboot/ZooKeeperComponentConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/springboot/ZooKeeperComponentConfiguration.java b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/springboot/ZooKeeperComponentConfiguration.java deleted file mode 100644 index 41906c0..0000000 --- a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/springboot/ZooKeeperComponentConfiguration.java +++ /dev/null @@ -1,153 +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.zookeeper.springboot; - -import java.util.List; -import org.apache.camel.component.zookeeper.ZooKeeperConfiguration; -import org.springframework.boot.context.properties.ConfigurationProperties; - -/** - * The zookeeper component allows interaction with a ZooKeeper cluster. - * - * Generated by camel-package-maven-plugin - do not edit this file! - */ -@ConfigurationProperties(prefix = "camel.component.zookeeper") -public class ZooKeeperComponentConfiguration { - - /** - * To use a shared ZooKeeperConfiguration. Properties of the shared - * configuration can also be set individually. - */ - private ZooKeeperConfiguration configuration; - /** - * The zookeeper server hosts - */ - private List<String> servers; - /** - * The time interval to wait on connection before timing out. - */ - private Integer timeout; - /** - * Whether the children of the node should be listed - */ - private Boolean listChildren; - /** - * The node in the ZooKeeper server (aka znode) - */ - private String path; - /** - * Should changes to the znode be 'watched' and repeatedly processed. - */ - private Boolean repeat; - /** - * The time interval to backoff for after an error before retrying. - */ - private long backoff; - /** - * Should the endpoint create the node if it does not currently exist. - */ - private Boolean create; - /** - * The create mode that should be used for the newly created node - */ - private String createMode; - /** - * Upon the delete of a znode should an empty message be send to the - * consumer - */ - private Boolean sendEmptyMessageOnDelete; - - public ZooKeeperConfiguration getConfiguration() { - return configuration; - } - - public void setConfiguration(ZooKeeperConfiguration configuration) { - this.configuration = configuration; - } - - public List<String> getServers() { - return servers; - } - - public void setServers(List<String> servers) { - this.servers = servers; - } - - public Integer getTimeout() { - return timeout; - } - - public void setTimeout(Integer timeout) { - this.timeout = timeout; - } - - public Boolean getListChildren() { - return listChildren; - } - - public void setListChildren(Boolean listChildren) { - this.listChildren = listChildren; - } - - public String getPath() { - return path; - } - - public void setPath(String path) { - this.path = path; - } - - public Boolean getRepeat() { - return repeat; - } - - public void setRepeat(Boolean repeat) { - this.repeat = repeat; - } - - public long getBackoff() { - return backoff; - } - - public void setBackoff(long backoff) { - this.backoff = backoff; - } - - public Boolean getCreate() { - return create; - } - - public void setCreate(Boolean create) { - this.create = create; - } - - public String getCreateMode() { - return createMode; - } - - public void setCreateMode(String createMode) { - this.createMode = createMode; - } - - public Boolean getSendEmptyMessageOnDelete() { - return sendEmptyMessageOnDelete; - } - - public void setSendEmptyMessageOnDelete(Boolean sendEmptyMessageOnDelete) { - this.sendEmptyMessageOnDelete = sendEmptyMessageOnDelete; - } -} \ No newline at end of file