Class HTTPSamplerBaseWrapper.HTTPSamplerBaseWrapperBuilder<T extends org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase,G extends org.apache.jmeter.samplers.gui.AbstractSamplerGui,C extends HTTPSamplerBaseWrapper<T,G>,B extends HTTPSamplerBaseWrapper.HTTPSamplerBaseWrapperBuilder<T,G,C,B>>
- java.lang.Object
-
- org.anasoid.jmc.core.wrapper.jmeter.testelement.basic.AbstractBasicTestElementWrapper.AbstractBasicTestElementWrapperBuilder<T,C,B>
-
- org.anasoid.jmc.core.wrapper.jmeter.testelement.basic.AbstractBasicParentTestElementWrapper.AbstractBasicParentTestElementWrapperBuilder<T,C,B>
-
- org.anasoid.jmc.core.wrapper.jmeter.testelement.AbstractTestElementWrapper.AbstractTestElementWrapperBuilder<T,C,B>
-
- org.anasoid.jmc.core.wrapper.jmeter.samplers.AbstractSamplerWrapper.AbstractSamplerWrapperBuilder<T,G,C,B>
-
- org.anasoid.jmc.core.wrapper.jmeter.samplers.HTTPSamplerBaseWrapper.HTTPSamplerBaseWrapperBuilder<T,G,C,B>
-
- All Implemented Interfaces:
JmcWrapperBuilder<C>
- Direct Known Subclasses:
HTTPSamplerProxyWrapper.HTTPSamplerProxyWrapperBuilder
- Enclosing class:
- HTTPSamplerBaseWrapper<T extends org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase,G extends org.apache.jmeter.samplers.gui.AbstractSamplerGui>
public abstract static class HTTPSamplerBaseWrapper.HTTPSamplerBaseWrapperBuilder<T extends org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase,G extends org.apache.jmeter.samplers.gui.AbstractSamplerGui,C extends HTTPSamplerBaseWrapper<T,G>,B extends HTTPSamplerBaseWrapper.HTTPSamplerBaseWrapperBuilder<T,G,C,B>> extends AbstractSamplerWrapper.AbstractSamplerWrapperBuilder<T,G,C,B>
Builder.
-
-
Constructor Summary
Constructors Constructor Description HTTPSamplerBaseWrapperBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected B$fillValuesFrom(C instance)BaddArgument(java.lang.String name, java.lang.String value)Add argument, consists of a name/value pair, default metadata is '='.BaddArgument(HTTPArgumentWrapper argument)Add arguments.BaddArguments(java.util.Collection<HTTPArgumentWrapper> arguments)Add arguments.BaddFileArgument(HTTPFileArgWrapper filesArgument)Add file argument.BaddFileArguments(java.util.Collection<HTTPFileArgWrapper> filesArguments)Add file arguments.abstract Cbuild()build Wrapper.protected abstract Bself()java.lang.StringtoString()BwithAutoRedirects(java.lang.Boolean autoRedirects)set autoRedirects.BwithBody(java.lang.String body)set body.BwithConcurrentDwn(java.lang.Boolean concurrentDwn)BwithConcurrentPool(int pool)Embedded Resources from HTML Files: Concurrent pool for parallel download.BwithConcurrentPool(java.lang.String concurrentPool)Embedded Resources from HTML Files: Concurrent pool for parallel download.BwithConcurrentPool(Variable pool)Embedded Resources from HTML Files: Concurrent pool for parallel download.BwithConnectTimeout(int timeout)set Connect Timeout.BwithConnectTimeout(java.lang.String connectTimeout)set Connect Timeout.BwithConnectTimeout(Variable timeout)set Connect Timeout.BwithContentEncoding(java.lang.String contentEncoding)BwithDoBrowserCompatibleMultipart(java.lang.Boolean doBrowserCompatibleMultipart)BwithDomain(java.lang.String domain)BwithDoMultipartPost(java.lang.Boolean doMultipartPost)BwithEmbeddedUrlExcludeRE(java.lang.String embeddedUrlExcludeRE)BwithEmbeddedUrlRE(java.lang.String embeddedUrlRE)BwithFollowRedirects(java.lang.Boolean followRedirects)set followRedirects.BwithImageParser(java.lang.Boolean imageParser)BwithImplementation(Implementation implementation)BwithIpSource(java.lang.String ipSource)BwithIpSourceType(IpSourceType ipSourceType)BwithMd5(java.lang.Boolean md5)BwithMethod(HttpMethod method)BwithPath(java.lang.String path)BwithPort(int port)Port Number.BwithPort(java.lang.String port)Port Number.BwithPort(Variable port)Port Number.protected BwithPostBodyRaw(java.lang.Boolean postBodyRaw)set body.BwithProtocol(java.lang.String protocol)BwithProxyHost(java.lang.String proxyHost)BwithProxyPass(java.lang.String proxyPass)BwithProxyPort(int proxyPort)set Proxy Port.BwithProxyPort(java.lang.String proxyPort)set Proxy Port.BwithProxyPort(Variable proxyPort)set Proxy Port.BwithProxyScheme(java.lang.String proxyScheme)BwithProxyUser(java.lang.String proxyUser)BwithResponseTimeout(int timeout)set Response Timeout.BwithResponseTimeout(java.lang.String responseTimeout)set Response Timeout.BwithResponseTimeout(Variable timeout)set Response Timeout.BwithUseKeepAlive(java.lang.Boolean useKeepAlive)-
Methods inherited from class org.anasoid.jmc.core.wrapper.jmeter.testelement.AbstractTestElementWrapper.AbstractTestElementWrapperBuilder
withComment, withEnabled, withName
-
Methods inherited from class org.anasoid.jmc.core.wrapper.jmeter.testelement.basic.AbstractBasicParentTestElementWrapper.AbstractBasicParentTestElementWrapperBuilder
addAssertion, addAssertion, addAssertions, addConfig, addConfig, addConfigs, addListener, addListener, addListener, addPostProcessor, addPostProcessor, addPostProcessors, addPreProcessor, addPreProcessor, addPreProcessors, addTimer, addTimer, addTimers, withChild, withChilds
-
Methods inherited from class org.anasoid.jmc.core.wrapper.jmeter.testelement.basic.AbstractBasicTestElementWrapper.AbstractBasicTestElementWrapperBuilder
addTags, withIsInitialized, withTags
-
-
-
-
Method Detail
-
withBody
public B withBody(java.lang.String body)
set body.
-
withPostBodyRaw
protected B withPostBodyRaw(java.lang.Boolean postBodyRaw)
set body.
-
withAutoRedirects
public B withAutoRedirects(java.lang.Boolean autoRedirects)
set autoRedirects.
-
withFollowRedirects
public B withFollowRedirects(java.lang.Boolean followRedirects)
set followRedirects.
-
withPort
public B withPort(int port)
Port Number.
-
withPort
public B withPort(java.lang.String port)
Port Number.
-
withProxyPort
public B withProxyPort(int proxyPort)
set Proxy Port.
-
withProxyPort
public B withProxyPort(java.lang.String proxyPort)
set Proxy Port.
-
withConcurrentPool
public B withConcurrentPool(int pool)
Embedded Resources from HTML Files: Concurrent pool for parallel download.
-
withConcurrentPool
public B withConcurrentPool(Variable pool)
Embedded Resources from HTML Files: Concurrent pool for parallel download.
-
withConcurrentPool
public B withConcurrentPool(java.lang.String concurrentPool)
Embedded Resources from HTML Files: Concurrent pool for parallel download.
-
withConnectTimeout
public B withConnectTimeout(int timeout)
set Connect Timeout.
-
withConnectTimeout
public B withConnectTimeout(java.lang.String connectTimeout)
set Connect Timeout.
-
withResponseTimeout
public B withResponseTimeout(int timeout)
set Response Timeout.
-
withResponseTimeout
public B withResponseTimeout(java.lang.String responseTimeout)
set Response Timeout.
-
addFileArguments
public B addFileArguments(java.util.Collection<HTTPFileArgWrapper> filesArguments)
Add file arguments.- Parameters:
filesArguments- List of HTTPFileArgWrapper.
-
addFileArgument
public B addFileArgument(HTTPFileArgWrapper filesArgument)
Add file argument.- Parameters:
filesArgument- HTTPFileArgWrapper.
-
addArguments
public B addArguments(java.util.Collection<HTTPArgumentWrapper> arguments)
Add arguments. Each argument consists of a name/value pair, as well as (optional) metadata.- Parameters:
arguments- List of arguments.
-
addArgument
public B addArgument(java.lang.String name, java.lang.String value)
Add argument, consists of a name/value pair, default metadata is '='.- Parameters:
name- name.value- value.
-
addArgument
public B addArgument(HTTPArgumentWrapper argument)
Add arguments. Each argument consists of a name/value pair, as well as (optional) metadata.- Parameters:
argument- argument. to be add
-
$fillValuesFrom
protected B $fillValuesFrom(C instance)
- Overrides:
$fillValuesFromin classAbstractSamplerWrapper.AbstractSamplerWrapperBuilder<T extends org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase,G extends org.apache.jmeter.samplers.gui.AbstractSamplerGui,C extends HTTPSamplerBaseWrapper<T,G>,B extends HTTPSamplerBaseWrapper.HTTPSamplerBaseWrapperBuilder<T,G,C,B>>
-
self
protected abstract B self()
- Specified by:
selfin classAbstractSamplerWrapper.AbstractSamplerWrapperBuilder<T extends org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase,G extends org.apache.jmeter.samplers.gui.AbstractSamplerGui,C extends HTTPSamplerBaseWrapper<T,G>,B extends HTTPSamplerBaseWrapper.HTTPSamplerBaseWrapperBuilder<T,G,C,B>>
-
build
public abstract C build()
Description copied from interface:JmcWrapperBuilderbuild Wrapper.- Specified by:
buildin interfaceJmcWrapperBuilder<T extends org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase>- Specified by:
buildin classAbstractSamplerWrapper.AbstractSamplerWrapperBuilder<T extends org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase,G extends org.apache.jmeter.samplers.gui.AbstractSamplerGui,C extends HTTPSamplerBaseWrapper<T,G>,B extends HTTPSamplerBaseWrapper.HTTPSamplerBaseWrapperBuilder<T,G,C,B>>
-
withDomain
public B withDomain(java.lang.String domain)
- Returns:
this.
-
withPath
public B withPath(java.lang.String path)
- Returns:
this.
-
withProtocol
public B withProtocol(java.lang.String protocol)
- Returns:
this.
-
withContentEncoding
public B withContentEncoding(java.lang.String contentEncoding)
- Returns:
this.
-
withMethod
public B withMethod(HttpMethod method)
- Returns:
this.
-
withImplementation
public B withImplementation(Implementation implementation)
- Returns:
this.
-
withIpSourceType
public B withIpSourceType(IpSourceType ipSourceType)
- Returns:
this.
-
withIpSource
public B withIpSource(java.lang.String ipSource)
- Returns:
this.
-
withProxyScheme
public B withProxyScheme(java.lang.String proxyScheme)
- Returns:
this.
-
withProxyHost
public B withProxyHost(java.lang.String proxyHost)
- Returns:
this.
-
withProxyUser
public B withProxyUser(java.lang.String proxyUser)
- Returns:
this.
-
withProxyPass
public B withProxyPass(java.lang.String proxyPass)
- Returns:
this.
-
withUseKeepAlive
public B withUseKeepAlive(java.lang.Boolean useKeepAlive)
- Returns:
this.
-
withDoMultipartPost
public B withDoMultipartPost(java.lang.Boolean doMultipartPost)
- Returns:
this.
-
withDoBrowserCompatibleMultipart
public B withDoBrowserCompatibleMultipart(java.lang.Boolean doBrowserCompatibleMultipart)
- Returns:
this.
-
withMd5
public B withMd5(java.lang.Boolean md5)
- Returns:
this.
-
withEmbeddedUrlRE
public B withEmbeddedUrlRE(java.lang.String embeddedUrlRE)
- Returns:
this.
-
withEmbeddedUrlExcludeRE
public B withEmbeddedUrlExcludeRE(java.lang.String embeddedUrlExcludeRE)
- Returns:
this.
-
withConcurrentDwn
public B withConcurrentDwn(java.lang.Boolean concurrentDwn)
- Returns:
this.
-
withImageParser
public B withImageParser(java.lang.Boolean imageParser)
- Returns:
this.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractSamplerWrapper.AbstractSamplerWrapperBuilder<T extends org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase,G extends org.apache.jmeter.samplers.gui.AbstractSamplerGui,C extends HTTPSamplerBaseWrapper<T,G>,B extends HTTPSamplerBaseWrapper.HTTPSamplerBaseWrapperBuilder<T,G,C,B>>
-
-