|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.protocol.http.proxy.AbstractSamplerCreator org.apache.jmeter.protocol.http.proxy.DefaultSamplerCreator
public class DefaultSamplerCreator
Default implementation that handles classical HTTP textual + Multipart requests
Field Summary |
---|
Fields inherited from class org.apache.jmeter.protocol.http.proxy.AbstractSamplerCreator |
---|
HTTP, HTTPS |
Constructor Summary | |
---|---|
DefaultSamplerCreator()
|
Method Summary | |
---|---|
protected String |
computeContentEncoding(HttpRequestHdr request,
Map<String,String> pageEncodings,
Map<String,String> formEncodings,
String urlWithoutQuery)
Computes content encoding from request and if not found uses pageEncoding and formEncoding to see if URL was previously computed with a content type |
protected void |
computeContentEncoding(HTTPSamplerBase sampler,
HttpRequestHdr request,
Map<String,String> pageEncodings,
Map<String,String> formEncodings)
Compute content encoding |
protected void |
computeDomain(HTTPSamplerBase sampler,
HttpRequestHdr request)
Set domain on sampler |
protected void |
computeFromHeader(HTTPSamplerBase sampler,
HttpRequestHdr request,
Map<String,String> pageEncodings,
Map<String,String> formEncodings)
Compute sampler informations from Request Header |
protected void |
computeFromPostBody(HTTPSamplerBase sampler,
HttpRequestHdr request)
Compute sampler informations from Request Header |
protected void |
computeMethod(HTTPSamplerBase sampler,
HttpRequestHdr request)
Set method on sampler |
protected void |
computePath(HTTPSamplerBase sampler,
HttpRequestHdr request)
Set path on sampler |
protected void |
computePort(HTTPSamplerBase sampler,
HttpRequestHdr request)
Set Port on sampler |
protected void |
computeProtocol(HTTPSamplerBase sampler,
HttpRequestHdr request)
Set protocol on sampler |
protected void |
computeSamplerName(HTTPSamplerBase sampler,
HttpRequestHdr request)
Compute sampler name |
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 |
Methods inherited from class org.apache.jmeter.protocol.http.proxy.AbstractSamplerCreator |
---|
getBinaryDirectory, getBinaryFileSuffix, getRequestNumber, incrementRequestNumber, isBinaryContent, isNumberRequests |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSamplerCreator()
Method Detail |
---|
public String[] getManagedContentTypes()
SamplerCreator.getManagedContentTypes()
public HTTPSamplerBase createSampler(HttpRequestHdr request, Map<String,String> pageEncodings, Map<String,String> formEncodings)
SamplerCreator
request
- HttpRequestHdr
pageEncodings
- MapformEncodings
- MapHTTPSamplerBase
SamplerCreator.createSampler(org.apache.jmeter.protocol.http.proxy.HttpRequestHdr, java.util.Map, java.util.Map)
public final void populateSampler(HTTPSamplerBase sampler, HttpRequestHdr request, Map<String,String> pageEncodings, Map<String,String> formEncodings) throws Exception
SamplerCreator
sampler
- HTTPSamplerBase
request
- HttpRequestHdr
pageEncodings
- MapformEncodings
- MapException
SamplerCreator.populateSampler(org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase, org.apache.jmeter.protocol.http.proxy.HttpRequestHdr, java.util.Map, java.util.Map)
protected void computeFromHeader(HTTPSamplerBase sampler, HttpRequestHdr request, Map<String,String> pageEncodings, Map<String,String> formEncodings) throws Exception
sampler
- HTTPSamplerBase
request
- HttpRequestHdr
pageEncodings
- MapformEncodings
- MapException
protected void computeFromPostBody(HTTPSamplerBase sampler, HttpRequestHdr request) throws Exception
sampler
- HTTPSamplerBase
request
- HttpRequestHdr
Exception
protected void computeSamplerName(HTTPSamplerBase sampler, HttpRequestHdr request)
sampler
- HTTPSamplerBase
request
- HttpRequestHdr
protected void computePath(HTTPSamplerBase sampler, HttpRequestHdr request)
sampler
- HTTPSamplerBase
request
- HttpRequestHdr
protected void computeContentEncoding(HTTPSamplerBase sampler, HttpRequestHdr request, Map<String,String> pageEncodings, Map<String,String> formEncodings) throws MalformedURLException
sampler
- HTTPSamplerBase
request
- HttpRequestHdr
pageEncodings
- MapformEncodings
- MapMalformedURLException
protected String computeContentEncoding(HttpRequestHdr request, Map<String,String> pageEncodings, Map<String,String> formEncodings, String urlWithoutQuery)
request
- HttpRequestHdr
pageEncodings
- MapformEncodings
- Mapprotected void computeProtocol(HTTPSamplerBase sampler, HttpRequestHdr request)
sampler
- HTTPSamplerBase
request
- HttpRequestHdr
protected void computePort(HTTPSamplerBase sampler, HttpRequestHdr request)
sampler
- HTTPSamplerBase
request
- HttpRequestHdr
protected void computeMethod(HTTPSamplerBase sampler, HttpRequestHdr request)
sampler
- HTTPSamplerBase
request
- HttpRequestHdr
protected void computeDomain(HTTPSamplerBase sampler, HttpRequestHdr request)
sampler
- HTTPSamplerBase
request
- HttpRequestHdr
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |