public class JsonPathMessageConstructionInterceptor extends AbstractMessageConstructionInterceptor
Constructor and Description |
---|
JsonPathMessageConstructionInterceptor()
Default constructor.
|
JsonPathMessageConstructionInterceptor(Map<String,String> jsonPathExpressions)
Default constructor using fields.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getJsonPathExpressions() |
Message |
interceptMessage(Message message,
String messageType,
TestContext context)
Intercept the message payload construction and replace elements identified
via XPath expressions.
|
boolean |
isIgnoreNotFound()
Gets the ignoreNotFound.
|
void |
setIgnoreNotFound(boolean ignoreNotFound)
Sets the ignoreNotFound.
|
void |
setJsonPathExpressions(Map<String,String> jsonPathExpressions) |
boolean |
supportsMessageType(String messageType)
Checks if this message interceptor is capable of this message type.
|
getName, interceptMessageConstruction
public JsonPathMessageConstructionInterceptor()
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 boolean isIgnoreNotFound()
public void setIgnoreNotFound(boolean ignoreNotFound)
ignoreNotFound
- Copyright © 2008–2017 ConSol Software GmbH. All rights reserved.