You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2009/05/18 06:43:59 UTC

svn commit: r775808 - /camel/trunk/camel-core/src/main/java/org/apache/camel/impl/HeaderFilterStrategyComponent.java

Author: ningjiang
Date: Mon May 18 04:43:59 2009
New Revision: 775808

URL: http://svn.apache.org/viewvc?rev=775808&view=rev
Log:
CAMEL-1617 add the file that I missed in last commit

Added:
    camel/trunk/camel-core/src/main/java/org/apache/camel/impl/HeaderFilterStrategyComponent.java   (with props)

Added: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/HeaderFilterStrategyComponent.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/HeaderFilterStrategyComponent.java?rev=775808&view=auto
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/HeaderFilterStrategyComponent.java (added)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/HeaderFilterStrategyComponent.java Mon May 18 04:43:59 2009
@@ -0,0 +1,51 @@
+/**
+ * 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.impl;
+
+import java.util.Map;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.Endpoint;
+import org.apache.camel.spi.HeaderFilterStrategy;
+import org.apache.camel.spi.HeaderFilterStrategyAware;
+
+public abstract class HeaderFilterStrategyComponent extends DefaultComponent implements HeaderFilterStrategyAware {
+    
+    private HeaderFilterStrategy headerFilterStrategy;
+    
+    public HeaderFilterStrategyComponent() {
+    }
+
+    public HeaderFilterStrategyComponent(CamelContext context) {
+        super(context);
+    }
+    
+    public HeaderFilterStrategy getHeaderFilterStrategy() {
+        return headerFilterStrategy;
+    }
+
+    public void setHeaderFilterStrategy(HeaderFilterStrategy strategy) {
+        headerFilterStrategy = strategy;
+    }
+    
+    public void setEndpointHeaderFilterStrategy(Endpoint endpoint) {
+        if (headerFilterStrategy != null && endpoint instanceof HeaderFilterStrategyAware) {
+            ((HeaderFilterStrategyAware)endpoint).setHeaderFilterStrategy(headerFilterStrategy);
+        }
+    }
+
+}

Propchange: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/HeaderFilterStrategyComponent.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/HeaderFilterStrategyComponent.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date