Class AbstractSamplerCreator
java.lang.Object
org.apache.jmeter.protocol.http.proxy.AbstractSamplerCreator
- All Implemented Interfaces:
SamplerCreator
- Direct Known Subclasses:
DefaultSamplerCreator
Base class for SamplerCreator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAndPopulateSampler(HttpRequestHdr request, Map<String, String> pageEncodings, Map<String, String> formEncodings) createChildren(HTTPSamplerBase sampler, SampleResult result) Default implementation returns an empty listprotected Stringprotected Stringprotected static intprotected static voidIncrement request numberprotected booleanisBinaryContent(String contentType) protected static booleanvoidpostProcessSampler(HTTPSamplerBase sampler, SampleResult result) Post process sampler Called after samplingMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SamplerCreator
createSampler, getManagedContentTypes, populateSampler
-
Field Details
-
HTTP
- See Also:
-
HTTPS
- See Also:
-
-
Constructor Details
-
AbstractSamplerCreator
public AbstractSamplerCreator()
-
-
Method Details
-
getRequestNumber
protected static int getRequestNumber()- Returns:
- int request number
-
incrementRequestNumber
protected static void incrementRequestNumber()Increment request number -
isNumberRequests
protected static boolean isNumberRequests()- Returns:
- boolean is numbering requests is required
-
isBinaryContent
- Parameters:
contentType- String content type- Returns:
- true if contentType is part of binary declared types
-
getBinaryFileSuffix
- Returns:
- String binary file suffix
-
getBinaryDirectory
- Returns:
- String binary directory
-
postProcessSampler
Description copied from interface:SamplerCreatorPost process sampler Called after sampling- Specified by:
postProcessSamplerin interfaceSamplerCreator- Parameters:
sampler- HTTPSamplerBaseresult- SampleResult- See Also:
-
createAndPopulateSampler
public HTTPSamplerBase createAndPopulateSampler(HttpRequestHdr request, Map<String, String> pageEncodings, Map<String, throws ExceptionString> formEncodings) Description copied from interface:SamplerCreatorDefault implementation calls:- Specified by:
createAndPopulateSamplerin interfaceSamplerCreator- Parameters:
request-HttpRequestHdrpageEncodings- Map of page encodingsformEncodings- Map of form encodings- Returns:
HTTPSamplerBase- Throws:
Exception- when something fails- See Also:
-
createChildren
Default implementation returns an empty list- Specified by:
createChildrenin interfaceSamplerCreator- Parameters:
sampler-HTTPSamplerBaseresult-SampleResult- Returns:
- List
- See Also:
-