Class MapMessageRenderer
java.lang.Object
org.apache.jmeter.protocol.jms.sampler.render.MapMessageRenderer
- All Implemented Interfaces:
MessageRenderer<Map<String,
Object>>
-
Constructor Summary
ConstructorDescriptionMapMessageRenderer
(org.apache.jmeter.protocol.jms.sampler.render.TextMessageRenderer delegate) -
Method Summary
Modifier and TypeMethodDescriptiongetValueFromFile
(String filename, String encoding, boolean hasVariable, com.github.benmanes.caffeine.cache.Cache<Object, Object> cache) Read text from file, eventually replace variables, then convert it.getValueFromText
(String text) Convert text to expected type
-
Constructor Details
-
MapMessageRenderer
public MapMessageRenderer(org.apache.jmeter.protocol.jms.sampler.render.TextMessageRenderer delegate)
-
-
Method Details
-
getValueFromText
Description copied from interface:MessageRenderer
Convert text to expected type- Specified by:
getValueFromText
in interfaceMessageRenderer<Map<String,
Object>> - Parameters:
text
- Text representing the type- Returns:
- the constructed object
-
getValueFromFile
public Map<String,Object> getValueFromFile(String filename, String encoding, boolean hasVariable, com.github.benmanes.caffeine.cache.Cache<Object, Object> cache) Description copied from interface:MessageRenderer
Read text from file, eventually replace variables, then convert it. Cached content depends if variabilisation is active or not.- Specified by:
getValueFromFile
in interfaceMessageRenderer<Map<String,
Object>> - Parameters:
filename
- name of the file to get the value fromencoding
- encoding of the filehasVariable
- flag, whether variables inside the value should be replacedcache
- Cache in which the raw values will be stored/read from- Returns:
- the constructed object
-