Class HTTPSamplerFactory
java.lang.Object
org.apache.jmeter.protocol.http.sampler.HTTPSamplerFactory
Factory to return the appropriate HTTPSampler for use with classes that need
an HTTPSampler; also creates the implementations for use with HTTPSamplerProxy.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HTTPAbstractImpl
getImplementation
(String impl, HTTPSamplerBase base) static String[]
static HTTPSamplerBase
Create a new instance of the default samplerstatic HTTPSamplerBase
newInstance
(String alias) Create a new instance of the required sampler type
-
Field Details
-
HTTP_SAMPLER_JAVA
Use the default Java HTTP implementation- See Also:
-
HTTP_SAMPLER_APACHE
Use Apache HTTPClient HTTP implementation- See Also:
-
IMPL_HTTP_CLIENT4
- See Also:
-
IMPL_HTTP_CLIENT3_1
- See Also:
-
IMPL_JAVA
- See Also:
-
DEFAULT_CLASSNAME
-
-
Method Details
-
newInstance
Create a new instance of the default sampler- Returns:
- instance of default sampler
-
newInstance
Create a new instance of the required sampler type- Parameters:
alias
- HTTP_SAMPLER or HTTP_SAMPLER_APACHE or IMPL_HTTP_CLIENT3_1 or IMPL_HTTP_CLIENT4- Returns:
- the appropriate sampler
- Throws:
UnsupportedOperationException
- if alias is not recognised
-
getImplementations
-
getImplementation
-