public class XpathMessageConstructionInterceptor extends AbstractMessageConstructionInterceptor
| Constructor and Description |
|---|
XpathMessageConstructionInterceptor()
Default constructor.
|
XpathMessageConstructionInterceptor(Map<String,String> xPathExpressions)
Default constructor using fields.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getXPathExpressions()
Gets the xPathExpressions.
|
Message |
interceptMessage(Message message,
String messageType,
TestContext context)
Intercept the message payload construction and replace elements identified
via XPath expressions.
|
void |
setXPathExpressions(Map<String,String> xPathExpressions) |
boolean |
supportsMessageType(String messageType)
Checks if this message interceptor is capable of this message type.
|
getName, interceptMessageConstructionpublic XpathMessageConstructionInterceptor()
public Message interceptMessage(Message message, String messageType, TestContext context)
interceptMessage in class AbstractMessageConstructionInterceptormessage - the payloadcontext - the current test contextpublic boolean supportsMessageType(String messageType)
MessageConstructionInterceptormessageType - the message type representation as String (e.g. xml, json, csv, plaintext).public void setXPathExpressions(Map<String,String> xPathExpressions)
xPathExpressions - the xPathExpressions to setCopyright © 2008–2015 ConSol* Consulting&Solutions GmbH. All rights reserved.