public abstract class AbstractSamplerCreator extends Object implements SamplerCreator
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_ENCODING_KEY |
protected static String |
HTTP |
protected static String |
HTTPS |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSamplerCreator() |
| Modifier and Type | Method and Description |
|---|---|
HTTPSamplerBase |
createAndPopulateSampler(HttpRequestHdr request,
Map<String,String> pageEncodings,
Map<String,String> formEncodings)
|
List<TestElement> |
createChildren(HTTPSamplerBase sampler,
SampleResult result)
Default implementation returns an empty list
|
protected String |
getBinaryDirectory() |
protected String |
getBinaryFileSuffix() |
protected static int |
getRequestNumber() |
protected static void |
incrementRequestNumber()
Increment request number
|
protected static int |
incrementRequestNumberAndGet()
Increment request number
|
protected boolean |
isBinaryContent(String contentType) |
protected static boolean |
isNumberRequests() |
void |
postProcessSampler(HTTPSamplerBase sampler,
SampleResult result)
Post process sampler
Called after sampling
|
void |
setCounter(int value)
Set the counter for this implementation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSampler, getManagedContentTypes, populateSamplerprotected static final String HTTP
protected static final String HTTPS
protected static final String DEFAULT_ENCODING_KEY
protected static int getRequestNumber()
protected static void incrementRequestNumber()
public void setCounter(int value)
SamplerCreatorsetCounter in interface SamplerCreatorvalue - to be usedprotected static int incrementRequestNumberAndGet()
protected static boolean isNumberRequests()
protected boolean isBinaryContent(String contentType)
contentType - String content typeprotected String getBinaryFileSuffix()
protected String getBinaryDirectory()
public void postProcessSampler(HTTPSamplerBase sampler, SampleResult result)
SamplerCreatorpostProcessSampler in interface SamplerCreatorsampler - HTTPSamplerBaseresult - SampleResultSamplerCreator.postProcessSampler(org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase,
org.apache.jmeter.samplers.SampleResult)public HTTPSamplerBase createAndPopulateSampler(HttpRequestHdr request, Map<String,String> pageEncodings, Map<String,String> formEncodings) throws Exception
SamplerCreatorcreateAndPopulateSampler in interface SamplerCreatorrequest - HttpRequestHdrpageEncodings - Map of page encodingsformEncodings - Map of form encodingsHTTPSamplerBaseException - when something failsSamplerCreator.createAndPopulateSampler(org.apache.jmeter.protocol.http.proxy.HttpRequestHdr,
java.util.Map, java.util.Map)public List<TestElement> createChildren(HTTPSamplerBase sampler, SampleResult result)
createChildren in interface SamplerCreatorsampler - HTTPSamplerBaseresult - SampleResultSamplerCreator.createChildren(HTTPSamplerBase, SampleResult)Copyright © 1998-2021 Apache Software Foundation. All Rights Reserved.