public class SampleResultConverter
extends com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter
| Modifier and Type | Field and Description |
|---|---|
protected static String |
TAG_COOKIES |
protected static String |
TAG_METHOD |
protected static String |
TAG_QUERY_STRING |
protected static String |
TAG_REDIRECT_LOCATION |
protected static String |
TAG_REQUEST_HEADER |
protected static String |
TAG_RESPONSE_DATA |
protected static String |
TAG_RESPONSE_FILE |
protected static String |
TAG_RESPONSE_HEADER |
protected static String |
TAG_SAMPLER_DATA |
| Constructor and Description |
|---|
SampleResultConverter(com.thoughtworks.xstream.mapper.Mapper arg0) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Class arg0) |
static String |
getVersion()
Returns the converter version; used to check for possible
incompatibilities
|
void |
marshal(Object obj,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context) |
protected void |
readFile(String resultFileName,
SampleResult res) |
protected void |
retrieveAttributes(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context,
SampleResult res) |
protected boolean |
retrieveItem(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context,
SampleResult res,
Object subItem) |
protected void |
saveAssertions(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context,
SampleResult res,
SampleSaveConfiguration save)
Save assertion results from the sample result into the stream
|
protected void |
saveRequestHeaders(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context,
SampleResult res,
SampleSaveConfiguration save)
Save request headers from the sample result into the stream
|
protected void |
saveResponseData(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context,
SampleResult res,
SampleSaveConfiguration save)
Save the response from the sample result into the stream
|
protected void |
saveResponseHeaders(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context,
SampleResult res,
SampleSaveConfiguration save)
Save response headers from sample result into the stream
|
protected void |
saveSamplerData(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context,
SampleResult res,
SampleSaveConfiguration save)
Save the data of the sample result to a stream
|
protected void |
saveSubResults(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context,
SampleResult res,
SampleSaveConfiguration save)
Save sub results from sample result into the stream
|
protected void |
setAttributes(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context,
SampleResult res,
SampleSaveConfiguration save)
Save attributes of the sample result to the stream
|
Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context) |
protected void |
writeString(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
String tag,
String value)
Write a tag with a content of
value to the
writer |
protected static final String TAG_COOKIES
protected static final String TAG_METHOD
protected static final String TAG_QUERY_STRING
protected static final String TAG_REDIRECT_LOCATION
protected static final String TAG_REQUEST_HEADER
protected static final String TAG_RESPONSE_DATA
protected static final String TAG_RESPONSE_HEADER
protected static final String TAG_SAMPLER_DATA
protected static final String TAG_RESPONSE_FILE
public SampleResultConverter(com.thoughtworks.xstream.mapper.Mapper arg0)
arg0 - the mapperpublic static String getVersion()
public boolean canConvert(Class arg0)
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatchercanConvert in class com.thoughtworks.xstream.converters.collections.AbstractCollectionConverterpublic void marshal(Object obj, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
marshal in interface com.thoughtworks.xstream.converters.Convertermarshal in class com.thoughtworks.xstream.converters.collections.AbstractCollectionConverterprotected void saveSamplerData(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context,
SampleResult res,
SampleSaveConfiguration save)
writer - stream to save objects intocontext - context for xstream to allow nested objectsres - sample to be savedsave - configuration telling us what to saveprotected void saveResponseData(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context,
SampleResult res,
SampleSaveConfiguration save)
writer - stream to save objects intocontext - context for xstream to allow nested objectsres - sample to be savedsave - configuration telling us what to saveprotected void saveRequestHeaders(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context,
SampleResult res,
SampleSaveConfiguration save)
writer - stream to save objects intocontext - context for xstream to allow nested objectsres - sample to be savedsave - configuration telling us what to saveprotected void saveResponseHeaders(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context,
SampleResult res,
SampleSaveConfiguration save)
writer - stream to save objects intocontext - context for xstream to allow nested objectsres - sample to be savedsave - configuration telling us what to saveprotected void saveSubResults(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context,
SampleResult res,
SampleSaveConfiguration save)
writer - stream to save objects intocontext - context for xstream to allow nested objectsres - sample to be savedsave - configuration telling us what to saveprotected void saveAssertions(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context,
SampleResult res,
SampleSaveConfiguration save)
writer - stream to save objects intocontext - context for xstream to allow nested objectsres - sample to be savedsave - configuration telling us what to saveprotected void setAttributes(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context,
SampleResult res,
SampleSaveConfiguration save)
writer - stream to save objects intocontext - context for xstream to allow nested objectsres - sample to be savedsave - configuration telling us what to saveprotected void writeString(com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
String tag,
String value)
value to the
writerwriter - writer to write the tag intotag - name of the tag to usevalue - content for tagpublic Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
unmarshal in interface com.thoughtworks.xstream.converters.Converterunmarshal in class com.thoughtworks.xstream.converters.collections.AbstractCollectionConverterprotected boolean retrieveItem(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context,
SampleResult res,
Object subItem)
reader - stream from which the objects should be readcontext - context for xstream to allow nested objectsres - sample result into which the information should be retrievedsubItem - sub item which should be added into restrue if the item was processed (for HTTPResultConverter)protected void retrieveAttributes(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context,
SampleResult res)
reader - stream to read objects fromcontext - context for xstream to allow nested objectsres - sample result on which the attributes should be setprotected void readFile(String resultFileName, SampleResult res)
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.