Package org.apache.camel.spi
Interface HeaderFilterStrategy
-
public interface HeaderFilterStrategy
Interface to allow plug-able implementation to filter header to and from Camel message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
HeaderFilterStrategy.Direction
The direction is either IN or OUT.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
applyFilterToCamelHeaders(String headerName, Object headerValue, Exchange exchange)
Applies filtering logic to Camel Message header that is going to be copied to target message such as CXF and JMS message.boolean
applyFilterToExternalHeaders(String headerName, Object headerValue, Exchange exchange)
Applies filtering logic to an external message header such as CXF and JMS message that is going to be copied to Camel message header.
-
-
-
Method Detail
-
applyFilterToCamelHeaders
boolean applyFilterToCamelHeaders(String headerName, Object headerValue, Exchange exchange)
Applies filtering logic to Camel Message header that is going to be copied to target message such as CXF and JMS message. It returns true if the filtering logic return a match. Otherwise, it returns false. A match means the header should be excluded.- Parameters:
headerName
- the header nameheaderValue
- the header valueexchange
- the context to perform filtering- Returns:
- true if this header should be filtered (skipped).
-
applyFilterToExternalHeaders
boolean applyFilterToExternalHeaders(String headerName, Object headerValue, Exchange exchange)
Applies filtering logic to an external message header such as CXF and JMS message that is going to be copied to Camel message header. It returns true if the filtering logic return a match. Otherwise, it returns false. A match means the header should be excluded.- Parameters:
headerName
- the header nameheaderValue
- the header valueexchange
- the context to perform filtering- Returns:
- true if this header should be filtered (skipped).
-
-