You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by dk...@apache.org on 2011/12/02 18:03:50 UTC
svn commit: r1209585 [21/22] - in /camel/trunk: ./ apache-camel/
buildingtools/ camel-core/ camel-core/src/main/java/org/apache/camel/
camel-core/src/main/java/org/apache/camel/api/management/
camel-core/src/main/java/org/apache/camel/builder/ camel-co...
Modified: camel/trunk/examples/camel-example-reportincident-wssecurity/README.txt
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-reportincident-wssecurity/README.txt?rev=1209585&r1=1209584&r2=1209585&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-reportincident-wssecurity/README.txt (original)
+++ camel/trunk/examples/camel-example-reportincident-wssecurity/README.txt Fri Dec 2 17:03:07 2011
@@ -1,122 +1,122 @@
-Report Incident Example
-=======================
-
-An example based on real life use case for reporting incidents using webservice
-that are transformed and send as emails to a backing system. WS-security has been
-implemented. So, the user must generates a SOAP envelope containing a SOAP header
-with wsse xml tag. A simple property map has been created containing user and password.
-We use Apache CXF WSS4JInterceptor to get the user/password and timestamp and authenticate
-the user using the WSS4J callback
-
-You will need to compile this example first:
- mvn install
-
-Remarks:
-- During the compilation phase, a unit test will be performed, this unit test simulates the
- communication between a client calling the web services exposed by our camel/cxf routes. During the call,
- the user "charles" is used to authenticate the web service call and the SOAP message created can be
- retrieved from log file target/camel-example-reportincident-wssecurity.log
-- A mock SMTP server is used during unit test
-- In Eclipse, I have used the following option when starting the junit test case. This option tells
- CXF that it must use log4j : -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger
-
-To run the example on Apache ServiceMix 4.x or Apache Karaf 2.x
-
- 1) launch the server
- karaf.bat
-
- For Karaf: edit the file jre.properties to add the following packages to be exported
- jre-1.6=, \
- com.sun.org.apache.xerces.internal.dom, \
- com.sun.org.apache.xerces.internal.jaxp, \
-
- They are required by the following bundle : org.apache.servicemix.bundles/org.apache.servicemix.bundles.saaj-impl/1.3.2_1
-
- 2) Add features required
- features:addUrl mvn:org.apache.camel.karaf/apache-camel/${version}/xml/features
- features:install http
- features:install camel
- features:install camel-cxf
- features:install camel-mail
- features:install camel-velocity
-
- remark: As the camel route sends email to a SMTP server, you must configure a user/password in your favorite
- SMTP Server (James by example). User = someone and password = secret
-
- 3) Deploy our example
- osgi:install -s mvn:org.apache.camel/camel-example-reportincident-wssecurity
-
- 4) Verify that your service is available using in the browser the following url
- http://localhost:9080/camel-example-reportincident/webservices/incident?wsdl
-
- 5) Start SOAPUI (2.x)
- Create a new project called camel-example-reportincident-wssecurity
- Point to the following url : http://localhost:9080/camel-example-reportincident/webservices/incident?wsdl
- Open the request 1 (under camel-example-reportincident-wssecurity --> ReportIncidentBinding --> ReportIncident) and copy/paste the SOAP
- message generated by the unit test
-
- ex :
-
- 2010-07-14 09:57:54,403 [main ] INFO LoggingOutInterceptor - Outbound Message
- ---------------------------
- ID: 1
- Address: http://localhost:9080/camel-example-reportincident/webservices/incident
- Encoding: UTF-8
- Content-Type: text/xml
- Headers: {SOAPAction=["http://reportincident.example.camel.apache.org/ReportIncident"], Accept=[*/*]}
- Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-2"><wsu:Created>2010-07-14T07:57:54.387Z</wsu:Created><wsu:Expires>2010-07-14T08:02:54.387Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-1"><wsse:Username>charles</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">0U5uXRYukYG5PF82gsmncH+yWEE=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-20040
1-wss-soap-message-security-1.0#Base64Binary">/Ka8O+F8cyufohiJFp8wjA==</wsse:Nonce><wsu:Created>2010-07-14T07:57:54.387Z</wsu:Created></wsse:UsernameToken></wsse:Security></soap:Header><soap:Body><ns2:inputReportIncident xmlns:ns2="http://reportincident.example.camel.apache.org"><incidentId>123</incidentId><incidentDate>2008-08-18</incidentDate><givenName>Claus</givenName><familyName>Ibsen</familyName><summary>Bla</summary><details>Bla bla</details><email>davsclaus@apache.org</email><phone>0045 2962 7576</phone></ns2:inputReportIncident></soap:Body></soap:Envelope>
- --------------------------------------
- 2010-07-14 09:57:54,403 [main ] DEBUG HTTPConduit - Sending POST Message with Headers to http://localhost:9080/camel-example-reportincident/webservices/incident Conduit :{http://reportincident.example.camel.apache.org}ReportIncidentEndpointPort.http-conduit
-
- --> and the message formatted that you copy in SOAPUI
-
- <?xml version="1.0" encoding="UTF-8"?>
- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
- <soap:Header>
- <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1">
- <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-2">
- <wsu:Created>2010-07-14T09:40:29.637Z</wsu:Created>
- <wsu:Expires>2010-07-14T09:45:29.637Z</wsu:Expires>
- </wsu:Timestamp>
- <wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-1">
- <wsse:Username>charles</wsse:Username>
- <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">TVzWGxNvhlixNVWol8poD9DHxl8=</wsse:Password>
- <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">WsMNSm/C4dzdPS3OhUi94Q==</wsse:Nonce>
- <wsu:Created>2010-07-14T09:40:29.637Z</wsu:Created>
- </wsse:UsernameToken>
- </wsse:Security>
- </soap:Header>
- <soap:Body>
- <ns2:inputReportIncident xmlns:ns2="http://reportincident.example.camel.apache.org">
- <incidentId>111</incidentId>
- <incidentDate>2010-07-14</incidentDate>
- <givenName>Charles</givenName>
- <familyName>Moulliard</familyName>
- <summary>Bla</summary>
- <details>Bla bla</details>
- <email>cmoulliard@apache.org</email>
- <phone>0011 22 33 44</phone>
- </ns2:inputReportIncident>
- </soap:Body>
- </soap:Envelope>
-
-
- You can use another user: james, claus and retry.
-
- 6) Check email
- Check through a POP request that a message has been published in the mailbox of someone (email address : incident@mycompany.com)
-
-This example is documented at
- http://camel.apache.org/tutorial-osgi-camel-part1.html
-
-If you hit any problems please let us know on the Camel Forums
- http://camel.apache.org/discussion-forums.html
-
-Please help us make Apache Camel better - we appreciate any feedback you may
-have. Enjoy!
-
-------------------------
-The Camel riders!
-
-
-
+Report Incident Example
+=======================
+
+An example based on real life use case for reporting incidents using webservice
+that are transformed and send as emails to a backing system. WS-security has been
+implemented. So, the user must generates a SOAP envelope containing a SOAP header
+with wsse xml tag. A simple property map has been created containing user and password.
+We use Apache CXF WSS4JInterceptor to get the user/password and timestamp and authenticate
+the user using the WSS4J callback
+
+You will need to compile this example first:
+ mvn install
+
+Remarks:
+- During the compilation phase, a unit test will be performed, this unit test simulates the
+ communication between a client calling the web services exposed by our camel/cxf routes. During the call,
+ the user "charles" is used to authenticate the web service call and the SOAP message created can be
+ retrieved from log file target/camel-example-reportincident-wssecurity.log
+- A mock SMTP server is used during unit test
+- In Eclipse, I have used the following option when starting the junit test case. This option tells
+ CXF that it must use log4j : -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger
+
+To run the example on Apache ServiceMix 4.x or Apache Karaf 2.x
+
+ 1) launch the server
+ karaf.bat
+
+ For Karaf: edit the file jre.properties to add the following packages to be exported
+ jre-1.6=, \
+ com.sun.org.apache.xerces.internal.dom, \
+ com.sun.org.apache.xerces.internal.jaxp, \
+
+ They are required by the following bundle : org.apache.servicemix.bundles/org.apache.servicemix.bundles.saaj-impl/1.3.2_1
+
+ 2) Add features required
+ features:addUrl mvn:org.apache.camel.karaf/apache-camel/${version}/xml/features
+ features:install http
+ features:install camel
+ features:install camel-cxf
+ features:install camel-mail
+ features:install camel-velocity
+
+ remark: As the camel route sends email to a SMTP server, you must configure a user/password in your favorite
+ SMTP Server (James by example). User = someone and password = secret
+
+ 3) Deploy our example
+ osgi:install -s mvn:org.apache.camel/camel-example-reportincident-wssecurity
+
+ 4) Verify that your service is available using in the browser the following url
+ http://localhost:9080/camel-example-reportincident/webservices/incident?wsdl
+
+ 5) Start SOAPUI (2.x)
+ Create a new project called camel-example-reportincident-wssecurity
+ Point to the following url : http://localhost:9080/camel-example-reportincident/webservices/incident?wsdl
+ Open the request 1 (under camel-example-reportincident-wssecurity --> ReportIncidentBinding --> ReportIncident) and copy/paste the SOAP
+ message generated by the unit test
+
+ ex :
+
+ 2010-07-14 09:57:54,403 [main ] INFO LoggingOutInterceptor - Outbound Message
+ ---------------------------
+ ID: 1
+ Address: http://localhost:9080/camel-example-reportincident/webservices/incident
+ Encoding: UTF-8
+ Content-Type: text/xml
+ Headers: {SOAPAction=["http://reportincident.example.camel.apache.org/ReportIncident"], Accept=[*/*]}
+ Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-2"><wsu:Created>2010-07-14T07:57:54.387Z</wsu:Created><wsu:Expires>2010-07-14T08:02:54.387Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-1"><wsse:Username>charles</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">0U5uXRYukYG5PF82gsmncH+yWEE=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-20040
1-wss-soap-message-security-1.0#Base64Binary">/Ka8O+F8cyufohiJFp8wjA==</wsse:Nonce><wsu:Created>2010-07-14T07:57:54.387Z</wsu:Created></wsse:UsernameToken></wsse:Security></soap:Header><soap:Body><ns2:inputReportIncident xmlns:ns2="http://reportincident.example.camel.apache.org"><incidentId>123</incidentId><incidentDate>2008-08-18</incidentDate><givenName>Claus</givenName><familyName>Ibsen</familyName><summary>Bla</summary><details>Bla bla</details><email>davsclaus@apache.org</email><phone>0045 2962 7576</phone></ns2:inputReportIncident></soap:Body></soap:Envelope>
+ --------------------------------------
+ 2010-07-14 09:57:54,403 [main ] DEBUG HTTPConduit - Sending POST Message with Headers to http://localhost:9080/camel-example-reportincident/webservices/incident Conduit :{http://reportincident.example.camel.apache.org}ReportIncidentEndpointPort.http-conduit
+
+ --> and the message formatted that you copy in SOAPUI
+
+ <?xml version="1.0" encoding="UTF-8"?>
+ <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+ <soap:Header>
+ <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1">
+ <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-2">
+ <wsu:Created>2010-07-14T09:40:29.637Z</wsu:Created>
+ <wsu:Expires>2010-07-14T09:45:29.637Z</wsu:Expires>
+ </wsu:Timestamp>
+ <wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-1">
+ <wsse:Username>charles</wsse:Username>
+ <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">TVzWGxNvhlixNVWol8poD9DHxl8=</wsse:Password>
+ <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">WsMNSm/C4dzdPS3OhUi94Q==</wsse:Nonce>
+ <wsu:Created>2010-07-14T09:40:29.637Z</wsu:Created>
+ </wsse:UsernameToken>
+ </wsse:Security>
+ </soap:Header>
+ <soap:Body>
+ <ns2:inputReportIncident xmlns:ns2="http://reportincident.example.camel.apache.org">
+ <incidentId>111</incidentId>
+ <incidentDate>2010-07-14</incidentDate>
+ <givenName>Charles</givenName>
+ <familyName>Moulliard</familyName>
+ <summary>Bla</summary>
+ <details>Bla bla</details>
+ <email>cmoulliard@apache.org</email>
+ <phone>0011 22 33 44</phone>
+ </ns2:inputReportIncident>
+ </soap:Body>
+ </soap:Envelope>
+
+
+ You can use another user: james, claus and retry.
+
+ 6) Check email
+ Check through a POP request that a message has been published in the mailbox of someone (email address : incident@mycompany.com)
+
+This example is documented at
+ http://camel.apache.org/tutorial-osgi-camel-part1.html
+
+If you hit any problems please let us know on the Camel Forums
+ http://camel.apache.org/discussion-forums.html
+
+Please help us make Apache Camel better - we appreciate any feedback you may
+have. Enjoy!
+
+------------------------
+The Camel riders!
+
+
+
Propchange: camel/trunk/examples/camel-example-reportincident-wssecurity/README.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/examples/camel-example-reportincident-wssecurity/README.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: camel/trunk/examples/camel-example-reportincident-wssecurity/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/examples/camel-example-reportincident-wssecurity/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/java/org/apache/camel/example/reportincident/FilenameGenerator.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/java/org/apache/camel/example/reportincident/FilenameGenerator.java?rev=1209585&r1=1209584&r2=1209585&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/java/org/apache/camel/example/reportincident/FilenameGenerator.java (original)
+++ camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/java/org/apache/camel/example/reportincident/FilenameGenerator.java Fri Dec 2 17:03:07 2011
@@ -1,29 +1,29 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.example.reportincident;
-
-/**
- * Plain java class to be used for filename generation based on the reported incident
- */
-public class FilenameGenerator {
-
- public String generateFilename(InputReportIncident input) {
- // compute the filename
- return "incident-" + input.getIncidentId() + ".txt";
- }
-
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.example.reportincident;
+
+/**
+ * Plain java class to be used for filename generation based on the reported incident
+ */
+public class FilenameGenerator {
+
+ public String generateFilename(InputReportIncident input) {
+ // compute the filename
+ return "incident-" + input.getIncidentId() + ".txt";
+ }
+
+}
Propchange: camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/java/org/apache/camel/example/reportincident/FilenameGenerator.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/java/org/apache/camel/example/reportincident/MyBean.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/java/org/apache/camel/example/reportincident/MyBean.java?rev=1209585&r1=1209584&r2=1209585&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/java/org/apache/camel/example/reportincident/MyBean.java (original)
+++ camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/java/org/apache/camel/example/reportincident/MyBean.java Fri Dec 2 17:03:07 2011
@@ -1,26 +1,26 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.example.reportincident;
-
-public class MyBean {
-
- public OutputReportIncident getOK() {
- OutputReportIncident ok = new OutputReportIncident();
- ok.setCode("0");
- return ok;
- }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.example.reportincident;
+
+public class MyBean {
+
+ public OutputReportIncident getOK() {
+ OutputReportIncident ok = new OutputReportIncident();
+ ok.setCode("0");
+ return ok;
+ }
+}
Propchange: camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/java/org/apache/camel/example/reportincident/MyBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/java/org/apache/camel/example/reportincident/UTPasswordCallback.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/java/org/apache/camel/example/reportincident/UTPasswordCallback.java?rev=1209585&r1=1209584&r2=1209585&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/java/org/apache/camel/example/reportincident/UTPasswordCallback.java (original)
+++ camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/java/org/apache/camel/example/reportincident/UTPasswordCallback.java Fri Dec 2 17:03:07 2011
@@ -1,70 +1,70 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.example.reportincident;
-
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Map;
-import javax.security.auth.callback.Callback;
-import javax.security.auth.callback.CallbackHandler;
-import javax.security.auth.callback.UnsupportedCallbackException;
-
-import org.apache.ws.security.WSPasswordCallback;
-
-/**
- * Callback handler to handle passwords
- */
-public class UTPasswordCallback implements CallbackHandler {
-
- private Map<String, String> passwords = new HashMap<String, String>();
-
- public UTPasswordCallback() {
- passwords.put("claus", "sualc");
- passwords.put("charles", "selrahc");
- passwords.put("james", "semaj");
- passwords.put("abcd", "dcba");
- }
-
- /**
- * Here, we attempt to get the password from the private alias/passwords map.
- */
- public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
-
- String user = "";
-
- for (int i = 0; i < callbacks.length; i++) {
- WSPasswordCallback pc = (WSPasswordCallback) callbacks[i];
- user = pc.getIdentifier();
-
- String pass = passwords.get(user);
- if (pass != null) {
- pc.setPassword(pass);
- return;
- }
- }
-
- // Password not found
- throw new IOException("Password does not exist for the user : " + user);
- }
-
- /**
- * Add an alias/password pair to the callback mechanism.
- */
- public void setAliasPassword(String alias, String password) {
- passwords.put(alias, password);
- }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.example.reportincident;
+
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+import javax.security.auth.callback.Callback;
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.callback.UnsupportedCallbackException;
+
+import org.apache.ws.security.WSPasswordCallback;
+
+/**
+ * Callback handler to handle passwords
+ */
+public class UTPasswordCallback implements CallbackHandler {
+
+ private Map<String, String> passwords = new HashMap<String, String>();
+
+ public UTPasswordCallback() {
+ passwords.put("claus", "sualc");
+ passwords.put("charles", "selrahc");
+ passwords.put("james", "semaj");
+ passwords.put("abcd", "dcba");
+ }
+
+ /**
+ * Here, we attempt to get the password from the private alias/passwords map.
+ */
+ public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
+
+ String user = "";
+
+ for (int i = 0; i < callbacks.length; i++) {
+ WSPasswordCallback pc = (WSPasswordCallback) callbacks[i];
+ user = pc.getIdentifier();
+
+ String pass = passwords.get(user);
+ if (pass != null) {
+ pc.setPassword(pass);
+ return;
+ }
+ }
+
+ // Password not found
+ throw new IOException("Password does not exist for the user : " + user);
+ }
+
+ /**
+ * Add an alias/password pair to the callback mechanism.
+ */
+ public void setAliasPassword(String alias, String password) {
+ passwords.put(alias, password);
+ }
+}
Propchange: camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/java/org/apache/camel/example/reportincident/UTPasswordCallback.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/resources/META-INF/spring/camel-context.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/resources/META-INF/spring/camel-context.xml?rev=1209585&r1=1209584&r2=1209585&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/resources/META-INF/spring/camel-context.xml (original)
+++ camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/resources/META-INF/spring/camel-context.xml Fri Dec 2 17:03:07 2011
@@ -1,104 +1,104 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:camel="http://camel.apache.org/schema/spring"
- xmlns:cxf="http://camel.apache.org/schema/cxf"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
- http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd">
-
- <!-- Needed Apache CXF imports -->
- <import resource="classpath:META-INF/cxf/cxf.xml"/>
-
- <bean id="loggingOutInterceptor" class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
-
- <bean id="loggingInInterceptor" class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
-
- <bean id="wss4jInInterceptor" class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
- <constructor-arg>
- <map>
- <entry key="action" value="UsernameToken Timestamp"/>
- <entry key="passwordType" value="PasswordDigest"/>
- <entry key="passwordCallbackClass" value="org.apache.camel.example.reportincident.UTPasswordCallback"/>
- </map>
- </constructor-arg>
- </bean>
-
- <!--
- <bean id="wss4jOutInterceptor" class="org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor">
- <constructor-arg>
- <map>
- <entry key="action" value="UsernameToken Timestamp"/>
- <entry key="passwordType" value="PasswordText"/>
- <entry key="user" value="Alice"/>
- <entry key="passwordCallbackClass" value="org.apache.camel.example.reportincident.UTPasswordCallback"/>
- </map>
- </constructor-arg>
- </bean>
- -->
-
- <cxf:cxfEndpoint id="reportIncident"
- address="http://localhost:9080/camel-example-reportincident/webservices/incident"
- wsdlURL="etc/report_incident.wsdl"
- serviceClass="org.apache.camel.example.reportincident.ReportIncidentEndpoint">
-
- <cxf:inInterceptors>
- <ref bean="loggingInInterceptor"/>
- <ref bean="wss4jInInterceptor"/>
- </cxf:inInterceptors>
-
- <cxf:outInterceptors>
- <ref bean="loggingOutInterceptor"/>
- <!-- <ref bean="wss4jOutInterceptor"/> -->
- </cxf:outInterceptors>
-
- </cxf:cxfEndpoint>
-
- <bean id="myBean" class="org.apache.camel.example.reportincident.MyBean"/>
- <bean id="filenameGenerator" class="org.apache.camel.example.reportincident.FilenameGenerator"/>
-
- <camel:camelContext id="camel">
-
- <camel:route>
- <camel:from uri="cxf:bean:reportIncident"/>
- <camel:convertBodyTo type="org.apache.camel.example.reportincident.InputReportIncident"/>
- <camel:setHeader headerName="CamelFileName">
- <camel:method bean="filenameGenerator" method="generateFilename"/>
- </camel:setHeader>
- <camel:to uri="velocity:etc/MailBody.vm"/>
- <camel:to uri="file://target/subfolder"/>
- <camel:transform>
- <camel:method bean="myBean" method="getOK"/>
- </camel:transform>
- </camel:route>
-
- <camel:route>
- <camel:from uri="file://target/subfolder"/>
- <camel:setHeader headerName="subject">
- <camel:constant>new incident reported</camel:constant>
- </camel:setHeader>
- <camel:to uri="log:com.mycompany.incident?level=INFO"/>
- <camel:to uri="smtp://someone@localhost?password=secret&to=incident@localhost"/>
- </camel:route>
-
- </camel:camelContext>
-
-</beans>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:camel="http://camel.apache.org/schema/spring"
+ xmlns:cxf="http://camel.apache.org/schema/cxf"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
+ http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd">
+
+ <!-- Needed Apache CXF imports -->
+ <import resource="classpath:META-INF/cxf/cxf.xml"/>
+
+ <bean id="loggingOutInterceptor" class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
+
+ <bean id="loggingInInterceptor" class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
+
+ <bean id="wss4jInInterceptor" class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
+ <constructor-arg>
+ <map>
+ <entry key="action" value="UsernameToken Timestamp"/>
+ <entry key="passwordType" value="PasswordDigest"/>
+ <entry key="passwordCallbackClass" value="org.apache.camel.example.reportincident.UTPasswordCallback"/>
+ </map>
+ </constructor-arg>
+ </bean>
+
+ <!--
+ <bean id="wss4jOutInterceptor" class="org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor">
+ <constructor-arg>
+ <map>
+ <entry key="action" value="UsernameToken Timestamp"/>
+ <entry key="passwordType" value="PasswordText"/>
+ <entry key="user" value="Alice"/>
+ <entry key="passwordCallbackClass" value="org.apache.camel.example.reportincident.UTPasswordCallback"/>
+ </map>
+ </constructor-arg>
+ </bean>
+ -->
+
+ <cxf:cxfEndpoint id="reportIncident"
+ address="http://localhost:9080/camel-example-reportincident/webservices/incident"
+ wsdlURL="etc/report_incident.wsdl"
+ serviceClass="org.apache.camel.example.reportincident.ReportIncidentEndpoint">
+
+ <cxf:inInterceptors>
+ <ref bean="loggingInInterceptor"/>
+ <ref bean="wss4jInInterceptor"/>
+ </cxf:inInterceptors>
+
+ <cxf:outInterceptors>
+ <ref bean="loggingOutInterceptor"/>
+ <!-- <ref bean="wss4jOutInterceptor"/> -->
+ </cxf:outInterceptors>
+
+ </cxf:cxfEndpoint>
+
+ <bean id="myBean" class="org.apache.camel.example.reportincident.MyBean"/>
+ <bean id="filenameGenerator" class="org.apache.camel.example.reportincident.FilenameGenerator"/>
+
+ <camel:camelContext id="camel">
+
+ <camel:route>
+ <camel:from uri="cxf:bean:reportIncident"/>
+ <camel:convertBodyTo type="org.apache.camel.example.reportincident.InputReportIncident"/>
+ <camel:setHeader headerName="CamelFileName">
+ <camel:method bean="filenameGenerator" method="generateFilename"/>
+ </camel:setHeader>
+ <camel:to uri="velocity:etc/MailBody.vm"/>
+ <camel:to uri="file://target/subfolder"/>
+ <camel:transform>
+ <camel:method bean="myBean" method="getOK"/>
+ </camel:transform>
+ </camel:route>
+
+ <camel:route>
+ <camel:from uri="file://target/subfolder"/>
+ <camel:setHeader headerName="subject">
+ <camel:constant>new incident reported</camel:constant>
+ </camel:setHeader>
+ <camel:to uri="log:com.mycompany.incident?level=INFO"/>
+ <camel:to uri="smtp://someone@localhost?password=secret&to=incident@localhost"/>
+ </camel:route>
+
+ </camel:camelContext>
+
+</beans>
Propchange: camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/resources/META-INF/spring/camel-context.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/resources/META-INF/spring/camel-context.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/resources/etc/report_incident.wsdl
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/resources/etc/report_incident.wsdl?rev=1209585&r1=1209584&r2=1209585&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/resources/etc/report_incident.wsdl (original)
+++ camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/resources/etc/report_incident.wsdl Fri Dec 2 17:03:07 2011
@@ -1,92 +1,92 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:tns="http://reportincident.example.camel.apache.org"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- targetNamespace="http://reportincident.example.camel.apache.org">
-
- <!-- Type definitions for input- and output parameters for webservice -->
- <wsdl:types>
- <xs:schema targetNamespace="http://reportincident.example.camel.apache.org">
- <xs:element name="inputReportIncident">
- <xs:complexType>
- <xs:sequence>
- <xs:element type="xs:string" name="incidentId"/>
- <xs:element type="xs:string" name="incidentDate"/>
- <xs:element type="xs:string" name="givenName"/>
- <xs:element type="xs:string" name="familyName"/>
- <xs:element type="xs:string" name="summary"/>
- <xs:element type="xs:string" name="details"/>
- <xs:element type="xs:string" name="email"/>
- <xs:element type="xs:string" name="phone"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="outputReportIncident">
- <xs:complexType>
- <xs:sequence>
- <xs:element type="xs:string" name="code"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- </xs:schema>
- </wsdl:types>
-
- <!-- Message definitions for input and output -->
- <wsdl:message name="inputReportIncident">
- <wsdl:part name="in" element="tns:inputReportIncident"/>
- </wsdl:message>
- <wsdl:message name="outputReportIncident">
- <wsdl:part name="out" element="tns:outputReportIncident"/>
- </wsdl:message>
-
- <!-- Port (interface) definitions -->
- <wsdl:portType name="ReportIncidentEndpoint">
- <wsdl:operation name="ReportIncident">
- <wsdl:input message="tns:inputReportIncident"/>
- <wsdl:output message="tns:outputReportIncident"/>
- </wsdl:operation>
- </wsdl:portType>
-
- <!-- Port bindings to transports and encoding - HTTP, document literal encoding is used -->
- <wsdl:binding name="ReportIncidentBinding" type="tns:ReportIncidentEndpoint">
- <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="ReportIncident">
- <soap:operation
- soapAction="http://reportincident.example.camel.apache.org/ReportIncident"
- style="document"/>
- <wsdl:input>
- <soap:body parts="in" use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body parts="out" use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
-
- <!-- Service definition -->
- <wsdl:service name="ReportIncidentEndpointService">
- <wsdl:port name="ReportIncidentService" binding="tns:ReportIncidentBinding">
- <soap:address location="http://localhost:9080/part-five/webservices/incident"/>
- </wsdl:port>
- </wsdl:service>
-
-</wsdl:definitions>
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:tns="http://reportincident.example.camel.apache.org"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ targetNamespace="http://reportincident.example.camel.apache.org">
+
+ <!-- Type definitions for input- and output parameters for webservice -->
+ <wsdl:types>
+ <xs:schema targetNamespace="http://reportincident.example.camel.apache.org">
+ <xs:element name="inputReportIncident">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element type="xs:string" name="incidentId"/>
+ <xs:element type="xs:string" name="incidentDate"/>
+ <xs:element type="xs:string" name="givenName"/>
+ <xs:element type="xs:string" name="familyName"/>
+ <xs:element type="xs:string" name="summary"/>
+ <xs:element type="xs:string" name="details"/>
+ <xs:element type="xs:string" name="email"/>
+ <xs:element type="xs:string" name="phone"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="outputReportIncident">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element type="xs:string" name="code"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:schema>
+ </wsdl:types>
+
+ <!-- Message definitions for input and output -->
+ <wsdl:message name="inputReportIncident">
+ <wsdl:part name="in" element="tns:inputReportIncident"/>
+ </wsdl:message>
+ <wsdl:message name="outputReportIncident">
+ <wsdl:part name="out" element="tns:outputReportIncident"/>
+ </wsdl:message>
+
+ <!-- Port (interface) definitions -->
+ <wsdl:portType name="ReportIncidentEndpoint">
+ <wsdl:operation name="ReportIncident">
+ <wsdl:input message="tns:inputReportIncident"/>
+ <wsdl:output message="tns:outputReportIncident"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <!-- Port bindings to transports and encoding - HTTP, document literal encoding is used -->
+ <wsdl:binding name="ReportIncidentBinding" type="tns:ReportIncidentEndpoint">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="ReportIncident">
+ <soap:operation
+ soapAction="http://reportincident.example.camel.apache.org/ReportIncident"
+ style="document"/>
+ <wsdl:input>
+ <soap:body parts="in" use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body parts="out" use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <!-- Service definition -->
+ <wsdl:service name="ReportIncidentEndpointService">
+ <wsdl:port name="ReportIncidentService" binding="tns:ReportIncidentBinding">
+ <soap:address location="http://localhost:9080/part-five/webservices/incident"/>
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
Propchange: camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/resources/etc/report_incident.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/resources/etc/report_incident.wsdl
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: camel/trunk/examples/camel-example-reportincident-wssecurity/src/test/java/org/apache/camel/example/reportincident/ReportIncidentRoutesTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-reportincident-wssecurity/src/test/java/org/apache/camel/example/reportincident/ReportIncidentRoutesTest.java?rev=1209585&r1=1209584&r2=1209585&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-reportincident-wssecurity/src/test/java/org/apache/camel/example/reportincident/ReportIncidentRoutesTest.java (original)
+++ camel/trunk/examples/camel-example-reportincident-wssecurity/src/test/java/org/apache/camel/example/reportincident/ReportIncidentRoutesTest.java Fri Dec 2 17:03:07 2011
@@ -1,110 +1,110 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.example.reportincident;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.test.junit4.CamelSpringTestSupport;
-import org.apache.cxf.interceptor.Interceptor;
-import org.apache.cxf.interceptor.LoggingOutInterceptor;
-import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
-import org.apache.cxf.message.Message;
-import org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor;
-import org.junit.Test;
-import org.jvnet.mock_javamail.Mailbox;
-import org.springframework.context.support.AbstractXmlApplicationContext;
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-/**
- * Unit test of our routes
- */
-public class ReportIncidentRoutesTest extends CamelSpringTestSupport {
-
- // should be the same address as we have in our route
- private static final String URL = "http://localhost:9080/camel-example-reportincident/webservices/incident";
-
- protected CamelContext camel;
-
- @Override
- protected AbstractXmlApplicationContext createApplicationContext() {
- return new ClassPathXmlApplicationContext("/META-INF/spring/camel-context.xml");
- }
-
- protected static ReportIncidentEndpoint createCXFClient() {
- List<Interceptor<? extends Message>> outInterceptors = new ArrayList<Interceptor<? extends Message>>();
-
- // Define WSS4j properties for flow outgoing
- Map<String, Object> outProps = new HashMap<String, Object>();
- outProps.put("action", "UsernameToken Timestamp");
-
- outProps.put("passwordType", "PasswordDigest");
- outProps.put("user", "charles");
- outProps.put("passwordCallbackClass", "org.apache.camel.example.reportincident.UTPasswordCallback");
-
- WSS4JOutInterceptor wss4j = new WSS4JOutInterceptor(outProps);
-
- // Add LoggingOutInterceptor
- LoggingOutInterceptor loggingOutInterceptor = new LoggingOutInterceptor();
-
- outInterceptors.add(wss4j);
- outInterceptors.add(loggingOutInterceptor);
-
- // we use CXF to create a client for us as its easier than JAXWS and works
- JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
- factory.setOutInterceptors(outInterceptors);
- factory.setServiceClass(ReportIncidentEndpoint.class);
- factory.setAddress(URL);
- return (ReportIncidentEndpoint) factory.create();
- }
-
- @Test
- public void testRendportIncident() throws Exception {
- // assert mailbox is empty before starting
- Mailbox inbox = Mailbox.get("incident@localhost");
- inbox.clear();
- assertEquals("Should not have mails", 0, inbox.size());
-
- // create input parameter
- InputReportIncident input = new InputReportIncident();
- input.setIncidentId("222");
- input.setIncidentDate("2010-07-14");
- input.setGivenName("Charles");
- input.setFamilyName("Moulliard");
- input.setSummary("Bla");
- input.setDetails("Bla bla");
- input.setEmail("cmoulliard@apache.org");
- input.setPhone("0011 22 33 44");
-
- // create the webservice client and send the request
- ReportIncidentEndpoint client = createCXFClient();
- OutputReportIncident out = client.reportIncident(input);
-
- // assert we got a OK back
- assertEquals("0", out.getCode());
-
- // let some time pass to allow Camel to pickup the file and send it as an email
- Thread.sleep(3000);
-
- // assert mail box
- assertEquals("Should have got 1 mail", 1, inbox.size());
- }
-
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.example.reportincident;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.test.junit4.CamelSpringTestSupport;
+import org.apache.cxf.interceptor.Interceptor;
+import org.apache.cxf.interceptor.LoggingOutInterceptor;
+import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
+import org.apache.cxf.message.Message;
+import org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor;
+import org.junit.Test;
+import org.jvnet.mock_javamail.Mailbox;
+import org.springframework.context.support.AbstractXmlApplicationContext;
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+/**
+ * Unit test of our routes
+ */
+public class ReportIncidentRoutesTest extends CamelSpringTestSupport {
+
+ // should be the same address as we have in our route
+ private static final String URL = "http://localhost:9080/camel-example-reportincident/webservices/incident";
+
+ protected CamelContext camel;
+
+ @Override
+ protected AbstractXmlApplicationContext createApplicationContext() {
+ return new ClassPathXmlApplicationContext("/META-INF/spring/camel-context.xml");
+ }
+
+ protected static ReportIncidentEndpoint createCXFClient() {
+ List<Interceptor<? extends Message>> outInterceptors = new ArrayList<Interceptor<? extends Message>>();
+
+ // Define WSS4j properties for flow outgoing
+ Map<String, Object> outProps = new HashMap<String, Object>();
+ outProps.put("action", "UsernameToken Timestamp");
+
+ outProps.put("passwordType", "PasswordDigest");
+ outProps.put("user", "charles");
+ outProps.put("passwordCallbackClass", "org.apache.camel.example.reportincident.UTPasswordCallback");
+
+ WSS4JOutInterceptor wss4j = new WSS4JOutInterceptor(outProps);
+
+ // Add LoggingOutInterceptor
+ LoggingOutInterceptor loggingOutInterceptor = new LoggingOutInterceptor();
+
+ outInterceptors.add(wss4j);
+ outInterceptors.add(loggingOutInterceptor);
+
+ // we use CXF to create a client for us as its easier than JAXWS and works
+ JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
+ factory.setOutInterceptors(outInterceptors);
+ factory.setServiceClass(ReportIncidentEndpoint.class);
+ factory.setAddress(URL);
+ return (ReportIncidentEndpoint) factory.create();
+ }
+
+ @Test
+ public void testRendportIncident() throws Exception {
+ // assert mailbox is empty before starting
+ Mailbox inbox = Mailbox.get("incident@localhost");
+ inbox.clear();
+ assertEquals("Should not have mails", 0, inbox.size());
+
+ // create input parameter
+ InputReportIncident input = new InputReportIncident();
+ input.setIncidentId("222");
+ input.setIncidentDate("2010-07-14");
+ input.setGivenName("Charles");
+ input.setFamilyName("Moulliard");
+ input.setSummary("Bla");
+ input.setDetails("Bla bla");
+ input.setEmail("cmoulliard@apache.org");
+ input.setPhone("0011 22 33 44");
+
+ // create the webservice client and send the request
+ ReportIncidentEndpoint client = createCXFClient();
+ OutputReportIncident out = client.reportIncident(input);
+
+ // assert we got a OK back
+ assertEquals("0", out.getCode());
+
+ // let some time pass to allow Camel to pickup the file and send it as an email
+ Thread.sleep(3000);
+
+ // assert mail box
+ assertEquals("Should have got 1 mail", 1, inbox.size());
+ }
+
+}
Propchange: camel/trunk/examples/camel-example-reportincident-wssecurity/src/test/java/org/apache/camel/example/reportincident/ReportIncidentRoutesTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/examples/camel-example-route-throttling/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,9 +1,13 @@
-.project
-.checkstyle
.pmd
-.classpath
+.checkstyle
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
-classes
Propchange: camel/trunk/examples/camel-example-servlet-tomcat/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,8 +1,13 @@
-.project
-.checkstyle
.pmd
-.classpath
+.checkstyle
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
Propchange: camel/trunk/examples/camel-example-simplejirabot/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,9 +1,13 @@
-.project
-.checkstyle
.pmd
-.classpath
+.checkstyle
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
-classes
Propchange: camel/trunk/examples/camel-example-simplejirabot/javadsl/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,9 +1,13 @@
-.project
-.checkstyle
.pmd
-.classpath
+.checkstyle
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
-classes
Propchange: camel/trunk/examples/camel-example-simplejirabot/xmlconf/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,9 +1,13 @@
-.project
-.checkstyle
.pmd
-.classpath
+.checkstyle
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
-classes
Propchange: camel/trunk/examples/camel-example-spring/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,9 +1,13 @@
-.checkstyle
.pmd
+.checkstyle
+.ruleset
target
-eclipse-classes
+.settings
.classpath
.project
-activemq-data
-.settings
-*.i??
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
+eclipse-classes
Propchange: camel/trunk/examples/camel-example-spring-javaconfig/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,8 +1,13 @@
-.project
.pmd
.checkstyle
-.classpath
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
Propchange: camel/trunk/examples/camel-example-spring-jms/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,8 +1,13 @@
-.project
.pmd
.checkstyle
-.classpath
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
Propchange: camel/trunk/examples/camel-example-spring-security/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,9 +1,13 @@
-.project
-.checkstyle
.pmd
-.classpath
+.checkstyle
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
-classes
Propchange: camel/trunk/examples/camel-example-spring-security/client/access-admin-as-bob.sh
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: camel/trunk/examples/camel-example-spring-security/client/access-admin-as-jim.sh
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: camel/trunk/examples/camel-example-spring-security/client/access-user-as-jim.sh
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: camel/trunk/examples/camel-example-spring-security/client/access-user-no-auth.sh
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: camel/trunk/examples/camel-example-spring-ws/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,9 +1,13 @@
-.project
-.checkstyle
.pmd
-.classpath
+.checkstyle
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
-classes
Propchange: camel/trunk/examples/camel-example-spring-ws/README.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/examples/camel-example-spring-ws/client/camel-example-spring-ws-soapui-project.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/examples/camel-example-spring-ws/client/camel-example-spring-ws-soapui-project.xml
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Fri Dec 2 17:03:07 2011
@@ -1 +1 @@
-text/plain
+text/xml
Propchange: camel/trunk/examples/camel-example-spring-ws/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/examples/camel-example-spring-ws/pom.xml
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Fri Dec 2 17:03:07 2011
@@ -1 +1 @@
-text/plain
+text/xml
Propchange: camel/trunk/examples/camel-example-spring-ws/src/main/java/org/apache/camel/example/server/IncrementRoute.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/examples/camel-example-spring-ws/src/main/java/org/apache/camel/example/server/model/IncrementRequest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/examples/camel-example-spring-ws/src/main/java/org/apache/camel/example/server/model/IncrementResponse.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/examples/camel-example-spring-ws/src/main/java/org/apache/camel/example/server/model/package-info.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/examples/camel-example-spring-ws/src/main/webapp/WEB-INF/spring-ws-servlet.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/examples/camel-example-spring-ws/src/main/webapp/WEB-INF/spring-ws-servlet.xml
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Fri Dec 2 17:03:07 2011
@@ -1 +1 @@
-text/plain
+text/xml
Propchange: camel/trunk/examples/camel-example-spring-ws/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/examples/camel-example-spring-ws/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Fri Dec 2 17:03:07 2011
@@ -1 +1 @@
-text/plain
+text/xml
Propchange: camel/trunk/examples/camel-example-spring-xquery/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,8 +1,13 @@
-.project
.pmd
.checkstyle
-.classpath
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
Propchange: camel/trunk/examples/camel-example-tracer/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,8 +1,13 @@
-.project
-.checkstyle
.pmd
-.classpath
+.checkstyle
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
Propchange: camel/trunk/parent/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,9 +1,13 @@
-.project
-.checkstyle
.pmd
-.classpath
+.checkstyle
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
-
Propchange: camel/trunk/platforms/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,9 +1,13 @@
-.project
-.checkstyle
.pmd
-.classpath
+.checkstyle
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
-
Propchange: camel/trunk/platforms/karaf/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,9 +1,13 @@
-.project
-.checkstyle
.pmd
-.classpath
+.checkstyle
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
-
Propchange: camel/trunk/platforms/karaf/commands/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,8 +1,13 @@
-.project
.pmd
.checkstyle
-.classpath
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
Propchange: camel/trunk/platforms/karaf/features/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1 +1,13 @@
+.pmd
+.checkstyle
+.ruleset
target
+.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
+eclipse-classes
Propchange: camel/trunk/tests/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1 +1,13 @@
+.pmd
+.checkstyle
+.ruleset
target
+.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
+eclipse-classes
Propchange: camel/trunk/tests/camel-itest/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,12 +1,13 @@
-.project
-.checkstyle
.pmd
-.classpath
+.checkstyle
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
-activemq-data
-res
-
-data
Propchange: camel/trunk/tests/camel-itest-karaf/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,9 +1,13 @@
-.project
-.checkstyle
.pmd
-.classpath
+.checkstyle
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
-classes
Propchange: camel/trunk/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelKratiTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelZookeeperTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Dec 2 17:03:07 2011
@@ -1,9 +1,13 @@
-.project
-.checkstyle
.pmd
-.classpath
+.checkstyle
+.ruleset
target
.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
eclipse-classes
-*.i??
-classes
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/ahc/AhcTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/aws/AmazonS3ClientMock.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/aws/AmazonSNSClientMock.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/aws/AmazonSQSClientMock.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/aws/AwsS3IntegrationTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/aws/AwsS3Test.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/aws/AwsSnsIntegrationTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/aws/AwsSnsTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/aws/AwsSqsIntegrationTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/aws/AwsSqsTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/AbstractIntegrationTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/BlueprintExplicitPropertiesRouteTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/BlueprintPropertiesRouteTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/CamelBlueprint2Test.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/CamelBlueprint3Test.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/CamelBlueprint4Test.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/CamelBlueprint5Test.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/CamelBlueprintTcclTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/CamelBlueprintTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/MyException.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/OSGiBlueprintHelloWorldTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/OSGiBlueprintTestSupport.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/TestInterceptStrategy.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/TestProducer.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/TestProxySender.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/TestRouteBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/core/bean/BeanRouteTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/core/bean/FooService.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/core/bean/MyFooBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/core/clazz/ClassRouteTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/core/dataset/DataSetRouteTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/core/file/FileRouteDelayTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/core/log/LogRouteTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/core/ref/RefFileEndpointTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/core/timer/TimerFiredTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/core/validator/ValidatorRouteTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/core/vm/VmTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/CxfProxyExampleTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/EnrichBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/RealWebServiceBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/ReportIncidentEndpointService.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/dozer/DozerTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/dozer/model/Address.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/dozer/model/Customer.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/dozer/service/Customer.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/ftp/FtpConsumeTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/ftp/FtpServerBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/ftp/FtpTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/hl7/HL7MLLPCodec2Test.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/hl7/HL7MLLPCodecTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/http/HttpTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/http4/Http4Test.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/jms/JmsTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/krati/KratiBlueprintRouteTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/krati/KratiRouteTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/mybatis/Account.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/mybatis/MyBatisTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/netty/NettyTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/restlet/example/CheckDomainAvailabilityRestResponse.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/restlet/example/CheckDomainAvailabilityResult.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/restlet/example/CheckDomainRequest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/restlet/example/DomainService.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/restlet/example/Order.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/restlet/example/Product.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/restlet/example/RestletDomainServiceTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/spring/bean/SpringBeanRouteTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/spring/event/EventRouteTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/zookeeper/ZookeeperOSGiTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/zookeeper/ZookeeperOSGiTestSupport.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/aws/CamelContext.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/aws/CamelContext.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/aws/CamelIntegrationContext.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/aws/CamelIntegrationContext.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/blueprint/blueprint-1.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/blueprint/blueprint-1.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/blueprint/blueprint-10.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/blueprint/blueprint-10.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/blueprint/blueprint-11.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/blueprint/blueprint-11.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml