camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r748107 - in /camel/trunk/components/camel-freemarker/src/main/java/org/apache/camel/component/freemarker: FreemarkerConstants.java FreemarkerEndpoint.java
Date Thu, 26 Feb 2009 12:04:27 GMT
Author: davsclaus
Date: Thu Feb 26 12:04:27 2009
New Revision: 748107

URL: http://svn.apache.org/viewvc?rev=748107&view=rev
Log:
CAMEL-1373: CamelCase

Added:
    camel/trunk/components/camel-freemarker/src/main/java/org/apache/camel/component/freemarker/FreemarkerConstants.java
  (with props)
Modified:
    camel/trunk/components/camel-freemarker/src/main/java/org/apache/camel/component/freemarker/FreemarkerEndpoint.java

Added: camel/trunk/components/camel-freemarker/src/main/java/org/apache/camel/component/freemarker/FreemarkerConstants.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-freemarker/src/main/java/org/apache/camel/component/freemarker/FreemarkerConstants.java?rev=748107&view=auto
==============================================================================
--- camel/trunk/components/camel-freemarker/src/main/java/org/apache/camel/component/freemarker/FreemarkerConstants.java
(added)
+++ camel/trunk/components/camel-freemarker/src/main/java/org/apache/camel/component/freemarker/FreemarkerConstants.java
Thu Feb 26 12:04:27 2009
@@ -0,0 +1,31 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.freemarker;
+
+/**
+ * Freemarker Constants
+ */
+public final class FreemarkerConstants {
+
+    public static final String RESOURCE = "CamelFreemarkerResource";
+
+    public static final String RESOURCE_URI = "CamelFreemarkerResourceUri";
+
+    private FreemarkerConstants() {
+        // Utility class
+    }
+}

Propchange: camel/trunk/components/camel-freemarker/src/main/java/org/apache/camel/component/freemarker/FreemarkerConstants.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: camel/trunk/components/camel-freemarker/src/main/java/org/apache/camel/component/freemarker/FreemarkerConstants.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: camel/trunk/components/camel-freemarker/src/main/java/org/apache/camel/component/freemarker/FreemarkerEndpoint.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-freemarker/src/main/java/org/apache/camel/component/freemarker/FreemarkerEndpoint.java?rev=748107&r1=748106&r2=748107&view=diff
==============================================================================
--- camel/trunk/components/camel-freemarker/src/main/java/org/apache/camel/component/freemarker/FreemarkerEndpoint.java
(original)
+++ camel/trunk/components/camel-freemarker/src/main/java/org/apache/camel/component/freemarker/FreemarkerEndpoint.java
Thu Feb 26 12:04:27 2009
@@ -108,8 +108,8 @@
         // now lets output the results to the exchange
         Message out = exchange.getOut(true);
         out.setBody(buffer.toString());
-        out.setHeader("org.apache.camel.freemarker.resource", getResource());
-        out.setHeader("org.apache.camel.freemarker.resourceUri", path);
+        out.setHeader(FreemarkerConstants.RESOURCE, getResource());
+        out.setHeader(FreemarkerConstants.RESOURCE_URI, path);
         Map<String, Object> headers = (Map<String, Object>) variableMap.get("headers");
         for (String key : headers.keySet()) {
             out.setHeader(key, headers.get(key));



Mime
View raw message