Class SamplerCreatorFactory
-
- All Implemented Interfaces:
public class SamplerCreatorFactorySamplerCreator factory
-
-
Constructor Summary
Constructors Constructor Description SamplerCreatorFactory()
-
Method Summary
Modifier and Type Method Description voidsetCounter(int value)Set the counter for all available SamplerCreators. SamplerCreatorgetSamplerCreator(HttpRequestHdr request, Map<String, String> pageEncodings, Map<String, String> formEncodings)Gets SamplerCreator for content type, if none is found returns DefaultSamplerCreator -
-
Method Detail
-
setCounter
void setCounter(int value)
Set the counter for all available SamplerCreators.
The only implementation that is currently available, increments the counter before it is used!
- Parameters:
value- to initialize the creators
-
getSamplerCreator
SamplerCreator getSamplerCreator(HttpRequestHdr request, Map<String, String> pageEncodings, Map<String, String> formEncodings)
Gets SamplerCreator for content type, if none is found returns DefaultSamplerCreator
- 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, or DefaultSamplerCreator when none is found
-
-
-
-