public class XMLContentFilterInterceptor extends AbstractInterceptor
The xmlContentFilter removes certain XML elements from message bodies. The elements are described using an XPath expression.
If the XPath expression is simple enough, a StAX-Parser is used to determine whether the XPath might match a message at all. This can improve performance significantly, as a DOM tree does probably not have to to be constructed for every message. This is, for example, the case in
If the message body is not well-formed XML, it is left unchanged. If the message is XOP-encoded, the XPath-expression is run on the reconstituted message; if it matches, the message is replaced by the modified reconstituted message.
Interceptor.Flowid, name, router| Constructor and Description |
|---|
XMLContentFilterInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getXPath() |
Outcome |
handleRequest(Exchange exc) |
Outcome |
handleResponse(Exchange exc) |
void |
setXPath(String xPath) |
getDisplayName, getFlow, getHelpId, getId, getLongDescription, getRouter, getRule, getShortDescription, handleAbort, init, init, setDisplayName, setFlow, setIdpublic String getXPath()
public void setXPath(String xPath)
public Outcome handleRequest(Exchange exc) throws Exception
handleRequest in interface InterceptorhandleRequest in class AbstractInterceptorExceptionpublic Outcome handleResponse(Exchange exc) throws Exception
handleResponse in interface InterceptorhandleResponse in class AbstractInterceptorExceptionCopyright © 2019. All Rights Reserved.