Author: davsclaus Date: Fri Feb 27 16:53:24 2009 New Revision: 748588 URL: http://svn.apache.org/viewvc?rev=748588&view=rev Log: CAMEL-1373: CamelCase
Added: camel/trunk/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityConstants.java (with props) Modified: camel/trunk/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityEndpoint.java Added: camel/trunk/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityConstants.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityConstants.java?rev=748588&view=auto ============================================================================== --- camel/trunk/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityConstants.java (added) +++ camel/trunk/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityConstants.java Fri Feb 27 16:53:24 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.velocity; + +/** + * Velocity Constants. + */ +public final class VelocityConstants { + + public static final String VELOCITY_RESOURCE = "CamelVelocityResource"; + + public static final String VELOCITY_RESOURCE_URI = "CamelVelocityResourceUri"; + + private VelocityConstants() { + // Utility class + } +} Propchange: camel/trunk/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityConstants.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: camel/trunk/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityConstants.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Modified: camel/trunk/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityEndpoint.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityEndpoint.java?rev=748588&r1=748587&r2=748588&view=diff ============================================================================== --- camel/trunk/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityEndpoint.java (original) +++ camel/trunk/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityEndpoint.java Fri Feb 27 16:53:24 2009 @@ -126,8 +126,8 @@ // now lets output the results to the exchange Message out = exchange.getOut(true); out.setBody(buffer.toString()); - out.setHeader("org.apache.camel.velocity.resource", resource); - out.setHeader("org.apache.camel.velocity.resourceUri", path); + out.setHeader(VelocityConstants.VELOCITY_RESOURCE, resource); + out.setHeader(VelocityConstants.VELOCITY_RESOURCE_URI, path); Map<String, Object> headers = (Map<String, Object>)velocityContext.get("headers"); for (String key : headers.keySet()) { out.setHeader(key, headers.get(key));