001 /**
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.apache.camel.component.cxf.common.header;
018
019 import java.util.List;
020
021 import org.apache.camel.spi.HeaderFilterStrategy.Direction;
022 import org.apache.cxf.headers.Header;
023
024 /**
025 * Filter the wire message headers from one CXF endpoint to another CXF endpoint
026 */
027 public interface MessageHeaderFilter {
028
029 /**
030 * @return a list of binding name spaces that this relay can service
031 */
032 List<String> getActivationNamespaces();
033
034 /**
035 * This method filters (removes) headers from the given header list.
036 * <i>Out</i> direction refers to processing headers from a Camel message to an
037 * CXF message. <i>In</i> direction is the reverse direction.
038 *
039 * @param direction the direction of the processing
040 * @param headers the origin list of headers
041 */
042 void filter(Direction direction, List<Header> headers);
043
044 }