Apache JMeter

org.apache.jmeter.protocol.http.proxy
Interface SamplerCreator

All Known Implementing Classes:
AbstractSamplerCreator, DefaultSamplerCreator

public interface SamplerCreator

Factory of sampler


Method Summary
 HTTPSamplerBase createAndPopulateSampler(HttpRequestHdr request, Map<String,String> pageEncodings, Map<String,String> formEncodings)
          Default implementation calls: SamplerCreatorcreateSampler(HttpRequestHdr, Map, Map) SamplerCreatorpopulateSampler(HTTPSamplerBase, HttpRequestHdr, Map, Map)
 HTTPSamplerBase createSampler(HttpRequestHdr request, Map<String,String> pageEncodings, Map<String,String> formEncodings)
          Create HTTPSamplerBase
 String[] getManagedContentTypes()
           
 void populateSampler(HTTPSamplerBase sampler, HttpRequestHdr request, Map<String,String> pageEncodings, Map<String,String> formEncodings)
          Populate sampler from request
 void postProcessSampler(HTTPSamplerBase sampler, SampleResult result)
          Post process sampler Called after sampling
 

Method Detail

getManagedContentTypes

String[] getManagedContentTypes()
Returns:
String[] array of Content types managed by Factory

createSampler

HTTPSamplerBase createSampler(HttpRequestHdr request,
                              Map<String,String> pageEncodings,
                              Map<String,String> formEncodings)
Create HTTPSamplerBase

Parameters:
request - HttpRequestHdr
pageEncodings - Map
formEncodings - Map
Returns:
HTTPSamplerBase

populateSampler

void populateSampler(HTTPSamplerBase sampler,
                     HttpRequestHdr request,
                     Map<String,String> pageEncodings,
                     Map<String,String> formEncodings)
                     throws Exception
Populate sampler from request

Parameters:
sampler - HTTPSamplerBase
request - HttpRequestHdr
pageEncodings - Map
formEncodings - Map
Throws:
Exception

postProcessSampler

void postProcessSampler(HTTPSamplerBase sampler,
                        SampleResult result)
Post process sampler Called after sampling

Parameters:
sampler - HTTPSamplerBase
result - SampleResult
Since:
2.9

createAndPopulateSampler

HTTPSamplerBase createAndPopulateSampler(HttpRequestHdr request,
                                         Map<String,String> pageEncodings,
                                         Map<String,String> formEncodings)
                                         throws Exception
Default implementation calls:
  1. SamplerCreatorcreateSampler(HttpRequestHdr, Map, Map)
  2. SamplerCreatorpopulateSampler(HTTPSamplerBase, HttpRequestHdr, Map, Map)

Parameters:
request - HttpRequestHdr
pageEncodings - Map
formEncodings - Map
Returns:
HTTPSamplerBase
Throws:
Exception
Since:
2.9

Apache JMeter

Copyright © 1998-2013 Apache Software Foundation. All Rights Reserved.