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