camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r778401 - in /camel/branches/camel-1.x/components/camel-restlet/src: main/java/org/apache/camel/component/restlet/RestletEndpoint.java test/resources/log4j.properties
Date Mon, 25 May 2009 12:15:50 GMT
Author: davsclaus
Date: Mon May 25 12:15:49 2009
New Revision: 778401

URL: http://svn.apache.org/viewvc?rev=778401&view=rev
Log:
CAMEL-1646: camel-restlet should be InOut by default

Modified:
    camel/branches/camel-1.x/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletEndpoint.java
    camel/branches/camel-1.x/components/camel-restlet/src/test/resources/log4j.properties

Modified: camel/branches/camel-1.x/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletEndpoint.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletEndpoint.java?rev=778401&r1=778400&r2=778401&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletEndpoint.java
(original)
+++ camel/branches/camel-1.x/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletEndpoint.java
Mon May 25 12:15:49 2009
@@ -19,6 +19,7 @@
 import java.util.Map;
 
 import org.apache.camel.Consumer;
+import org.apache.camel.ExchangePattern;
 import org.apache.camel.Processor;
 import org.apache.camel.Producer;
 import org.apache.camel.impl.DefaultEndpoint;
@@ -129,4 +130,10 @@
     public void setRealm(Map<String, String> realm) {
         this.realm = realm;
     }
+
+    @Override
+    public ExchangePattern getExchangePattern() {
+        // should always use in out for restlet
+        return ExchangePattern.InOut;
+    }
 }

Modified: camel/branches/camel-1.x/components/camel-restlet/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-restlet/src/test/resources/log4j.properties?rev=778401&r1=778400&r2=778401&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-restlet/src/test/resources/log4j.properties
(original)
+++ camel/branches/camel-1.x/components/camel-restlet/src/test/resources/log4j.properties
Mon May 25 12:15:49 2009
@@ -18,9 +18,9 @@
 #
 # The logging properties used during tests..
 #
-log4j.rootLogger=INFO, out
+log4j.rootLogger=INFO, file
 
-log4j.logger.org.apache.camel.component.restlet=DEBUG
+#log4j.logger.org.apache.camel.component.restlet=DEBUG
 
 # CONSOLE appender not used by default
 log4j.appender.stdout=org.apache.log4j.ConsoleAppender
@@ -28,8 +28,8 @@
 log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
 
 # File appender
-log4j.appender.out=org.apache.log4j.FileAppender
-log4j.appender.out.layout=org.apache.log4j.PatternLayout
-log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
-log4j.appender.out.file=target/camel-restlet-test.log
-log4j.appender.out.append=false
+log4j.appender.file=org.apache.log4j.FileAppender
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
+log4j.appender.file.file=target/camel-restlet-test.log
+log4j.appender.file.append=false



Mime
View raw message