Package us.abstracta.jmeter.javadsl.http
Class DslBaseHttpSampler.BaseHttpSamplerCodeBuilder
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.codegeneration.MethodCallBuilder
-
- us.abstracta.jmeter.javadsl.codegeneration.SingleGuiClassCallBuilder
-
- us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler.BaseHttpSamplerCodeBuilder
-
- Direct Known Subclasses:
DslHttpSampler.CodeBuilder
- Enclosing class:
- DslBaseHttpSampler<T extends DslBaseHttpSampler<T>>
protected abstract static class DslBaseHttpSampler.BaseHttpSamplerCodeBuilder extends SingleGuiClassCallBuilder
-
-
Field Summary
-
Fields inherited from class us.abstracta.jmeter.javadsl.codegeneration.SingleGuiClassCallBuilder
guiClass
-
Fields inherited from class us.abstracta.jmeter.javadsl.codegeneration.MethodCallBuilder
builderMethods
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseHttpSamplerCodeBuilder(String defaultName, Class<? extends org.apache.jmeter.gui.JMeterGUIComponent> guiClass, List<Method> builderMethods)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract MethodCallbuildBaseHttpMethodCall(MethodParam name, MethodParam url, TestElementParamBuilder paramBuilder)protected MethodCallbuildMethodCall(MethodCallContext context)Generates the method call instance for the particular DSL test element.static MethodParambuildUrlParam(MethodParam protocol, MethodParam domain, MethodParam port, MethodParam path)protected abstract voidchainAdditionalOptions(MethodCall ret, TestElementParamBuilder paramBuilder)protected voidchainContentType(MethodCall ret, String contentType)protected voidchainHeaders(MethodCall ret, MethodCallContext headersContext)protected abstract voidchainRequestCalls(MethodCall ret, org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy testElement, MethodCallContext context)protected StringremoveContentTypeHeader(MethodCallContext context)-
Methods inherited from class us.abstracta.jmeter.javadsl.codegeneration.SingleGuiClassCallBuilder
matches
-
Methods inherited from class us.abstracta.jmeter.javadsl.codegeneration.MethodCallBuilder
buildMethodCall, getBuilderOptionName, order, propertyIterator2Stream
-
-
-
-
Method Detail
-
buildMethodCall
protected MethodCall buildMethodCall(MethodCallContext context)
Description copied from class:MethodCallBuilderGenerates the method call instance for the particular DSL test element.You can check
DslTestPlan.CodeBuilderto get an idea of how a general implementation of this method looks likeIf you find a scenario where your MethodCallBuilder applies to the given context, but no code has to be generated for it, then use
MethodCall.emptyCall()to return a call that generates no code.- Specified by:
buildMethodCallin classMethodCallBuilder- Parameters:
context- provides all information that might be required to generate the method call. For example: JMeter test plan tree node test element, parent context, a map of entries to host custom information, etc.- Returns:
- generated method call for the DSL test element.
-
buildBaseHttpMethodCall
protected abstract MethodCall buildBaseHttpMethodCall(MethodParam name, MethodParam url, TestElementParamBuilder paramBuilder)
-
buildUrlParam
public static MethodParam buildUrlParam(MethodParam protocol, MethodParam domain, MethodParam port, MethodParam path)
-
chainRequestCalls
protected abstract void chainRequestCalls(MethodCall ret, org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy testElement, MethodCallContext context)
-
removeContentTypeHeader
protected String removeContentTypeHeader(MethodCallContext context)
-
chainContentType
protected void chainContentType(MethodCall ret, String contentType)
-
chainHeaders
protected void chainHeaders(MethodCall ret, MethodCallContext headersContext)
-
chainAdditionalOptions
protected abstract void chainAdditionalOptions(MethodCall ret, TestElementParamBuilder paramBuilder)
-
-