├── components ├── camel-exist │ └── src │ │ ├── test │ │ └── resources │ │ │ ├── conf.xml │ │ │ └── log4j.properties │ │ └── main │ │ ├── resources │ │ └── META-INF │ │ │ └── services │ │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── component │ │ │ └── xmldb │ │ └── java │ │ └── org │ │ └── apacheextras │ │ └── camel │ │ └── component │ │ └── exist │ │ └── RuntimeExistException.java ├── camel-wmq │ └── src │ │ └── main │ │ └── resources │ │ └── META-INF │ │ └── services │ │ └── org │ │ └── apache │ │ └── camel │ │ └── component │ │ └── wmq ├── camel-jcifs │ ├── src │ │ ├── test │ │ │ ├── data │ │ │ │ ├── logo1.png │ │ │ │ └── logo2.png │ │ │ ├── java │ │ │ │ └── jcifs │ │ │ │ │ └── smb │ │ │ │ │ └── TestableSmbFile.java │ │ │ └── resources │ │ │ │ └── log4j.properties │ │ ├── integrationtest │ │ │ ├── data │ │ │ │ ├── logo1.png │ │ │ │ └── logo2.png │ │ │ └── resources │ │ │ │ ├── camelsmb.prp.template │ │ │ │ └── log4j.properties │ │ └── main │ │ │ ├── resources │ │ │ └── META-INF │ │ │ │ └── services │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── camel │ │ │ │ └── component │ │ │ │ └── smb │ │ │ └── java │ │ │ └── org │ │ │ └── apacheextras │ │ │ └── camel │ │ │ └── component │ │ │ └── jcifs │ │ │ ├── SmbGenericFile.java │ │ │ ├── SmbApiFactory.java │ │ │ ├── SmbClient.java │ │ │ └── JcifsSmbApiFactory.java │ └── README.md ├── camel-vtdxml │ └── src │ │ ├── test │ │ ├── data │ │ │ └── persons.xml │ │ ├── resources │ │ │ └── log4j.properties │ │ └── java │ │ │ └── org │ │ │ └── apacheextras │ │ │ └── camel │ │ │ └── component │ │ │ └── vtdxml │ │ │ └── VtdXPathRouteDslTest.java │ │ └── main │ │ └── resources │ │ └── META-INF │ │ └── services │ │ └── org │ │ └── apache │ │ └── camel │ │ └── language │ │ └── vtdxml ├── camel-cics │ ├── README.md │ └── src │ │ ├── main │ │ ├── resources │ │ │ └── META-INF │ │ │ │ └── services │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── camel │ │ │ │ └── component │ │ │ │ └── cics │ │ └── java │ │ │ └── org │ │ │ └── apacheextras │ │ │ └── camel │ │ │ └── component │ │ │ └── cics │ │ │ └── exceptions │ │ │ └── CICSException.java │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── apacheextras │ │ │ └── camel │ │ │ └── component │ │ │ └── cics │ │ │ └── commareas │ │ │ ├── EC01.java │ │ │ └── CommArea.java │ │ └── resources │ │ └── log4j.properties ├── camel-db4o │ └── src │ │ ├── main │ │ ├── resources │ │ │ └── META-INF │ │ │ │ └── services │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── camel │ │ │ │ └── component │ │ │ │ └── db4o │ │ └── java │ │ │ └── org │ │ │ └── apacheextras │ │ │ └── camel │ │ │ └── component │ │ │ └── db4o │ │ │ └── Db4oComponent.java │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── apacheextras │ │ │ └── camel │ │ │ └── component │ │ │ └── db4o │ │ │ └── PersonToStore.java │ │ └── resources │ │ ├── org │ │ └── apacheextras │ │ │ └── camel │ │ │ └── component │ │ │ └── db4o │ │ │ └── Db4oSpringTest-context.xml │ │ └── log4j.properties ├── camel-esper │ └── src │ │ ├── main │ │ └── resources │ │ │ └── META-INF │ │ │ └── services │ │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── component │ │ │ └── esper │ │ └── test │ │ ├── resources │ │ ├── esper.cfg.xml │ │ └── log4j.properties │ │ └── java │ │ └── org │ │ └── apacheextras │ │ └── camel │ │ └── component │ │ └── esper │ │ ├── StockTick.java │ │ └── MyEvent.java ├── camel-spring-neo4j │ └── src │ │ ├── main │ │ ├── resources │ │ │ └── META-INF │ │ │ │ └── services │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── camel │ │ │ │ └── component │ │ │ │ └── spring-neo4j │ │ └── java │ │ │ └── org │ │ │ └── apacheextras │ │ │ └── camel │ │ │ └── component │ │ │ └── neo4j │ │ │ ├── Neo4jOperation.java │ │ │ └── Neo4jException.java │ │ └── test │ │ ├── resources │ │ └── log4j.properties │ │ └── java │ │ └── org │ │ └── apacheextras │ │ └── camel │ │ └── component │ │ └── neo4j │ │ └── Neo4jEndpointTest.java ├── camel-rcode │ └── src │ │ ├── main │ │ ├── resources │ │ │ └── META-INF │ │ │ │ └── services │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── camel │ │ │ │ └── component │ │ │ │ └── rcode │ │ └── java │ │ │ └── org │ │ │ └── apacheextras │ │ │ └── camel │ │ │ └── component │ │ │ └── rcode │ │ │ ├── RCodeOperation.java │ │ │ └── RCodeConstants.java │ │ └── test │ │ └── resources │ │ └── log4j.properties ├── camel-zeromq │ └── src │ │ ├── main │ │ ├── resources │ │ │ └── META-INF │ │ │ │ └── services │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── camel │ │ │ │ └── component │ │ │ │ └── zeromq │ │ └── java │ │ │ └── org │ │ │ └── apacheextras │ │ │ └── camel │ │ │ └── component │ │ │ └── zeromq │ │ │ ├── ZeromqSocketType.java │ │ │ ├── ContextFactory.java │ │ │ ├── MessageConverter.java │ │ │ ├── ZeromqException.java │ │ │ ├── AkkaContextFactory.java │ │ │ ├── SocketFactory.java │ │ │ ├── ZeromqConstants.java │ │ │ ├── ZeromqComponent.java │ │ │ └── DefaultMessageConvertor.java │ │ └── test │ │ └── resources │ │ └── log4j.properties ├── camel-couchbase │ └── src │ │ ├── main │ │ ├── resources │ │ │ └── META-INF │ │ │ │ └── services │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── camel │ │ │ │ └── component │ │ │ │ └── couchbase │ │ └── java │ │ │ └── org │ │ │ └── apacheextras │ │ │ └── camel │ │ │ └── component │ │ │ └── couchbase │ │ │ ├── CouchbaseException.java │ │ │ └── CouchbaseComponent.java │ │ └── test │ │ ├── resources │ │ └── log4j.properties │ │ └── java │ │ └── org │ │ └── apacheextras │ │ └── camel │ │ └── component │ │ └── couchbase │ │ └── CouchbaseConsumerTest.java ├── camel-hibernate │ └── src │ │ ├── main │ │ ├── resources │ │ │ └── META-INF │ │ │ │ └── services │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── camel │ │ │ │ └── component │ │ │ │ └── hibernate │ │ └── java │ │ │ └── org │ │ │ └── apacheextras │ │ │ └── camel │ │ │ └── component │ │ │ └── hibernate │ │ │ ├── package.html │ │ │ ├── TransactionCallback.java │ │ │ ├── TransactionStrategy.java │ │ │ ├── QueryFactory.java │ │ │ ├── Consumed.java │ │ │ └── DeleteHandler.java │ │ └── test │ │ ├── resources │ │ ├── org │ │ │ └── apacheextras │ │ │ │ └── camel │ │ │ │ ├── examples │ │ │ │ ├── SendEmail.hbm.xml │ │ │ │ └── MultiSteps.hbm.xml │ │ │ │ └── processor │ │ │ │ └── jpa │ │ │ │ └── spring.xml │ │ └── log4j.properties │ │ └── java │ │ └── org │ │ └── apacheextras │ │ └── camel │ │ ├── jpa │ │ └── jmx │ │ │ └── OpenTypeSupportTest.java │ │ └── examples │ │ └── SendEmail.java └── camel-virtualbox │ └── src │ ├── main │ ├── resources │ │ └── META-INF │ │ │ └── services │ │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── component │ │ │ └── virtualbox │ └── java │ │ └── org │ │ ├── apacheextras │ │ └── camel │ │ │ └── component │ │ │ └── virtualbox │ │ │ ├── command │ │ │ ├── VirtualBoxCommand.java │ │ │ ├── CommandHandlersResolver.java │ │ │ ├── handlers │ │ │ │ ├── GetVersionCommand.java │ │ │ │ ├── GetStateCommand.java │ │ │ │ ├── StartVmCommand.java │ │ │ │ ├── PowerDownCommand.java │ │ │ │ ├── RestoreCurrentSnapshotCommand.java │ │ │ │ └── SetBiosSystemTimeOffsetCommand.java │ │ │ ├── NoReturnValue.java │ │ │ ├── NoHandlerRegisteredException.java │ │ │ └── ProgressingVirtualBoxCommandHandler.java │ │ │ └── template │ │ │ ├── ProgressListener.java │ │ │ ├── MachineCallback.java │ │ │ ├── VirtualBoxCallback.java │ │ │ ├── VirtualBoxManagerFactory.java │ │ │ ├── EmptyProgressListener.java │ │ │ ├── VirtualBoxManagerCallback.java │ │ │ ├── StdOutProgressListener.java │ │ │ ├── ConsoleProgressCallback.java │ │ │ ├── ConsoleCallback.java │ │ │ ├── DetachedSessionWithReturnValue.java │ │ │ ├── WebServiceVirtualBoxManagerFactory.java │ │ │ └── DetachedSession.java │ │ └── w2c │ │ └── dom │ │ └── Workaround.java │ └── test │ └── resources │ └── log4j.properties ├── examples ├── camel-example-rcode │ └── src │ │ ├── test │ │ ├── resources │ │ │ ├── org │ │ │ │ └── apacheextras │ │ │ │ │ └── camel │ │ │ │ │ └── examples │ │ │ │ │ └── rcode │ │ │ │ │ └── builder │ │ │ │ │ └── output │ │ │ │ │ └── testout │ │ │ └── log4j.properties │ │ └── java │ │ │ └── org │ │ │ └── apacheextras │ │ │ └── camel │ │ │ └── examples │ │ │ └── rcode │ │ │ └── types │ │ │ └── ForecastDocumentTest.java │ │ └── main │ │ ├── resources │ │ ├── META-INF │ │ │ └── services │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── camel │ │ │ │ └── TypeConverter │ │ ├── org │ │ │ └── apacheextras │ │ │ │ └── camel │ │ │ │ └── examples │ │ │ │ └── rcode │ │ │ │ └── builder │ │ │ │ ├── cmd_Device.R │ │ │ │ ├── cmd_TimeSeries.R │ │ │ │ ├── cmd_Libraries.R │ │ │ │ ├── cmd_Binary.R │ │ │ │ └── cmd_Plot.R │ │ └── log4j.properties │ │ └── java │ │ └── org │ │ └── apacheextras │ │ └── camel │ │ └── examples │ │ └── rcode │ │ └── converter │ │ └── ForecastDocumentConverter.java ├── camel-example-cics │ ├── ReadMe.txt │ └── src │ │ └── main │ │ ├── resources │ │ ├── config.properties │ │ └── log4j.properties │ │ └── java │ │ └── org │ │ └── apacheextras │ │ └── camel │ │ └── examples │ │ └── cics │ │ ├── commareas │ │ ├── EC01.java │ │ ├── CommArea.java │ │ └── EC01Impl.java │ │ └── processors │ │ └── ByteExchangeProcessor.java ├── camel-example-esper │ ├── README.txt │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── apacheextras │ │ │ └── camel │ │ │ └── examples │ │ │ └── esper │ │ │ ├── FeedEnum.java │ │ │ └── MarketDataEvent.java │ │ └── resources │ │ └── log4j.properties ├── camel-example-hibernate │ ├── README.txt │ └── src │ │ └── main │ │ ├── resources │ │ ├── Order.hbm.xml │ │ └── log4j.properties │ │ └── java │ │ └── org │ │ └── apacheextras │ │ └── camel │ │ └── examples │ │ └── hibernate │ │ └── Order.java └── pom.xml ├── .gitignore ├── tests ├── camel-extra-itest-karaf │ └── src │ │ └── test │ │ ├── resources │ │ └── log4j.properties │ │ └── java │ │ └── org │ │ └── apacheextras │ │ └── camel │ │ └── itest │ │ └── karaf │ │ ├── CamelZeromqTest.java │ │ ├── CamelJcifsTest.java │ │ ├── CamelRcodeTest.java │ │ ├── CamelExistTest.java │ │ ├── CamelJbossTest.java │ │ ├── CamelVtdxmlTest.java │ │ ├── CamelJboss6Test.java │ │ ├── CamelVirtualboxTest.java │ │ ├── CamelEsperTest.java │ │ ├── CamelCouchbaseTest.java │ │ ├── CamelHibernateTest.java │ │ └── CamelDb4oTest.java └── pom.xml └── platform ├── karaf └── pom.xml └── pom.xml /components/camel-exist/src/test/resources/conf.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/camel-example-rcode/src/test/resources/org/apacheextras/camel/examples/rcode/builder/output/testout: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/camel-wmq/src/main/resources/META-INF/services/org/apache/camel/component/wmq: -------------------------------------------------------------------------------- 1 | class=org.apacheextras.camel.component.wmq.WMQComponent -------------------------------------------------------------------------------- /components/camel-jcifs/src/test/data/logo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/camel-extra/camel-extra-firstimport/HEAD/components/camel-jcifs/src/test/data/logo1.png -------------------------------------------------------------------------------- /components/camel-jcifs/src/test/data/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/camel-extra/camel-extra-firstimport/HEAD/components/camel-jcifs/src/test/data/logo2.png -------------------------------------------------------------------------------- /components/camel-jcifs/src/integrationtest/data/logo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/camel-extra/camel-extra-firstimport/HEAD/components/camel-jcifs/src/integrationtest/data/logo1.png -------------------------------------------------------------------------------- /components/camel-jcifs/src/integrationtest/data/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/camel-extra/camel-extra-firstimport/HEAD/components/camel-jcifs/src/integrationtest/data/logo2.png -------------------------------------------------------------------------------- /components/camel-vtdxml/src/test/data/persons.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 1 6 | Claus Ibsen 7 | 8 | 9 | 2 10 | James Strachan 11 | 12 | 13 | 3 14 | Jonathan Anstey 15 | 16 | 17 | -------------------------------------------------------------------------------- /components/camel-cics/README.md: -------------------------------------------------------------------------------- 1 | Apache Camel IBM CICS component 2 | ------------------------------- 3 | This Apache Camel component allows you to deal with IBM CICS mainframe system. 4 | 5 | Build 6 | ----- 7 | To be able to build the component, you have to add the IBM CTG client jar file into your local Maven repository using: 8 | 9 | -- 10 | mvn install:install-file -DgroupId=com.ibm.ctg -DartifactId=client -Dversion=1.0.0 -Dpackaging=jar -Dfile=/path/to/ctg.jar 11 | -- 12 | 13 | Then, you can use the regular: 14 | 15 | -- 16 | mvn clean install 17 | -- 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## 2 | # Ignore compiled sources 3 | # # 4 | *.com 5 | *.class 6 | *.dll 7 | *.exe 8 | *.o 9 | *.so 10 | 11 | ## 12 | # Ignore packages 13 | # # 14 | *.dmg 15 | *.iso 16 | *.jar 17 | 18 | ## 19 | # Ignore OS generated files 20 | # # 21 | .DS_Store 22 | .DS_Store? 23 | ._* 24 | .Spotlight-V100 25 | .Trashes 26 | ehthumbs.db 27 | Thumbs.db 28 | 29 | ## 30 | # Ignore IDEA project files 31 | # # 32 | .idea 33 | *.iml 34 | atlassian-ide-plugin.xml 35 | 36 | ## 37 | # Ignore Eclipse project files 38 | # # 39 | .classpath 40 | .project 41 | .settings 42 | 43 | ## 44 | # Ignore build files 45 | # # 46 | **/target/* 47 | **/.gitignore 48 | .gitignore 49 | -------------------------------------------------------------------------------- /examples/camel-example-cics/ReadMe.txt: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2008 - 2013 Camel Extra Team. All rights reserved. 3 | # https://camel-extra.github.io 4 | # ---------------------------------------------------------------------------------- 5 | # The software in this package is published under the terms of the GPL license 6 | # a copy of which has been included with this distribution in the license.txt file. 7 | # 8 | 9 | This route uses CICS Transaction Gateway Camel Component to invoke a COBOL Program in a Mainframe 10 | 11 | How to run: 12 | 13 | 1) in one shell just type: mvn camel:run 14 | This Camel route invokes every minute a Cobol program in a CICS Server. The program returns the timestamp. 15 | -------------------------------------------------------------------------------- /components/camel-jcifs/README.md: -------------------------------------------------------------------------------- 1 | Camel JCIFS Component 2 | ===================== 3 | This project is a Samba Camel component build on top of JCIFS (http://jcifs.samba.org/). 4 | 5 | It was originally developed by Redpill Linpro AB and Helsingborgs stad as part of a integration project. 6 | 7 | This component is licensed under the LGPL (http://www.gnu.org/licenses/lgpl-3.0.txt) 8 | 9 | The unit testing is done by mocking out the jcifs library to be able to run automaticly. 10 | 11 | There are some manuell integration tests (src/integrationtest) that are meant to be run with a a 12 | local CIFS server (Samba or MS Windows share). 13 | To run these copy camelsmb.prp.template to your home directory, rename it to camelsmb.prp" and edit 14 | to include correct details. 15 | 16 | 17 | -------------------------------------------------------------------------------- /examples/camel-example-rcode/src/main/resources/META-INF/services/org/apache/camel/TypeConverter: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU General Public License 5 | # as published by the Free Software Foundation; either version 2 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/gpl-2.0-standalone.html 20 | org.apacheextras.camel.examples.rcode.converter -------------------------------------------------------------------------------- /examples/camel-example-rcode/src/main/resources/org/apacheextras/camel/examples/rcode/builder/cmd_Device.R: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU General Public License 5 | # as published by the Free Software Foundation; either version 2 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/gpl-2.0-standalone.html 20 | jpeg('${exchangeId}.jpg',quality=100); -------------------------------------------------------------------------------- /components/camel-db4o/src/main/resources/META-INF/services/org/apache/camel/component/db4o: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU General Public License 5 | # as published by the Free Software Foundation; either version 2 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/gpl-2.0-standalone.html 20 | 21 | class=org.apacheextras.camel.component.db4o.Db4oComponent 22 | -------------------------------------------------------------------------------- /components/camel-esper/src/main/resources/META-INF/services/org/apache/camel/component/esper: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU General Public License 5 | # as published by the Free Software Foundation; either version 2 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/gpl-2.0-standalone.html 20 | 21 | class=org.apacheextras.camel.component.esper.EsperComponent 22 | -------------------------------------------------------------------------------- /examples/camel-example-rcode/src/main/resources/org/apacheextras/camel/examples/rcode/builder/cmd_TimeSeries.R: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU General Public License 5 | # as published by the Free Software Foundation; either version 2 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/gpl-2.0-standalone.html 20 | demand <- ts(sales, start=c(2011,1), frequency=12); -------------------------------------------------------------------------------- /components/camel-vtdxml/src/main/resources/META-INF/services/org/apache/camel/language/vtdxml: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU General Public License 5 | # as published by the Free Software Foundation; either version 2 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/gpl-2.0-standalone.html 20 | 21 | class=org.apacheextras.camel.component.vtdxml.VtdXmlLanguage 22 | -------------------------------------------------------------------------------- /components/camel-cics/src/main/resources/META-INF/services/org/apache/camel/component/cics: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU Lesser General Public License 5 | # as published by the Free Software Foundation; either version 3 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU Lesser General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU Lesser General Public 15 | # License along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/lgpl-3.0-standalone.html 20 | class=org.apacheextras.camel.component.cics.CICSComponent -------------------------------------------------------------------------------- /components/camel-spring-neo4j/src/main/resources/META-INF/services/org/apache/camel/component/spring-neo4j: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU General Public License 5 | # as published by the Free Software Foundation; either version 2 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/gpl-2.0-standalone.html 20 | 21 | class=org.apacheextras.camel.component.neo4j.Neo4jComponent -------------------------------------------------------------------------------- /components/camel-jcifs/src/main/resources/META-INF/services/org/apache/camel/component/smb: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU Lesser General Public License 5 | # as published by the Free Software Foundation; either version 3 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU Lesser General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU Lesser General Public 15 | # License along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/lgpl-3.0-standalone.html 20 | 21 | class=org.apacheextras.camel.component.jcifs.SmbComponent -------------------------------------------------------------------------------- /examples/camel-example-cics/src/main/resources/config.properties: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU General Public License 5 | # as published by the Free Software Foundation; either version 2 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/gpl-2.0-standalone.html 20 | 21 | # CICS Endpoint Configuration 22 | ctg.host=arde.intrallianz.es 23 | ctg.port=2006 24 | ctg.server=CI0ARDE -------------------------------------------------------------------------------- /components/camel-rcode/src/main/resources/META-INF/services/org/apache/camel/component/rcode: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU Lesser General Public License 5 | # as published by the Free Software Foundation; either version 3 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU Lesser General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU Lesser General Public 15 | # License along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/lgpl-3.0-standalone.html 20 | 21 | class=org.apacheextras.camel.component.rcode.RCodeComponent -------------------------------------------------------------------------------- /components/camel-zeromq/src/main/resources/META-INF/services/org/apache/camel/component/zeromq: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU Lesser General Public License 5 | # as published by the Free Software Foundation; either version 3 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU Lesser General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU Lesser General Public 15 | # License along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/lgpl-3.0-standalone.html 20 | 21 | class=org.apacheextras.camel.component.zeromq.ZeromqComponent -------------------------------------------------------------------------------- /examples/camel-example-rcode/src/main/resources/org/apacheextras/camel/examples/rcode/builder/cmd_Libraries.R: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU General Public License 5 | # as published by the Free Software Foundation; either version 2 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/gpl-2.0-standalone.html 20 | library('forecast'); 21 | library('ggplot2'); 22 | library('reshape2'); -------------------------------------------------------------------------------- /components/camel-exist/src/main/resources/META-INF/services/org/apache/camel/component/xmldb: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU Lesser General Public License 5 | # as published by the Free Software Foundation; either version 3 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU Lesser General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU Lesser General Public 15 | # License along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/lgpl-3.0-standalone.html 20 | 21 | class=org.apacheextras.camel.component.exist.ExistComponent 22 | -------------------------------------------------------------------------------- /components/camel-couchbase/src/main/resources/META-INF/services/org/apache/camel/component/couchbase: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU Lesser General Public License 5 | # as published by the Free Software Foundation; either version 3 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU Lesser General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU Lesser General Public 15 | # License along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/lgpl-3.0-standalone.html 20 | class=org.apacheextras.camel.component.couchbase.CouchbaseComponent 21 | 22 | -------------------------------------------------------------------------------- /components/camel-hibernate/src/main/resources/META-INF/services/org/apache/camel/component/hibernate: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU Lesser General Public License 5 | # as published by the Free Software Foundation; either version 3 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU Lesser General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU Lesser General Public 15 | # License along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/lgpl-3.0-standalone.html 20 | 21 | class=org.apacheextras.camel.component.hibernate.HibernateComponent 22 | -------------------------------------------------------------------------------- /components/camel-virtualbox/src/main/resources/META-INF/services/org/apache/camel/component/virtualbox: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU Lesser General Public License 5 | # as published by the Free Software Foundation; either version 3 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU Lesser General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU Lesser General Public 15 | # License along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/lgpl-3.0-standalone.html 20 | 21 | class=org.apacheextras.camel.component.virtualbox.VirtualBoxComponent -------------------------------------------------------------------------------- /examples/camel-example-rcode/src/main/resources/org/apacheextras/camel/examples/rcode/builder/cmd_Binary.R: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU General Public License 5 | # as published by the Free Software Foundation; either version 2 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/gpl-2.0-standalone.html 20 | dev.off(); 21 | r=readBin('${exchangeId}.jpg','raw',1024*1024); 22 | unlink('${exchangeId}.jpg'); 23 | r; -------------------------------------------------------------------------------- /components/camel-jcifs/src/integrationtest/resources/camelsmb.prp.template: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU Lesser General Public License 5 | # as published by the Free Software Foundation; either version 3 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU Lesser General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU Lesser General Public 15 | # License along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/lgpl-3.0-standalone.html 20 | 21 | username=joed 22 | password=secret 23 | domain=WORKGROUP 24 | share=share 25 | anonshare=anonshare 26 | localpath=C:/temp/share 27 | anonlocalpath=C:/temp/anonshare 28 | -------------------------------------------------------------------------------- /tests/camel-extra-itest-karaf/src/test/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2008 - 2013 Camel Extra Team. All rights reserved. 3 | # https://camel-extra.github.io 4 | # ---------------------------------------------------------------------------------- 5 | # The software in this package is published under the terms of the GPL license 6 | # a copy of which has been included with this distribution in the license.txt file. 7 | ## 8 | 9 | # 10 | # The logging properties used during tests.. 11 | # 12 | log4j.rootLogger=INFO, file 13 | 14 | #log4j.logger.org.apacheextras.camel.component.rcode=DEBUG 15 | 16 | # CONSOLE appender not used by default 17 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 18 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 19 | log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n 20 | 21 | # File appender 22 | log4j.appender.file=org.apache.log4j.FileAppender 23 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 24 | log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n 25 | log4j.appender.file.file=target/camel-rcode-test.log 26 | log4j.appender.file.append=true 27 | -------------------------------------------------------------------------------- /components/camel-hibernate/src/main/java/org/apacheextras/camel/component/hibernate/package.html: -------------------------------------------------------------------------------- 1 | 22 | 23 | 24 | 25 | 26 | 27 | Defines the Hibernate component for polling databases or recording messages in a database. 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /components/camel-vtdxml/src/test/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2008 - 2012 Camel Extra Team. All rights reserved. 3 | # https://camel-extra.github.io 4 | # ---------------------------------------------------------------------------------- 5 | # The software in this package is published under the terms of the GPL license 6 | # a copy of which has been included with this distribution in the license.txt file. 7 | ## 8 | # The logging properties used for eclipse testing, We want to see debug output on the console. 9 | # 10 | log4j.rootLogger=INFO, file 11 | 12 | #log4j.logger.org.apacheextras.camel.component.vtdxml=DEBUG 13 | 14 | # CONSOLE appender not used by default 15 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 16 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 17 | log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n 18 | 19 | # File appender 20 | log4j.appender.file=org.apache.log4j.FileAppender 21 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n 23 | log4j.appender.file.file=target/camel-vtdxml-test.log 24 | log4j.appender.file.append=true 25 | -------------------------------------------------------------------------------- /examples/camel-example-esper/README.txt: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2008 - 2013 Camel Extra Team. All rights reserved. 3 | # https://camel-extra.github.io 4 | # ---------------------------------------------------------------------------------- 5 | # The software in this package is published under the terms of the GPL license 6 | # a copy of which has been included with this distribution in the license.txt file. 7 | # 8 | 9 | This a simple demo showing how to integrate the Camel Esper component with ActiveMQ 10 | 11 | How to run: 12 | 13 | 1) in one shell just type: mvn camel:run 14 | This starts a java process with an embedded ActiveMQ message broker and a Camel route. 15 | This Camel route receives a flow of events coming from a JMS queue injecting them into a complex event processing flow 16 | based on a couple of Camel Esper components. 17 | 2) On another shell just type: mvn exec:java 18 | This starts a JMS producer that sends a stream of events to the queue hosted by the embedded message broker above. 19 | 20 | This demo is based on an Exper tutorial: 21 | http://esper.codehaus.org/tutorials/tutorial/feedmonitor_casestudy.html 22 | 23 | look there for an exact meaning of the two Esper scripts in the demo 24 | 25 | -------------------------------------------------------------------------------- /examples/camel-example-hibernate/README.txt: -------------------------------------------------------------------------------- 1 | Camel Hibernate Example 2 | ======================= 3 | 4 | This example shows how to exchange data using a shared database table. 5 | 6 | The example has two Camel routes. The first route insert new data into the table, 7 | triggered by a timer to run every 5th second. 8 | 9 | The second route pickup the newly inserted rows from the table, 10 | process the row(s), and mark the row(s) as processed when done; 11 | to avoid picking up the same rows again. 12 | 13 | You will need to compile this example first: 14 | mvn compile 15 | 16 | To run the example type 17 | mvn camel:run 18 | 19 | To stop the example hit ctrl + c 20 | 21 | This example uses Spring to setup and configure the database, 22 | as well the CamelContext. You can see this in the following file: 23 | In the src/main/resources/META-INF/spring/camel-context.xml 24 | 25 | This example is documented at 26 | http://camel.apache.org/hibernate-example.html 27 | 28 | If you hit any problems please talk to us on the Camel Forums 29 | http://camel.apache.org/discussion-forums.html 30 | 31 | Please help us make Apache Camel better - we appreciate any feedback you 32 | may have. Enjoy! 33 | 34 | ------------------------ 35 | The Camel riders! 36 | -------------------------------------------------------------------------------- /examples/camel-example-cics/src/main/java/org/apacheextras/camel/examples/cics/commareas/EC01.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/gpl-2.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.examples.cics.commareas; 23 | 24 | public interface EC01 extends CommArea { 25 | 26 | } -------------------------------------------------------------------------------- /examples/camel-example-esper/src/main/java/org/apacheextras/camel/examples/esper/FeedEnum.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/gpl-2.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.examples.esper; 23 | 24 | public enum FeedEnum { 25 | 26 | FEED_A, FEED_B; 27 | 28 | } 29 | -------------------------------------------------------------------------------- /components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/command/VirtualBoxCommand.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public License 6 | as published by the Free Software Foundation; either version 3 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/lgpl-3.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.virtualbox.command; 23 | 24 | public interface VirtualBoxCommand { 25 | } 26 | -------------------------------------------------------------------------------- /examples/camel-example-rcode/src/main/resources/org/apacheextras/camel/examples/rcode/builder/cmd_Plot.R: -------------------------------------------------------------------------------- 1 | # https://camel-extra.github.io 2 | # 3 | # This program is free software; you can redistribute it and/or 4 | # modify it under the terms of the GNU General Public License 5 | # as published by the Free Software Foundation; either version 2 6 | # of the License, or (at your option) any later version. 7 | # 8 | # This program is distributed in the hope that it will be useful, 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | # GNU General Public License for more details. 12 | # 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 | # 02110-1301, USA. 18 | # 19 | # http://www.gnu.org/licenses/gpl-2.0-standalone.html 20 | graph <- plotHoltWintersForecast(demand, n.ahead = 24, error.ribbon = "red"); 21 | graph <- graph + ggtitle("A forecast example based on Holt-Winters") + theme(plot.title = element_text(lineheight=.8, face="bold")); 22 | graph <- graph + scale_x_continuous(breaks = seq(2011, 2015)); 23 | graph <- graph + ylab("Demand (Pieces)"); 24 | plot(graph); -------------------------------------------------------------------------------- /components/camel-rcode/src/main/java/org/apacheextras/camel/component/rcode/RCodeOperation.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public License 6 | as published by the Free Software Foundation; either version 3 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/lgpl-3.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.rcode; 23 | 24 | public enum RCodeOperation { 25 | ASSIGN_CONTENT, ASSIGN_EXPRESSION, EVAL, VOID_EVAL, PARSE_AND_EVAL 26 | } 27 | -------------------------------------------------------------------------------- /components/camel-zeromq/src/main/java/org/apacheextras/camel/component/zeromq/ZeromqSocketType.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public License 6 | as published by the Free Software Foundation; either version 3 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/lgpl-3.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.zeromq; 23 | 24 | public enum ZeromqSocketType { 25 | 26 | PUSH(), PULL(), SUBSCRIBE(), PUBLISH(), DEALER(), ROUTER(); 27 | 28 | } 29 | -------------------------------------------------------------------------------- /components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/template/ProgressListener.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/gpl-2.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.virtualbox.template; 23 | 24 | public interface ProgressListener { 25 | 26 | void onPercentageProgress(long percentageProgress); 27 | 28 | } 29 | -------------------------------------------------------------------------------- /examples/camel-example-cics/src/main/java/org/apacheextras/camel/examples/cics/commareas/CommArea.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/gpl-2.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.examples.cics.commareas; 23 | 24 | public interface CommArea { 25 | 26 | String getData(); 27 | 28 | byte[] getDataBuffer(); 29 | 30 | } -------------------------------------------------------------------------------- /components/camel-zeromq/src/main/java/org/apacheextras/camel/component/zeromq/ContextFactory.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public License 6 | as published by the Free Software Foundation; either version 3 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/lgpl-3.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.zeromq; 23 | 24 | import org.zeromq.ZMQ.Context; 25 | 26 | public interface ContextFactory { 27 | 28 | Context createContext(int i); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /components/camel-zeromq/src/main/java/org/apacheextras/camel/component/zeromq/MessageConverter.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public License 6 | as published by the Free Software Foundation; either version 3 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/lgpl-3.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.zeromq; 23 | 24 | import org.apache.camel.Exchange; 25 | 26 | public interface MessageConverter { 27 | 28 | byte[] convert(Exchange arg0); 29 | } 30 | -------------------------------------------------------------------------------- /components/camel-db4o/src/test/java/org/apacheextras/camel/component/db4o/PersonToStore.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/gpl-2.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.db4o; 23 | 24 | public class PersonToStore { 25 | 26 | public String name; 27 | 28 | public PersonToStore(String name) { 29 | this.name = name; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /components/camel-spring-neo4j/src/main/java/org/apacheextras/camel/component/neo4j/Neo4jOperation.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/gpl-2.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.neo4j; 23 | 24 | public enum Neo4jOperation { 25 | 26 | CREATE_NODE, 27 | 28 | REMOVE_NODE, 29 | 30 | CREATE_RELATIONSHIP, 31 | 32 | REMOVE_RELATIONSHIP 33 | 34 | } 35 | -------------------------------------------------------------------------------- /components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/template/MachineCallback.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/gpl-2.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.virtualbox.template; 23 | 24 | import org.virtualbox_4_2.IMachine; 25 | 26 | public interface MachineCallback { 27 | 28 | T execute(IMachine machine); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /components/camel-hibernate/src/main/java/org/apacheextras/camel/component/hibernate/TransactionCallback.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public License 6 | as published by the Free Software Foundation; either version 3 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/lgpl-3.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.hibernate; 23 | 24 | import org.hibernate.Session; 25 | 26 | public interface TransactionCallback { 27 | 28 | T doInTransaction(Session session); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/template/VirtualBoxCallback.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/gpl-2.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.virtualbox.template; 23 | 24 | import org.virtualbox_4_2.IVirtualBox; 25 | 26 | public interface VirtualBoxCallback { 27 | 28 | T execute(IVirtualBox virtualBox); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /components/camel-zeromq/src/main/java/org/apacheextras/camel/component/zeromq/ZeromqException.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public License 6 | as published by the Free Software Foundation; either version 3 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/lgpl-3.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.zeromq; 23 | 24 | public class ZeromqException extends RuntimeException { 25 | 26 | public ZeromqException(String message) { 27 | super(message); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/command/CommandHandlersResolver.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public License 6 | as published by the Free Software Foundation; either version 3 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/lgpl-3.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.virtualbox.command; 23 | 24 | public interface CommandHandlersResolver { 25 | 26 | Iterable> resolveCommandHandlers(); 27 | 28 | } 29 | -------------------------------------------------------------------------------- /components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/template/VirtualBoxManagerFactory.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/gpl-2.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.virtualbox.template; 23 | 24 | import org.virtualbox_4_2.VirtualBoxManager; 25 | 26 | public interface VirtualBoxManagerFactory { 27 | 28 | VirtualBoxManager create(); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /components/camel-hibernate/src/main/java/org/apacheextras/camel/component/hibernate/TransactionStrategy.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public License 6 | as published by the Free Software Foundation; either version 3 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/lgpl-3.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.hibernate; 23 | 24 | import org.apache.camel.Service; 25 | 26 | public interface TransactionStrategy extends Service { 27 | 28 | T execute(TransactionCallback callback); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /components/camel-cics/src/test/java/org/apacheextras/camel/component/cics/commareas/EC01.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public License 6 | as published by the Free Software Foundation; either version 3 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/lgpl-3.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.cics.commareas; 23 | 24 | /** 25 | * 26 | * @author Sergio Gutierrez (sgutierr@redhat.com) 27 | * @author Jose Roman Martin Gil (rmarting@redhat.com) 28 | */ 29 | public interface EC01 extends CommArea { 30 | 31 | } -------------------------------------------------------------------------------- /components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/template/EmptyProgressListener.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/gpl-2.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.virtualbox.template; 23 | 24 | public class EmptyProgressListener implements ProgressListener { 25 | 26 | @Override 27 | public void onPercentageProgress(long percentageProgress) { 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/template/VirtualBoxManagerCallback.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/gpl-2.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.virtualbox.template; 23 | 24 | import org.virtualbox_4_2.VirtualBoxManager; 25 | 26 | public interface VirtualBoxManagerCallback { 27 | 28 | T execute(VirtualBoxManager virtualBoxManager); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /components/camel-spring-neo4j/src/main/java/org/apacheextras/camel/component/neo4j/Neo4jException.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/gpl-2.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.neo4j; 23 | 24 | public class Neo4jException extends RuntimeException { 25 | 26 | private static final long serialVersionUID = 1L; 27 | 28 | public Neo4jException(String message) { 29 | super(message); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /components/camel-esper/src/test/resources/esper.cfg.xml: -------------------------------------------------------------------------------- 1 | 2 | 23 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/command/handlers/GetVersionCommand.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public License 6 | as published by the Free Software Foundation; either version 3 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/lgpl-3.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.virtualbox.command.handlers; 23 | 24 | import org.apacheextras.camel.component.virtualbox.command.VirtualBoxCommand; 25 | 26 | public final class GetVersionCommand implements VirtualBoxCommand { 27 | } 28 | -------------------------------------------------------------------------------- /components/camel-jcifs/src/main/java/org/apacheextras/camel/component/jcifs/SmbGenericFile.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public License 6 | as published by the Free Software Foundation; either version 3 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/lgpl-3.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.jcifs; 23 | 24 | import org.apache.camel.component.file.GenericFile; 25 | 26 | public class SmbGenericFile extends GenericFile { 27 | 28 | @Override 29 | public char getFileSeparator() { 30 | return '/'; 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/command/NoReturnValue.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public License 6 | as published by the Free Software Foundation; either version 3 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/lgpl-3.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.virtualbox.command; 23 | 24 | public final class NoReturnValue { 25 | 26 | private NoReturnValue() { 27 | } 28 | 29 | public static NoReturnValue noValue() { 30 | return new NoReturnValue(); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/template/StdOutProgressListener.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/gpl-2.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.virtualbox.template; 23 | 24 | public class StdOutProgressListener implements ProgressListener { 25 | 26 | @Override 27 | public void onPercentageProgress(long percentageProgress) { 28 | System.out.println(percentageProgress + "%"); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /components/camel-cics/src/test/java/org/apacheextras/camel/component/cics/commareas/CommArea.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public License 6 | as published by the Free Software Foundation; either version 3 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/lgpl-3.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.cics.commareas; 23 | 24 | /** 25 | * 26 | * @author Sergio Gutierrez (sgutierr@redhat.com) 27 | * @author Jose Roman Martin Gil (rmarting@redhat.com) 28 | */ 29 | public interface CommArea { 30 | 31 | String getData(); 32 | 33 | byte[] getDataBuffer(); 34 | 35 | } -------------------------------------------------------------------------------- /components/camel-zeromq/src/main/java/org/apacheextras/camel/component/zeromq/AkkaContextFactory.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public License 6 | as published by the Free Software Foundation; either version 3 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/lgpl-3.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.zeromq; 23 | 24 | import org.zeromq.ZMQ; 25 | import org.zeromq.ZMQ.Context; 26 | 27 | public class AkkaContextFactory implements ContextFactory { 28 | 29 | @Override 30 | public Context createContext(int i) { 31 | return ZMQ.context(1); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/template/ConsoleProgressCallback.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License 6 | as published by the Free Software Foundation; either version 2 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/gpl-2.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.virtualbox.template; 23 | 24 | import org.virtualbox_4_2.IConsole; 25 | import org.virtualbox_4_2.IMachine; 26 | import org.virtualbox_4_2.IProgress; 27 | 28 | public interface ConsoleProgressCallback { 29 | 30 | IProgress execute(IMachine machine, IConsole console); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /components/camel-zeromq/src/main/java/org/apacheextras/camel/component/zeromq/SocketFactory.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public License 6 | as published by the Free Software Foundation; either version 3 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/lgpl-3.0-standalone.html 21 | ***************************************************************************************/ 22 | package org.apacheextras.camel.component.zeromq; 23 | 24 | import org.zeromq.ZMQ.Context; 25 | import org.zeromq.ZMQ.Socket; 26 | 27 | public interface SocketFactory { 28 | 29 | Socket createConsumerSocket(Context context, ZeromqSocketType socketType); 30 | 31 | Socket createProducerSocket(Context context, ZeromqSocketType socketType); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /components/camel-jcifs/src/test/java/jcifs/smb/TestableSmbFile.java: -------------------------------------------------------------------------------- 1 | /************************************************************************************** 2 | https://camel-extra.github.io 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public License 6 | as published by the Free Software Foundation; either version 3 7 | of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Lesser General Public License for more details. 13 | 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this program; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 | 02110-1301, USA. 19 | 20 | http://www.gnu.org/licenses/lgpl-3.0-standalone.html 21 | ***************************************************************************************/ 22 | package jcifs.smb; 23 | 24 | import java.net.MalformedURLException; 25 | 26 | public class TestableSmbFile extends SmbFile { 27 | 28 | public TestableSmbFile(String url) throws MalformedURLException { 29 | super(url); 30 | } 31 | 32 | @Override 33 | public void delete(String fileName) throws SmbException { 34 | super.delete(fileName); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /components/camel-db4o/src/test/resources/org/apacheextras/camel/component/db4o/Db4oSpringTest-context.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |