Class SamplerCreatorFactory
java.lang.Object
org.apache.jmeter.protocol.http.proxy.SamplerCreatorFactory
SamplerCreator
factory-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetSamplerCreator
(HttpRequestHdr request, Map<String, String> pageEncodings, Map<String, String> formEncodings) GetsSamplerCreator
for content type, if none is found returnsDefaultSamplerCreator
void
setCounter
(int value) Set the counter for all availableSamplerCreator
s.
-
Constructor Details
-
SamplerCreatorFactory
public SamplerCreatorFactory()
-
-
Method Details
-
setCounter
public void setCounter(int value) Set the counter for all availableSamplerCreator
s.The only implementation that is currently available, increments the counter before it is used!
- Parameters:
value
- to initialize the creators
-
getSamplerCreator
public SamplerCreator getSamplerCreator(HttpRequestHdr request, Map<String, String> pageEncodings, Map<String, String> formEncodings) GetsSamplerCreator
for content type, if none is found returnsDefaultSamplerCreator
- Parameters:
request
-HttpRequestHdr
from which the content type should be usedpageEncodings
- Map of pageEncodingsformEncodings
- Map of formEncodings- Returns:
- SamplerCreator for the content type of the
request
, orDefaultSamplerCreator
when none is found
-