├── 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 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/components/camel-hibernate/src/test/resources/org/apacheextras/camel/examples/SendEmail.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
26 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/components/camel-zeromq/src/main/java/org/apacheextras/camel/component/zeromq/ZeromqConstants.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 ZeromqConstants {
25 |
26 | public static final String HEADER_SOCKET_TYPE = "ZeroMQSocketType";
27 | public static final String HEADER_SOURCE = "ZeroMQSource";
28 | public static final String HEADER_TIMESTAMP = "ZeroMQMessageTimestamp";
29 | public static final String HEADER_MSG_ID = "ZeroMQMessageId";
30 | }
31 |
--------------------------------------------------------------------------------
/components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/command/handlers/GetStateCommand.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.MachineAwareVirtualBoxCommand;
25 |
26 | public final class GetStateCommand extends MachineAwareVirtualBoxCommand {
27 |
28 | public GetStateCommand(String machineName) {
29 | super(machineName);
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/examples/camel-example-hibernate/src/main/resources/Order.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/examples/camel-example-hibernate/src/main/resources/log4j.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 | #
22 | # The logging properties used for eclipse testing, We want to see debug output on the console.
23 | #
24 | log4j.rootLogger=INFO, out
25 |
26 | # uncomment the following line to turn on Camel debugging
27 | #log4j.logger.org.apache.camel=DEBUG
28 |
29 | log4j.logger.org.springframework=WARN
30 |
31 | # CONSOLE appender not used by default
32 | log4j.appender.out=org.apache.log4j.ConsoleAppender
33 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
34 | log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n
35 | #log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
36 |
--------------------------------------------------------------------------------
/components/camel-hibernate/src/test/resources/org/apacheextras/camel/examples/MultiSteps.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
26 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/components/camel-esper/src/test/java/org/apacheextras/camel/component/esper/StockTick.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.esper;
23 |
24 | public class StockTick {
25 |
26 | private String symbol;
27 |
28 | private double price;
29 |
30 | public StockTick(String symbol, double price) {
31 | this.symbol = symbol;
32 | this.price = price;
33 | }
34 |
35 | public double getPrice() {
36 | return price;
37 | }
38 |
39 | public String getSymbol() {
40 | return symbol;
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/command/handlers/StartVmCommand.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.MachineAwareVirtualBoxCommand;
25 | import org.apacheextras.camel.component.virtualbox.command.NoReturnValue;
26 |
27 | public final class StartVmCommand extends MachineAwareVirtualBoxCommand {
28 |
29 | public StartVmCommand(String machineName) {
30 | super(machineName);
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/components/camel-virtualbox/src/main/java/org/w2c/dom/Workaround.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.w2c.dom;
23 |
24 | /**
25 | * This interface is an workaround around the fact that VirtualBox OSGI manifest
26 | * requires 'org.w2c.dom' package while it is impossible to find one almost
27 | * anywhere. The workaround around this issue is to make camel-virtualbox
28 | * exports the 'org.w2c.dom' package itself. 'org.w2c.dom' workaround is
29 | * explained here -
30 | * https://code.google.com/a/apache-extras.org/p/camel-extra/issues/detail?id=53
31 | */
32 | public interface Workaround {
33 | }
34 |
--------------------------------------------------------------------------------
/components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/command/handlers/PowerDownCommand.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.MachineAwareVirtualBoxCommand;
25 | import org.apacheextras.camel.component.virtualbox.command.NoReturnValue;
26 |
27 | public final class PowerDownCommand extends MachineAwareVirtualBoxCommand {
28 |
29 | public PowerDownCommand(String machineName) {
30 | super(machineName);
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/components/camel-zeromq/src/test/resources/log4j.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 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 |
22 | log4j.rootLogger=INFO, file
23 |
24 | #log4j.logger.org.apacheextras.camel.component.zeromq=DEBUG
25 |
26 | # CONSOLE appender not used by default
27 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
28 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
29 | log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
30 |
31 | # File appender
32 | log4j.appender.file=org.apache.log4j.FileAppender
33 | log4j.appender.file.layout=org.apache.log4j.PatternLayout
34 | log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
35 | log4j.appender.file.file=target/camel-zeromq-test.log
36 | log4j.appender.file.append=true
37 |
--------------------------------------------------------------------------------
/components/camel-rcode/src/main/java/org/apacheextras/camel/component/rcode/RCodeConstants.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 | /**
25 | * The RCodeConstants contain all constant variables used within the component.
26 | */
27 | public final class RCodeConstants {
28 |
29 | private RCodeConstants() {
30 | // hide the utility class from public access
31 | }
32 |
33 | /**
34 | * Denotes the operations key value in the header of an exchange message.
35 | */
36 | public static final String RSERVE_OPERATION = "RSRV_OP";
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/components/camel-zeromq/src/main/java/org/apacheextras/camel/component/zeromq/ZeromqComponent.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 java.util.Map;
25 |
26 | import org.apache.camel.impl.DefaultComponent;
27 |
28 | public class ZeromqComponent extends DefaultComponent {
29 |
30 | @Override
31 | protected ZeromqEndpoint createEndpoint(String uri, String remaining, Map params) throws Exception {
32 | ZeromqEndpoint e = new ZeromqEndpoint(uri, remaining, this);
33 | setProperties(e, params);
34 | return e;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/components/camel-esper/src/test/resources/log4j.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 | #
22 | # The logging properties used during tests..
23 | #
24 | log4j.rootLogger=INFO, out
25 |
26 | log4j.logger.org.apache.activemq.spring=WARN
27 |
28 | # CONSOLE appender not used by default
29 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
30 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
31 | log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
32 |
33 | # File appender
34 | log4j.appender.out=org.apache.log4j.FileAppender
35 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
36 | log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
37 | log4j.appender.out.file=target/camel-esper-test.log
38 | log4j.appender.out.append=true
39 |
40 |
--------------------------------------------------------------------------------
/components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/command/NoHandlerRegisteredException.java:
--------------------------------------------------------------------------------
1 | package org.apacheextras.camel.component.virtualbox.command;
2 |
3 | /**************************************************************************************
4 | * https://camel-extra.github.io This program is free software; you can
5 | * redistribute it and/or modify it under the terms of the GNU Lesser General
6 | * Public License as published by the Free Software Foundation; either version 3
7 | * of the License, or (at your option) any later version. This program is
8 | * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9 | * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
10 | * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11 | * details. You should have received a copy of the GNU Lesser General Public
12 | * License along with this program; if not, write to the Free Software
13 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
14 | * USA. http://www.gnu.org/licenses/lgpl-3.0-standalone.html
15 | ***************************************************************************************/
16 | public class NoHandlerRegisteredException extends RuntimeException {
17 |
18 | private final Class> commandClass;
19 |
20 | public NoHandlerRegisteredException(Class> commandClass) {
21 | super("No handler registered for class: " + commandClass.getName());
22 | this.commandClass = commandClass;
23 | }
24 |
25 | public Class> commandClass() {
26 | return commandClass;
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/tests/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
26 |
27 | camel-parent
28 | org.apache-extras.camel-extra
29 | 2.15.4-SNAPSHOT
30 |
31 | 4.0.0
32 |
33 | tests
34 | pom
35 | Camel Extra :: Integration Tests
36 | Camel Extra Integration Tests
37 |
38 |
39 | camel-extra-itest-karaf
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/components/camel-hibernate/src/main/java/org/apacheextras/camel/component/hibernate/QueryFactory.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.Query;
25 | import org.hibernate.Session;
26 |
27 | /**
28 | * A Strategy to create a query to search for objects in a database
29 | */
30 | public interface QueryFactory {
31 | /**
32 | * Creates a new query to find objects to be processed
33 | *
34 | * @param session the Session
35 | * @return the query configured with any parameters etc
36 | */
37 | Query createQuery(Session session);
38 | }
39 |
--------------------------------------------------------------------------------
/components/camel-couchbase/src/test/resources/log4j.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 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 | #
22 | # The logging properties used during tests..
23 | #
24 | log4j.rootLogger=INFO, file
25 |
26 | #log4j.logger.org.apache.camel=DEBUG
27 |
28 | # CONSOLE appender not used by default
29 | log4j.appender.out=org.apache.log4j.ConsoleAppender
30 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
31 | log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
32 |
33 | # File appender
34 | log4j.appender.file=org.apache.log4j.FileAppender
35 | log4j.appender.file.layout=org.apache.log4j.PatternLayout
36 | log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
37 | log4j.appender.file.file=target/camel-neo4j-test.log
38 | log4j.appender.file.append=true
39 |
--------------------------------------------------------------------------------
/examples/camel-example-rcode/src/main/resources/log4j.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 | # The logging properties used during tests..
22 | #
23 | log4j.rootLogger=DEBUG, stdout
24 |
25 | #log4j.logger.org.apacheextras.camel.component.rcode=DEBUG
26 |
27 | # CONSOLE appender not used by default
28 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
29 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
30 | log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
31 |
32 | # File appender
33 | log4j.appender.file=org.apache.log4j.FileAppender
34 | log4j.appender.file.layout=org.apache.log4j.PatternLayout
35 | log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
36 | log4j.appender.file.file=target/rcode-test.log
37 | log4j.appender.file.append=true
38 |
--------------------------------------------------------------------------------
/components/camel-cics/src/test/resources/log4j.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 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 | #
22 | # The logging properties used for testing
23 | #
24 | log4j.rootLogger=INFO, out
25 |
26 | #log4j.logger.org.apache.camel=DEBUG
27 |
28 | # CONSOLE appender not used by default
29 | log4j.appender.out=org.apache.log4j.ConsoleAppender
30 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
31 | log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n
32 | #log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
33 |
34 | # File appender
35 | log4j.appender.file=org.apache.log4j.FileAppender
36 | log4j.appender.file.layout=org.apache.log4j.PatternLayout
37 | log4j.appender.file.layout.ConversionPattern=%d %-5p %c{1} - %m %n
38 | log4j.appender.file.file=target/camel-test.log
--------------------------------------------------------------------------------
/components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/template/ConsoleCallback.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 |
27 | /**
28 | * Handler interface used to safely execute a block of code on the behalf of the
29 | * {@link org.virtualbox_4_2.IConsole}. Execution of the block can result in
30 | * returning a value.
31 | *
32 | * @param Type of returned value.
33 | */
34 | public interface ConsoleCallback {
35 |
36 | T execute(IMachine machine, IConsole console);
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/platform/karaf/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
24 | 4.0.0
25 |
26 |
27 | org.apache-extras.camel-extra
28 | platform
29 | 2.15.4-SNAPSHOT
30 |
31 |
32 | features
33 | Camel Extra :: Platform :: Karaf
34 | Camel Extra Karaf
35 | pom
36 |
37 |
38 | features
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/command/handlers/RestoreCurrentSnapshotCommand.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.MachineAwareVirtualBoxCommand;
25 | import org.apacheextras.camel.component.virtualbox.command.NoReturnValue;
26 |
27 | public final class RestoreCurrentSnapshotCommand extends MachineAwareVirtualBoxCommand {
28 |
29 | public RestoreCurrentSnapshotCommand(String machineName) {
30 | super(machineName);
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/components/camel-exist/src/test/resources/log4j.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 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 | #
22 | # The logging properties used during tests..
23 | #
24 | log4j.rootLogger=INFO, stdout
25 |
26 | log4j.logger.org.apache.activemq.spring=WARN
27 |
28 | # CONSOLE appender not used by default
29 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
30 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
31 | log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
32 |
33 | # File appender
34 | log4j.appender.out=org.apache.log4j.FileAppender
35 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
36 | log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
37 | log4j.appender.out.file=target/camel-exist-test.log
38 | log4j.appender.out.append=true
39 |
40 |
--------------------------------------------------------------------------------
/examples/camel-example-esper/src/main/resources/log4j.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 | #
22 | # The logging properties used for eclipse testing, We want to see debug output on the console.
23 | #
24 | log4j.rootLogger=INFO, out
25 |
26 | # uncomment the following line to turn on Camel debugging
27 | #log4j.logger.org.apache.camel=DEBUG
28 |
29 | # uncomment the following line to turn on ActiveMQ debugging
30 | #log4j.logger.org.apache.activemq=DEBUG
31 |
32 | log4j.logger.org.springframework=WARN
33 |
34 |
35 | # CONSOLE appender not used by default
36 | log4j.appender.out=org.apache.log4j.ConsoleAppender
37 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
38 | log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n
39 | #log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
40 |
--------------------------------------------------------------------------------
/components/camel-hibernate/src/test/java/org/apacheextras/camel/jpa/jmx/OpenTypeSupportTest.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.jpa.jmx;
23 |
24 | import org.junit.Test;
25 |
26 | import javax.management.openmbean.OpenDataException;
27 |
28 | import static org.junit.Assert.fail;
29 |
30 | public class OpenTypeSupportTest {
31 |
32 | @Test
33 | public void getFactoryTest() {
34 | try {
35 | OpenTypeSupport.getFactory(OpenTypeSupportTest.class);
36 | } catch (OpenDataException e) {
37 | fail("Failed to great OpenTypeSupport factory:\n" + e.getMessage());
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/examples/camel-example-rcode/src/main/java/org/apacheextras/camel/examples/rcode/converter/ForecastDocumentConverter.java:
--------------------------------------------------------------------------------
1 | /**
2 | * ************************************************************************************
3 | * https://camel-extra.github.io
4 | *
5 | * This program is free software; you can redistribute it and/or modify it under
6 | * the terms of the GNU General Public License as published by the Free Software
7 | * Foundation; either version 2 of the License, or (at your option) any later
8 | * version.
9 | *
10 | * This program is distributed in the hope that it will be useful, but WITHOUT
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 | * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13 | * details.
14 | *
15 | *
16 | * You should have received a copy of the GNU General Public License along with
17 | * this program; if not, write to the Free Software Foundation, Inc., 51
18 | * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 | *
20 | * http://www.gnu.org/licenses/gpl-2.0-standalone.html
21 | **************************************************************************************
22 | */
23 | package org.apacheextras.camel.examples.rcode.converter;
24 |
25 | import org.apache.camel.Converter;
26 | import org.apacheextras.camel.examples.rcode.types.ForecastDocument;
27 |
28 | /**
29 | * Converts forecast onto byteArray document.
30 | */
31 | @Converter
32 | public class ForecastDocumentConverter {
33 |
34 | @Converter
35 | public ForecastDocument convertByteArrayToForecastDocument(byte[] jpegDate) {
36 | return new ForecastDocument(jpegDate);
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/components/camel-rcode/src/test/resources/log4j.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 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 | #
22 | # The logging properties used during tests..
23 | #
24 | log4j.rootLogger=INFO, file
25 |
26 | #log4j.logger.org.apacheextras.camel.component.rcode=DEBUG
27 |
28 | # CONSOLE appender not used by default
29 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
30 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
31 | log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
32 |
33 | # File appender
34 | log4j.appender.file=org.apache.log4j.FileAppender
35 | log4j.appender.file.layout=org.apache.log4j.PatternLayout
36 | log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
37 | log4j.appender.file.file=target/camel-rcode-test.log
38 | log4j.appender.file.append=true
39 |
--------------------------------------------------------------------------------
/examples/camel-example-cics/src/main/resources/log4j.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 | #
22 | # The logging properties used for testing
23 | #
24 | log4j.rootLogger=INFO, out
25 |
26 | #log4j.logger.org.apache.camel=DEBUG
27 |
28 | # CONSOLE appender not used by default
29 | log4j.appender.out=org.apache.log4j.ConsoleAppender
30 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
31 | log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n
32 | #log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
33 |
34 | # File appender
35 | log4j.appender.file=org.apache.log4j.FileAppender
36 | log4j.appender.file.layout=org.apache.log4j.PatternLayout
37 | log4j.appender.file.layout.ConversionPattern=%d %-5p %c{1} - %m %n
38 | log4j.appender.file.file=target/camel-test.log
--------------------------------------------------------------------------------
/platform/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
24 | 4.0.0
25 |
26 |
27 | org.apache-extras.camel-extra
28 | camel-parent
29 | 2.15.4-SNAPSHOT
30 | ..
31 |
32 |
33 | platform
34 | Camel Extra :: Platform
35 | Camel Extra Platform
36 | pom
37 |
38 |
39 | karaf
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/template/DetachedSessionWithReturnValue.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.ISession;
25 | import org.virtualbox_4_2.VirtualBoxManager;
26 |
27 | public class DetachedSessionWithReturnValue extends DetachedSession {
28 |
29 | private final T value;
30 |
31 | public DetachedSessionWithReturnValue(VirtualBoxManager virtualBoxManager, ISession session, T value) {
32 | super(virtualBoxManager, session);
33 | this.value = value;
34 | }
35 |
36 | public T value() {
37 | return value;
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/components/camel-zeromq/src/main/java/org/apacheextras/camel/component/zeromq/DefaultMessageConvertor.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 class DefaultMessageConvertor implements MessageConverter {
27 |
28 | @Override
29 | public byte[] convert(Exchange arg0) {
30 | Object msg = arg0.getIn().getBody();
31 | if (msg instanceof String) {
32 | return ((String)msg).getBytes();
33 | } else if (msg instanceof byte[]) {
34 | return (byte[])msg;
35 | } else {
36 | return msg.toString().getBytes();
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/components/camel-exist/src/main/java/org/apacheextras/camel/component/exist/RuntimeExistException.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.exist;
23 |
24 | import org.apache.camel.RuntimeCamelException;
25 | import org.xmldb.api.base.XMLDBException;
26 |
27 | public class RuntimeExistException extends RuntimeCamelException {
28 | private ExistEndpoint endpoint;
29 |
30 | public RuntimeExistException(ExistEndpoint endpoint, XMLDBException e) {
31 | super("Failed to process: " + endpoint + ". Reason: " + e, e);
32 | this.endpoint = endpoint;
33 | }
34 |
35 | public ExistEndpoint getEndpoint() {
36 | return endpoint;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/components/camel-jcifs/src/test/resources/log4j.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 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 | #
22 | # The logging properties used for eclipse testing, We want to see debug output on the console.
23 | #
24 | log4j.rootLogger=INFO, file
25 |
26 | #log4j.logger.org.apacheextras.camel.component.jcifs=DEBUG
27 |
28 | # CONSOLE appender not used by default
29 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
30 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
31 | log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
32 |
33 | # File appender
34 | log4j.appender.file=org.apache.log4j.FileAppender
35 | log4j.appender.file.layout=org.apache.log4j.PatternLayout
36 | log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
37 | log4j.appender.file.file=target/camel-jcifs-test.log
38 | log4j.appender.file.append=true
39 |
--------------------------------------------------------------------------------
/components/camel-virtualbox/src/test/resources/log4j.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 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 | #
22 | # The logging properties used for eclipse testing, We want to see debug output on the console.
23 | #
24 | log4j.rootLogger=INFO, file
25 |
26 | #log4j.logger.org.apacheextras.camel.component=DEBUG
27 |
28 | # CONSOLE appender not used by default
29 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
30 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
31 | log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
32 |
33 | # File appender
34 | log4j.appender.file=org.apache.log4j.FileAppender
35 | log4j.appender.file.layout=org.apache.log4j.PatternLayout
36 | log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
37 | log4j.appender.file.file=target/camel-virtualbox-test.log
38 | log4j.appender.file.append=true
39 |
--------------------------------------------------------------------------------
/tests/camel-extra-itest-karaf/src/test/java/org/apacheextras/camel/itest/karaf/CamelZeromqTest.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.itest.karaf;
23 |
24 | import org.apache.karaf.features.Feature;
25 | import org.junit.Test;
26 | import org.junit.runner.RunWith;
27 | import org.ops4j.pax.exam.junit.PaxExam;
28 |
29 | @RunWith(PaxExam.class)
30 | public class CamelZeromqTest extends AbstractFeatureTest {
31 |
32 | @Test
33 | public void test() {
34 | assertTrue(getKarafFeatureUrl().toString().contains(KARAF_VERSION));
35 | Feature feature = getFeature(fullComponentName());
36 | assertEquals(fullComponentName(), feature.getName());
37 | assertTrue(isInstalled(feature));
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/components/camel-db4o/src/test/resources/log4j.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 | #
22 | # The logging properties used for eclipse testing, We want to see debug output on the console.
23 | #
24 | log4j.rootLogger=INFO, out
25 |
26 | log4j.logger.org.apache.camel=DEBUG
27 | log4j.logger.org.springframework=WARN
28 | #log4j.logger.org.apache.activemq=DEBUG
29 |
30 |
31 | # CONSOLE appender not used by default
32 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
33 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
34 | log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
35 |
36 | # File appender
37 | log4j.appender.out=org.apache.log4j.FileAppender
38 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
39 | log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
40 | log4j.appender.out.file=target/camel-db4o-test.log
41 | log4j.appender.out.append=true
--------------------------------------------------------------------------------
/components/camel-jcifs/src/integrationtest/resources/log4j.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 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 | #
22 | # The logging properties used for eclipse testing, We want to see debug output on the console.
23 | #
24 | log4j.rootLogger=INFO, out
25 |
26 | # uncomment the following line to turn on Camel debugging
27 | log4j.logger.org.apache.camel=DEBUG
28 |
29 | # uncomment the following line to turn on ActiveMQ debugging
30 | #log4j.logger.org.apache.activemq=DEBUG
31 |
32 | log4j.logger.org.springframework=DEBUG
33 |
34 |
35 | # CONSOLE appender not used by default
36 | log4j.appender.out=org.apache.log4j.ConsoleAppender
37 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
38 | log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n
39 | #log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
40 |
41 | log4j.throwableRenderer=org.apache.log4j.EnhancedThrowableRenderer
--------------------------------------------------------------------------------
/components/camel-spring-neo4j/src/test/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | ## ---------------------------------------------------------------------------
2 | ## Licensed to the Apache Software Foundation (ASF) under one or more
3 | ## contributor license agreements. See the NOTICE file distributed with
4 | ## this work for additional information regarding copyright ownership.
5 | ## The ASF licenses this file to You under the Apache License, Version 2.0
6 | ## (the "License"); you may not use this file except in compliance with
7 | ## the License. You may obtain a copy of the License at
8 | ##
9 | ## http://www.apache.org/licenses/LICENSE-2.0
10 | ##
11 | ## Unless required by applicable law or agreed to in writing, software
12 | ## distributed under the License is distributed on an "AS IS" BASIS,
13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | ## See the License for the specific language governing permissions and
15 | ## limitations under the License.
16 | ## ---------------------------------------------------------------------------
17 |
18 | #
19 | # The logging properties used during tests..
20 | #
21 | log4j.rootLogger=INFO, file
22 |
23 | #log4j.logger.org.apache.camel=DEBUG
24 |
25 | # CONSOLE appender not used by default
26 | log4j.appender.out=org.apache.log4j.ConsoleAppender
27 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
28 | log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
29 |
30 | # File appender
31 | log4j.appender.file=org.apache.log4j.FileAppender
32 | log4j.appender.file.layout=org.apache.log4j.PatternLayout
33 | log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
34 | log4j.appender.file.file=target/camel-neo4j-test.log
35 | log4j.appender.file.append=true
36 |
--------------------------------------------------------------------------------
/examples/camel-example-esper/src/main/java/org/apacheextras/camel/examples/esper/MarketDataEvent.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 | import java.io.Serializable;
25 |
26 | public class MarketDataEvent implements Serializable {
27 |
28 | private static final long serialVersionUID = 5171705971847030315L;
29 | private String symbol;
30 | private FeedEnum feed;
31 |
32 | public MarketDataEvent(String symbol, FeedEnum feed) {
33 | this.symbol = symbol;
34 | this.feed = feed;
35 | }
36 |
37 | public String getSymbol() {
38 | return symbol;
39 | }
40 |
41 | public FeedEnum getFeed() {
42 | return feed;
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/examples/camel-example-rcode/src/test/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | ## ---------------------------------------------------------------------------
2 | ## Licensed to the Apache Software Foundation (ASF) under one or more
3 | ## contributor license agreements. See the NOTICE file distributed with
4 | ## this work for additional information regarding copyright ownership.
5 | ## The ASF licenses this file to You under the Apache License, Version 2.0
6 | ## (the "License"); you may not use this file except in compliance with
7 | ## the License. You may obtain a copy of the License at
8 | ##
9 | ## http://www.apache.org/licenses/LICENSE-2.0
10 | ##
11 | ## Unless required by applicable law or agreed to in writing, software
12 | ## distributed under the License is distributed on an "AS IS" BASIS,
13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | ## See the License for the specific language governing permissions and
15 | ## limitations under the License.
16 | ## ---------------------------------------------------------------------------
17 |
18 | #
19 | # The logging properties used during tests..
20 | #
21 | log4j.rootLogger=INFO, file
22 |
23 | #log4j.logger.org.apache.camel=DEBUG
24 |
25 | # CONSOLE appender not used by default
26 | log4j.appender.out=org.apache.log4j.ConsoleAppender
27 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
28 | log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
29 |
30 | # File appender
31 | log4j.appender.file=org.apache.log4j.FileAppender
32 | log4j.appender.file.layout=org.apache.log4j.PatternLayout
33 | log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
34 | log4j.appender.file.file=target/camel-neo4j-test.log
35 | log4j.appender.file.append=true
36 |
--------------------------------------------------------------------------------
/components/camel-couchbase/src/main/java/org/apacheextras/camel/component/couchbase/CouchbaseException.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 |
23 | package org.apacheextras.camel.component.couchbase;
24 |
25 | import org.apache.camel.CamelExchangeException;
26 | import org.apache.camel.Exchange;
27 |
28 | /**
29 | * Couchbase exception.
30 | */
31 |
32 | public class CouchbaseException extends CamelExchangeException {
33 |
34 | private static final long serialVersionUID = 1L;
35 |
36 | public CouchbaseException(String message, Exchange exchange) {
37 | super(message, exchange);
38 | }
39 |
40 | public CouchbaseException(String message, Exchange exchange, Throwable cause) {
41 | super(message, exchange, cause);
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/components/camel-hibernate/src/test/resources/log4j.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 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 | #
22 | # The logging properties used for eclipse testing, We want to see debug output on the console.
23 | #
24 | log4j.rootLogger=INFO, out
25 |
26 | log4j.logger.org.apache.camel=DEBUG
27 | log4j.logger.org.springframework=WARN
28 | #log4j.logger.org.apache.activemq=DEBUG
29 |
30 |
31 | # CONSOLE appender not used by default
32 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
33 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
34 | log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
35 |
36 | # File appender
37 | log4j.appender.out=org.apache.log4j.FileAppender
38 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
39 | log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
40 | log4j.appender.out.file=target/camel-hibernate-test.log
41 | log4j.appender.out.append=true
--------------------------------------------------------------------------------
/components/camel-jcifs/src/main/java/org/apacheextras/camel/component/jcifs/SmbApiFactory.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 java.io.IOException;
25 |
26 | import java.net.MalformedURLException;
27 | import java.net.UnknownHostException;
28 |
29 | import jcifs.smb.NtlmPasswordAuthentication;
30 | import jcifs.smb.SmbException;
31 | import jcifs.smb.SmbFile;
32 | import jcifs.smb.SmbFileOutputStream;
33 |
34 | /**
35 | * Factory interface for creating jcifs API objects.
36 | */
37 | public interface SmbApiFactory {
38 |
39 | SmbFile createSmbFile(String url, NtlmPasswordAuthentication authentication) throws IOException;
40 |
41 | SmbFileOutputStream createSmbFileOutputStream(SmbFile smbFile, boolean b) throws IOException;
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/tests/camel-extra-itest-karaf/src/test/java/org/apacheextras/camel/itest/karaf/CamelJcifsTest.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.itest.karaf;
23 |
24 | import org.junit.Test;
25 | import org.junit.runner.RunWith;
26 | import org.ops4j.pax.exam.junit.PaxExam;
27 |
28 | @RunWith(PaxExam.class)
29 | public class CamelJcifsTest extends AbstractFeatureTest {
30 |
31 | public static final String COMPONENT = extractName(CamelJcifsTest.class);
32 |
33 | @Test
34 | public void test() {
35 | assertTrue(getKarafFeatureUrl().toString().contains(KARAF_VERSION));
36 | assertEquals("camel-" + COMPONENT, getFeature(new StringBuilder().append("camel-").append(COMPONENT).toString()).getName());
37 | assertTrue(isInstalled(getFeature(new StringBuilder().append("camel-").append(COMPONENT).toString())));
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tests/camel-extra-itest-karaf/src/test/java/org/apacheextras/camel/itest/karaf/CamelRcodeTest.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.itest.karaf;
23 |
24 | import org.junit.Test;
25 | import org.junit.runner.RunWith;
26 | import org.ops4j.pax.exam.junit.PaxExam;
27 |
28 | @RunWith(PaxExam.class)
29 | public class CamelRcodeTest extends AbstractFeatureTest {
30 |
31 | public static final String COMPONENT = extractName(CamelRcodeTest.class);
32 |
33 | @Test
34 | public void test() {
35 | assertTrue(getKarafFeatureUrl().toString().contains(KARAF_VERSION));
36 | assertEquals("camel-" + COMPONENT, getFeature(new StringBuilder().append("camel-").append(COMPONENT).toString()).getName());
37 | assertTrue(isInstalled(getFeature(new StringBuilder().append("camel-").append(COMPONENT).toString())));
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/command/ProgressingVirtualBoxCommandHandler.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 | import org.apacheextras.camel.component.virtualbox.template.ProgressListener;
25 | import org.apacheextras.camel.component.virtualbox.template.VirtualBoxTemplate;
26 |
27 | public abstract class ProgressingVirtualBoxCommandHandler, R> extends VirtualBoxCommandHandler {
28 |
29 | protected final ProgressListener progressListener;
30 |
31 | protected ProgressingVirtualBoxCommandHandler(VirtualBoxTemplate virtualBoxTemplate, ProgressListener progressListener) {
32 | super(virtualBoxTemplate);
33 | this.progressListener = progressListener;
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/tests/camel-extra-itest-karaf/src/test/java/org/apacheextras/camel/itest/karaf/CamelExistTest.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.itest.karaf;
23 |
24 | import org.junit.Test;
25 | import org.junit.runner.RunWith;
26 | import org.ops4j.pax.exam.junit.PaxExam;
27 |
28 | @RunWith(PaxExam.class)
29 | public class CamelExistTest extends AbstractFeatureTest {
30 |
31 | public static final String COMPONENT = extractName(CamelExistTest.class);
32 |
33 | @Test
34 | public void test() {
35 | assertTrue(getKarafFeatureUrl().toString().contains(KARAF_VERSION));
36 | assertEquals("camel-" + COMPONENT, getFeature(new StringBuilder().append("camel-").append(COMPONENT).toString()).getName());
37 | assertTrue(isInstalled(getFeature(new StringBuilder().append("camel-").append(COMPONENT).toString())));
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/tests/camel-extra-itest-karaf/src/test/java/org/apacheextras/camel/itest/karaf/CamelJbossTest.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.itest.karaf;
23 |
24 | import org.junit.Test;
25 | import org.junit.runner.RunWith;
26 | import org.ops4j.pax.exam.junit.PaxExam;
27 |
28 | @RunWith(PaxExam.class)
29 | public class CamelJbossTest extends AbstractFeatureTest {
30 |
31 | public static final String COMPONENT = extractName(CamelJbossTest.class);
32 |
33 | @Test
34 | public void test() {
35 | assertTrue(getKarafFeatureUrl().toString().contains(KARAF_VERSION));
36 | assertEquals("camel-" + COMPONENT, getFeature(new StringBuilder().append("camel-").append(COMPONENT).toString()).getName());
37 | assertTrue(isInstalled(getFeature(new StringBuilder().append("camel-").append(COMPONENT).toString())));
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/tests/camel-extra-itest-karaf/src/test/java/org/apacheextras/camel/itest/karaf/CamelVtdxmlTest.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.itest.karaf;
23 |
24 | import org.junit.Test;
25 | import org.junit.runner.RunWith;
26 | import org.ops4j.pax.exam.junit.PaxExam;
27 |
28 | @RunWith(PaxExam.class)
29 | public class CamelVtdxmlTest extends AbstractFeatureTest {
30 |
31 | public static final String COMPONENT = extractName(CamelVtdxmlTest.class);
32 |
33 | @Test
34 | public void test() {
35 | assertTrue(getKarafFeatureUrl().toString().contains(KARAF_VERSION));
36 | assertEquals("camel-" + COMPONENT, getFeature(new StringBuilder().append("camel-").append(COMPONENT).toString()).getName());
37 | assertTrue(isInstalled(getFeature(new StringBuilder().append("camel-").append(COMPONENT).toString())));
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/components/camel-esper/src/test/java/org/apacheextras/camel/component/esper/MyEvent.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.esper;
23 |
24 | public class MyEvent {
25 | private String foo;
26 | private int bar = 0;
27 |
28 | public MyEvent() {
29 | }
30 |
31 | public MyEvent(String foo, int bar) {
32 | this.foo = foo;
33 | this.bar = bar;
34 | }
35 |
36 | @Override
37 | public String toString() {
38 | return "MyEvent[foo: " + foo + " bar: " + bar + "]";
39 | }
40 |
41 | public int getBar() {
42 | return bar;
43 | }
44 |
45 | public void setBar(int bar) {
46 | this.bar = bar;
47 | }
48 |
49 | public String getFoo() {
50 | return foo;
51 | }
52 |
53 | public void setFoo(String foo) {
54 | this.foo = foo;
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/components/camel-vtdxml/src/test/java/org/apacheextras/camel/component/vtdxml/VtdXPathRouteDslTest.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.vtdxml;
23 |
24 | import org.apache.camel.builder.RouteBuilder;
25 |
26 | /**
27 | *
28 | */
29 | public class VtdXPathRouteDslTest extends VtdXPathRouteTest {
30 |
31 | @Override
32 | protected RouteBuilder createRouteBuilder() throws Exception {
33 | return new RouteBuilder() {
34 | @Override
35 | public void configure() throws Exception {
36 | from("file:src/test/data?noop=true").split().language("vtdxml", "/persons/person").to("log:line").choice().when()
37 | .language("vtdxml", "/person/name = 'James Strachan'").to("mock:james").otherwise().to("mock:other").end().end();
38 | }
39 | };
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/tests/camel-extra-itest-karaf/src/test/java/org/apacheextras/camel/itest/karaf/CamelJboss6Test.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.itest.karaf;
23 |
24 | import org.junit.Test;
25 | import org.junit.runner.RunWith;
26 | import org.ops4j.pax.exam.junit.PaxExam;
27 |
28 | @RunWith(PaxExam.class)
29 | public class CamelJboss6Test extends AbstractFeatureTest {
30 |
31 | public static final String COMPONENT = extractName(CamelJboss6Test.class);
32 |
33 | @Test
34 | public void test() {
35 | assertTrue(getKarafFeatureUrl().toString().contains(KARAF_VERSION));
36 | assertEquals("camel-" + COMPONENT, getFeature(new StringBuilder().append("camel-").append(COMPONENT).toString()).getName());
37 | assertTrue(isInstalled(getFeature(new StringBuilder().append("camel-").append(COMPONENT).toString())));
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/components/camel-hibernate/src/main/java/org/apacheextras/camel/component/hibernate/Consumed.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 java.lang.annotation.ElementType;
25 | import java.lang.annotation.Retention;
26 | import java.lang.annotation.RetentionPolicy;
27 | import java.lang.annotation.Target;
28 |
29 | /**
30 | * An annotation to mark a method to be invoked when an entity bean has been
31 | * successfully processed by a Camel consumer, so that it can be updated in some
32 | * way to remove it from the query set.
33 | *
34 | * For example a method may be marked to set an active flag to false or to
35 | * update some status value to the next step in a workflow
36 | */
37 | @Retention(RetentionPolicy.RUNTIME)
38 | @Target({ElementType.METHOD})
39 | public @interface Consumed {
40 | }
41 |
--------------------------------------------------------------------------------
/tests/camel-extra-itest-karaf/src/test/java/org/apacheextras/camel/itest/karaf/CamelVirtualboxTest.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.itest.karaf;
23 |
24 | import org.junit.Test;
25 | import org.junit.runner.RunWith;
26 | import org.ops4j.pax.exam.junit.PaxExam;
27 |
28 | @RunWith(PaxExam.class)
29 | public class CamelVirtualboxTest extends AbstractFeatureTest {
30 |
31 | public static final String COMPONENT = extractName(CamelVirtualboxTest.class);
32 |
33 | @Test
34 | public void test() {
35 | assertTrue(getKarafFeatureUrl().toString().contains(KARAF_VERSION));
36 | assertEquals("camel-" + COMPONENT, getFeature(new StringBuilder().append("camel-").append(COMPONENT).toString()).getName());
37 | assertTrue(isInstalled(getFeature(new StringBuilder().append("camel-").append(COMPONENT).toString())));
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/examples/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
24 | 4.0.0
25 |
26 |
27 | org.apache-extras.camel-extra
28 | camel-parent
29 | 2.15.4-SNAPSHOT
30 | ..
31 |
32 |
33 | examples
34 | Camel Extra :: Component Examples
35 | Camel Extra Components Examples
36 | pom
37 |
38 |
39 |
40 | camel-example-esper
41 | camel-example-hibernate
42 | camel-example-rcode
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/command/handlers/SetBiosSystemTimeOffsetCommand.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.MachineAwareVirtualBoxCommand;
25 | import org.apacheextras.camel.component.virtualbox.command.NoReturnValue;
26 |
27 | public class SetBiosSystemTimeOffsetCommand extends MachineAwareVirtualBoxCommand {
28 |
29 | public static final String HEADER_OFFSET = "VIRTUALBOX_BIOS_SYSTEM_TIME_OFFSET";
30 |
31 | private final long offset;
32 |
33 | public SetBiosSystemTimeOffsetCommand(String machineName, long offset) {
34 | super(machineName);
35 | this.offset = offset;
36 | }
37 |
38 | public long offset() {
39 | return offset;
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/tests/camel-extra-itest-karaf/src/test/java/org/apacheextras/camel/itest/karaf/CamelEsperTest.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.itest.karaf;
23 |
24 | import org.apache.karaf.features.Feature;
25 | import org.junit.Test;
26 | import org.junit.runner.RunWith;
27 | import org.ops4j.pax.exam.junit.PaxExam;
28 |
29 | @RunWith(PaxExam.class)
30 | public class CamelEsperTest extends AbstractFeatureTest {
31 |
32 | @Test
33 | public void shouldInstallFeature() {
34 | assertIsFeatureInstalled();
35 | }
36 |
37 | @Test
38 | public void shouldInstallFeatureOnValidKaraf() {
39 | assertTrue(getKarafFeatureUrl().toString().contains(KARAF_VERSION));
40 | }
41 |
42 | @Test
43 | public void shouldUseProperFeatureName() {
44 | Feature feature = getFeature(fullComponentName());
45 | assertEquals(fullComponentName(), feature.getName());
46 | }
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/tests/camel-extra-itest-karaf/src/test/java/org/apacheextras/camel/itest/karaf/CamelCouchbaseTest.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.itest.karaf;
23 |
24 | import org.apache.karaf.features.Feature;
25 | import org.junit.Test;
26 | import org.junit.runner.RunWith;
27 | import org.ops4j.pax.exam.junit.PaxExam;
28 |
29 | @RunWith(PaxExam.class)
30 | public class CamelCouchbaseTest extends AbstractFeatureTest {
31 |
32 | @Test
33 | public void shouldInstallFeature() {
34 | assertIsFeatureInstalled();
35 | }
36 |
37 | @Test
38 | public void shouldInstallFeatureOnValidKaraf() {
39 | assertTrue(getKarafFeatureUrl().toString().contains(KARAF_VERSION));
40 | }
41 |
42 | @Test
43 | public void shouldUseProperFeatureName() {
44 | Feature feature = getFeature(fullComponentName());
45 | assertEquals(fullComponentName(), feature.getName());
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/tests/camel-extra-itest-karaf/src/test/java/org/apacheextras/camel/itest/karaf/CamelHibernateTest.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.itest.karaf;
23 |
24 | import org.apache.karaf.features.Feature;
25 | import org.junit.Test;
26 | import org.junit.runner.RunWith;
27 | import org.ops4j.pax.exam.junit.PaxExam;
28 |
29 | @RunWith(PaxExam.class)
30 | public class CamelHibernateTest extends AbstractFeatureTest {
31 |
32 | @Test
33 | public void shouldInstallFeature() {
34 | assertIsFeatureInstalled();
35 | }
36 |
37 | @Test
38 | public void shouldInstallFeatureOnValidKaraf() {
39 | assertTrue(getKarafFeatureUrl().toString().contains(KARAF_VERSION));
40 | }
41 |
42 | @Test
43 | public void shouldUseProperFeatureName() {
44 | Feature feature = getFeature(fullComponentName());
45 | assertEquals(fullComponentName(), feature.getName());
46 | }
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/components/camel-couchbase/src/main/java/org/apacheextras/camel/component/couchbase/CouchbaseComponent.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.couchbase;
23 |
24 | import org.apache.camel.CamelContext;
25 | import org.apache.camel.impl.DefaultComponent;
26 |
27 | import java.util.Map;
28 |
29 | /**
30 | * Couchbase component.
31 | */
32 |
33 | public class CouchbaseComponent extends DefaultComponent {
34 |
35 | public CouchbaseComponent() {
36 |
37 | }
38 |
39 | public CouchbaseComponent(CamelContext context) {
40 | super(context);
41 | }
42 |
43 | @Override
44 | protected CouchbaseEndpoint createEndpoint(String uri, String remaining, Map parameters) throws Exception {
45 | CouchbaseEndpoint endpoint = new CouchbaseEndpoint(uri, remaining, this);
46 | setProperties(endpoint, parameters);
47 | return endpoint;
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/tests/camel-extra-itest-karaf/src/test/java/org/apacheextras/camel/itest/karaf/CamelDb4oTest.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.itest.karaf;
23 |
24 | import org.apache.karaf.features.Feature;
25 | import org.junit.Test;
26 | import org.junit.Ignore;
27 | import org.junit.runner.RunWith;
28 | import org.ops4j.pax.exam.junit.PaxExam;
29 |
30 | @Ignore
31 | @RunWith(PaxExam.class)
32 | public class CamelDb4oTest extends AbstractFeatureTest {
33 |
34 | @Test
35 | public void shouldInstallFeature() {
36 | assertIsFeatureInstalled();
37 | }
38 |
39 | @Test
40 | public void shouldInstallFeatureOnValidKaraf() {
41 | assertTrue(getKarafFeatureUrl().toString().contains(KARAF_VERSION));
42 | }
43 |
44 | @Test
45 | public void shouldUseProperFeatureName() {
46 | Feature feature = getFeature(fullComponentName());
47 | assertEquals(fullComponentName(), feature.getName());
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/template/WebServiceVirtualBoxManagerFactory.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 class WebServiceVirtualBoxManagerFactory implements VirtualBoxManagerFactory {
27 |
28 | private final String url;
29 |
30 | private final String username;
31 |
32 | private final String password;
33 |
34 | public WebServiceVirtualBoxManagerFactory(String url, String username, String password) {
35 | this.url = url;
36 | this.username = username;
37 | this.password = password;
38 | }
39 |
40 | @Override
41 | public VirtualBoxManager create() {
42 | VirtualBoxManager virtualBoxManager = VirtualBoxManager.createInstance(null);
43 | virtualBoxManager.connect(url, username, password);
44 | return virtualBoxManager;
45 | }
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/components/camel-hibernate/src/main/java/org/apacheextras/camel/component/hibernate/DeleteHandler.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 | /**
27 | * A strategy for deleting entity beans which have been processed; either by a
28 | * real delete or by an update of some application specific properties so that
29 | * the entity bean will not be found in future polling queries.
30 | */
31 | public interface DeleteHandler {
32 |
33 | /**
34 | * Deletes the entity bean after it has been processed either by actually
35 | * deleting the object or updating it in a way so that future queries do not
36 | * return this object again.
37 | *
38 | * @param session the session
39 | * @param entityBean the entity bean that has been processed and should be
40 | * deleted
41 | */
42 | void deleteObject(Session session, Object entityBean);
43 | }
44 |
--------------------------------------------------------------------------------
/components/camel-spring-neo4j/src/test/java/org/apacheextras/camel/component/neo4j/Neo4jEndpointTest.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 |
23 | package org.apacheextras.camel.component.neo4j;
24 |
25 | import java.net.URISyntaxException;
26 |
27 | import org.apacheextras.camel.component.neo4j.Neo4jComponent;
28 | import org.apacheextras.camel.component.neo4j.Neo4jEndpoint;
29 | import org.junit.Test;
30 |
31 | import static org.junit.Assert.assertTrue;
32 |
33 | public class Neo4jEndpointTest {
34 |
35 | @Test
36 | public void assertSingleton() throws URISyntaxException {
37 | Neo4jEndpoint endpoint = new Neo4jEndpoint("spring-neo4j:http://localhost/db", "http://localhost/db", new Neo4jComponent());
38 | assertTrue(endpoint.isSingleton());
39 | }
40 |
41 | @Test(expected = UnsupportedOperationException.class)
42 | public void testConsumerUnsupported() throws Exception {
43 | new Neo4jEndpoint("ignored", "http://localhost:80/db", new Neo4jComponent()).createConsumer(null);
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/components/camel-couchbase/src/test/java/org/apacheextras/camel/component/couchbase/CouchbaseConsumerTest.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.couchbase;
23 |
24 | import com.couchbase.client.CouchbaseClient;
25 | import com.couchbase.client.vbucket.ConfigurationException;
26 | import org.apache.camel.Exchange;
27 | import org.apache.camel.Processor;
28 | import org.junit.Test;
29 |
30 | import java.net.URI;
31 | import java.util.ArrayList;
32 |
33 | public class CouchbaseConsumerTest {
34 |
35 | @Test(expected = ConfigurationException.class)
36 | public void testNewCouchbaseConsumer() throws Exception {
37 | CouchbaseConsumer couchbaseConsumer = new CouchbaseConsumer(new CouchbaseEndpoint(), new CouchbaseClient(new ArrayList(), "bucketName", "pwd"), new Processor() {
38 | @Override
39 | public void process(Exchange exchange) throws Exception {
40 | // Nothing to do
41 | }
42 | });
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/components/camel-hibernate/src/test/java/org/apacheextras/camel/examples/SendEmail.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.examples;
23 |
24 | /**
25 | * Represents a task which is added to the database, then removed from the
26 | * database when it is consumed
27 | */
28 | public class SendEmail {
29 | private Long id;
30 | private String address;
31 |
32 | public SendEmail() {
33 | }
34 |
35 | public SendEmail(String address) {
36 | setAddress(address);
37 | }
38 |
39 | @Override
40 | public String toString() {
41 | return "SendEmail[id: " + getId() + " address: " + getAddress() + "]";
42 | }
43 |
44 | public Long getId() {
45 | return id;
46 | }
47 |
48 | public void setId(Long id) {
49 | this.id = id;
50 | }
51 |
52 | public String getAddress() {
53 | return address;
54 | }
55 |
56 | public void setAddress(String address) {
57 | this.address = address;
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/components/camel-virtualbox/src/main/java/org/apacheextras/camel/component/virtualbox/template/DetachedSession.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.ISession;
25 | import org.virtualbox_4_2.VirtualBoxManager;
26 |
27 | import static org.apacheextras.camel.component.virtualbox.template.VirtualBoxSessionUtil.closeSession;
28 |
29 | public class DetachedSession {
30 |
31 | private final VirtualBoxManager virtualBoxManager;
32 |
33 | private final ISession session;
34 |
35 | public DetachedSession(VirtualBoxManager virtualBoxManager, ISession session) {
36 | this.virtualBoxManager = virtualBoxManager;
37 | this.session = session;
38 | }
39 |
40 | public void close() {
41 | closeSession(virtualBoxManager, session);
42 | }
43 |
44 | VirtualBoxManager virtualBoxManager() {
45 | return virtualBoxManager;
46 | }
47 |
48 | ISession session() {
49 | return session;
50 | }
51 |
52 | }
53 |
--------------------------------------------------------------------------------
/examples/camel-example-hibernate/src/main/java/org/apacheextras/camel/examples/hibernate/Order.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.hibernate;
23 |
24 | /**
25 | *
26 | */
27 | public class Order {
28 |
29 | private int id;
30 | private int item;
31 | private int amount;
32 | private String description;
33 |
34 | public int getAmount() {
35 | return amount;
36 | }
37 |
38 | public void setAmount(int amount) {
39 | this.amount = amount;
40 | }
41 |
42 | public String getDescription() {
43 | return description;
44 | }
45 |
46 | public void setDescription(String description) {
47 | this.description = description;
48 | }
49 |
50 | public int getId() {
51 | return id;
52 | }
53 |
54 | public void setId(int id) {
55 | this.id = id;
56 | }
57 |
58 | public int getItem() {
59 | return item;
60 | }
61 |
62 | public void setItem(int item) {
63 | this.item = item;
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/components/camel-db4o/src/main/java/org/apacheextras/camel/component/db4o/Db4oComponent.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 | import java.util.Map;
25 |
26 | import com.db4o.ObjectContainer;
27 | import org.apache.camel.Endpoint;
28 | import org.apache.camel.impl.DefaultComponent;
29 | import org.apache.camel.util.ObjectHelper;
30 |
31 | /**
32 | * @version $Revision$
33 | */
34 | public class Db4oComponent extends DefaultComponent {
35 |
36 | private ObjectContainer objectContainer;
37 |
38 | @Override
39 | protected Endpoint createEndpoint(String uri, String path, Map options) throws Exception {
40 | Db4oEndpoint endpoint = new Db4oEndpoint(uri, ObjectHelper.loadClass(path), this);
41 | return endpoint;
42 | }
43 |
44 | public ObjectContainer getObjectContainer() {
45 | return objectContainer;
46 | }
47 |
48 | public void setObjectContainer(ObjectContainer objectContainer) {
49 | this.objectContainer = objectContainer;
50 | }
51 |
52 | }
53 |
--------------------------------------------------------------------------------
/components/camel-jcifs/src/main/java/org/apacheextras/camel/component/jcifs/SmbClient.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 jcifs.smb.SmbFile;
25 |
26 | import java.io.IOException;
27 | import java.io.InputStream;
28 | import java.io.OutputStream;
29 | import java.util.List;
30 |
31 | public interface SmbClient {
32 | void login(String domain, String username, String password);
33 |
34 | boolean retrieveFile(String url, OutputStream out) throws IOException;
35 |
36 | boolean createDirs(String url);
37 |
38 | InputStream getInputStream(String url) throws IOException;
39 |
40 | boolean storeFile(String url, InputStream inputStream, boolean append, Long lastModified) throws IOException;
41 |
42 | List listFiles(String url) throws IOException;
43 |
44 | boolean isExist(String url) throws Exception;
45 |
46 | boolean delete(String url) throws Exception;
47 |
48 | boolean rename(String fromUrl, String toUrl) throws Exception;
49 | }
50 |
--------------------------------------------------------------------------------
/components/camel-jcifs/src/main/java/org/apacheextras/camel/component/jcifs/JcifsSmbApiFactory.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 java.io.IOException;
25 |
26 | import java.net.MalformedURLException;
27 | import java.net.UnknownHostException;
28 |
29 | import jcifs.smb.NtlmPasswordAuthentication;
30 | import jcifs.smb.SmbException;
31 | import jcifs.smb.SmbFile;
32 | import jcifs.smb.SmbFileOutputStream;
33 |
34 | /**
35 | * Default implementation of the the {@link SmbApiFactory} uses the JCIFS API.
36 | */
37 | public class JcifsSmbApiFactory implements SmbApiFactory {
38 |
39 | @Override
40 | public SmbFile createSmbFile(String url, NtlmPasswordAuthentication authentication) throws IOException {
41 | return new SmbFile(url, authentication);
42 | }
43 |
44 | @Override
45 | public SmbFileOutputStream createSmbFileOutputStream(SmbFile smbFile, boolean b) throws IOException {
46 | return new SmbFileOutputStream(smbFile, b);
47 | }
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/examples/camel-example-cics/src/main/java/org/apacheextras/camel/examples/cics/commareas/EC01Impl.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 | import java.io.UnsupportedEncodingException;
25 |
26 | public class EC01Impl extends CommAreaImpl implements EC01 {
27 |
28 | private static final int COMMAREA_SIZE = 18;
29 |
30 | private final byte[] byteCommArea = new byte[COMMAREA_SIZE];
31 |
32 | private final String commArea = "";
33 |
34 | @Override
35 | public String getData() {
36 | return this.commArea;
37 | }
38 |
39 | @Override
40 | public byte[] getDataBuffer() {
41 | try {
42 | System.arraycopy(getBytes(this.commArea, ENCODING_CP1145), 0, byteCommArea, 0,
43 | Math.min(byteCommArea.length, this.commArea.length()));
44 | } catch (UnsupportedEncodingException e) {
45 | e.printStackTrace();
46 | }
47 |
48 | return this.byteCommArea;
49 | }
50 |
51 | }
--------------------------------------------------------------------------------
/examples/camel-example-rcode/src/test/java/org/apacheextras/camel/examples/rcode/types/ForecastDocumentTest.java:
--------------------------------------------------------------------------------
1 | /**
2 | * ************************************************************************************
3 | * https://camel-extra.github.io
4 | *
5 | * This program is free software; you can redistribute it and/or modify it under
6 | * the terms of the GNU General Public License as published by the Free Software
7 | * Foundation; either version 2 of the License, or (at your option) any later
8 | * version.
9 | *
10 | * This program is distributed in the hope that it will be useful, but WITHOUT
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 | * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13 | * details.
14 | *
15 | *
16 | * You should have received a copy of the GNU General Public License along with
17 | * this program; if not, write to the Free Software Foundation, Inc., 51
18 | * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 | *
20 | * http://www.gnu.org/licenses/gpl-2.0-standalone.html
21 | **************************************************************************************
22 | */
23 | package org.apacheextras.camel.examples.rcode.types;
24 |
25 | import org.junit.Test;
26 |
27 | import java.util.Date;
28 |
29 | import static org.junit.Assert.assertArrayEquals;
30 | import static org.junit.Assert.assertEquals;
31 | import static org.junit.Assert.assertNotNull;
32 |
33 | public class ForecastDocumentTest {
34 |
35 | @Test
36 | public void createInitializedForecastDocument() {
37 | final ForecastDocument forecastDocument = new ForecastDocument("Test ForecastDocument", "tmp/path", new Date(), new byte[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 0});
38 | assertEquals("Test ForecastDocument", forecastDocument.getTitle());
39 | assertEquals("tmp/path", forecastDocument.getPath());
40 | assertNotNull(forecastDocument.getDate());
41 | assertArrayEquals(new byte[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}, forecastDocument.getJpegGraph());
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/components/camel-hibernate/src/test/resources/org/apacheextras/camel/processor/jpa/spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
23 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/components/camel-cics/src/main/java/org/apacheextras/camel/component/cics/exceptions/CICSException.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.exceptions;
23 |
24 | /**
25 | * CICS Exception
26 | *
27 | * @author Sergio Gutierrez (sgutierr@redhat.com)
28 | * @author Jose Roman Martin Gil (rmarting@redhat.com)
29 | */
30 | public class CICSException extends Exception {
31 |
32 | private static final long serialVersionUID = -7940232221012039607L;
33 |
34 | public CICSException() {
35 | super();
36 | }
37 |
38 | public CICSException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
39 | super(message, cause, enableSuppression, writableStackTrace);
40 | }
41 |
42 | public CICSException(String message, Throwable cause) {
43 | super(message, cause);
44 | }
45 |
46 | public CICSException(String message) {
47 | super(message);
48 | }
49 |
50 | public CICSException(Throwable cause) {
51 | super(cause);
52 | }
53 |
54 | }
--------------------------------------------------------------------------------
/examples/camel-example-cics/src/main/java/org/apacheextras/camel/examples/cics/processors/ByteExchangeProcessor.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.processors;
23 |
24 | import org.apache.camel.Exchange;
25 | import org.apache.camel.Processor;
26 | import org.slf4j.Logger;
27 | import org.slf4j.LoggerFactory;
28 |
29 |
30 | public class ByteExchangeProcessor implements Processor {
31 |
32 | private static final Logger LOGGER = LoggerFactory.getLogger(ByteExchangeProcessor.class);
33 |
34 | @Override
35 | public void process(Exchange exchange) throws Exception {
36 | LOGGER.info("Processing Exchange {}", exchange.getIn().getBody());
37 |
38 | if (exchange.getIn().getBody() instanceof byte[]) {
39 | byte[] inBody = (byte[]) exchange.getIn().getBody();
40 |
41 | String data = new String(inBody, "Cp1145");
42 |
43 | LOGGER.info("String Data in Exchange:\n-** EXCHANGE BODY **-\n{}\n-** END EXCHANGE BODY **-", data);
44 | }
45 | }
46 |
47 | }
--------------------------------------------------------------------------------