Interface SamplerCreator
-
- All Implemented Interfaces:
public interface SamplerCreatorFactory of sampler
-
-
Method Summary
Modifier and Type Method Description abstract Array<String>getManagedContentTypes()abstract HTTPSamplerBasecreateSampler(HttpRequestHdr request, Map<String, String> pageEncodings, Map<String, String> formEncodings)Create HTTPSamplerBase abstract voidpopulateSampler(HTTPSamplerBase sampler, HttpRequestHdr request, Map<String, String> pageEncodings, Map<String, String> formEncodings)Populate sampler from request abstract voidpostProcessSampler(HTTPSamplerBase sampler, SampleResult result)Post process sampler Called after sampling abstract HTTPSamplerBasecreateAndPopulateSampler(HttpRequestHdr request, Map<String, String> pageEncodings, Map<String, String> formEncodings)Default implementation calls: abstract List<TestElement>createChildren(HTTPSamplerBase sampler, SampleResult result)Create sampler children. voidsetCounter(int value)Set the counter for this implementation. -
-
Method Detail
-
getManagedContentTypes
abstract Array<String> getManagedContentTypes()
- Returns:
String[] array of Content types managed by Factory
-
createSampler
abstract HTTPSamplerBase createSampler(HttpRequestHdr request, Map<String, String> pageEncodings, Map<String, String> formEncodings)
Create HTTPSamplerBase
- Parameters:
request- HttpRequestHdrpageEncodings- Map of page encodingsformEncodings- Map of form encodings- Returns:
-
populateSampler
abstract void populateSampler(HTTPSamplerBase sampler, HttpRequestHdr request, Map<String, String> pageEncodings, Map<String, String> formEncodings)
Populate sampler from request
- Parameters:
sampler- HTTPSamplerBaserequest- HttpRequestHdrpageEncodings- Map of page encodingsformEncodings- Map of form encodings
-
postProcessSampler
abstract void postProcessSampler(HTTPSamplerBase sampler, SampleResult result)
Post process sampler Called after sampling
- Parameters:
sampler- HTTPSamplerBaseresult- SampleResult- Since:
2.9
-
createAndPopulateSampler
abstract HTTPSamplerBase createAndPopulateSampler(HttpRequestHdr request, Map<String, String> pageEncodings, Map<String, String> formEncodings)
Default implementation calls:
- Parameters:
request- HttpRequestHdrpageEncodings- Map of page encodingsformEncodings- Map of form encodings- Returns:
- Since:
2.9
-
createChildren
abstract List<TestElement> createChildren(HTTPSamplerBase sampler, SampleResult result)
Create sampler children. This method can be used to add PostProcessor or ResponseAssertions by implementations of SamplerCreator. Return empty list if nothing to create
- Parameters:
sampler- HTTPSamplerBaseresult- SampleResult- Returns:
List
-
setCounter
void setCounter(int value)
Set the counter for this implementation. The counter should be incremented before creating a new sampler by the implementation.
- Parameters:
value- to be used
-
-
-
-