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, interceptMessageConstruction
public XpathMessageConstructionInterceptor()
public Message interceptMessage(Message message, String messageType, TestContext context)
interceptMessage
in class AbstractMessageConstructionInterceptor
message
- the payloadcontext
- the current test contextpublic boolean supportsMessageType(String messageType)
MessageConstructionInterceptor
messageType
- 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–2017 ConSol Software GmbH. All rights reserved.