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
018 package org.apache.camel.component.cxf;
019
020 import java.util.List;
021
022 import org.apache.camel.spi.HeaderFilterStrategy.Direction;
023 import org.apache.cxf.headers.Header;
024
025 /**
026 * Filter the wire message headers from one CXF endpoint to another CXF endpoint
027 *
028 */
029 public interface MessageHeaderFilter {
030
031 /**
032 * @return a list of binding name spaces that this relay can service
033 */
034 List<String> getActivationNamespaces();
035
036 /**
037 * This method filters (removes) headers from the given header list.
038 * <i>Out</i> direction refers to processing headers from a Camel message to an
039 * CXF message. <i>In</i> direction is the reverse direction.
040 *
041 * @param direction the direction of the processing
042 * @param headers the origin list of headers
043 */
044 void filter(Direction direction, List<Header> headers);
045 }