protected abstract static class DslBaseHttpSampler.BaseHttpSamplerCodeBuilder extends SingleGuiClassCallBuilder
guiClassbuilderMethods| Modifier | Constructor and Description |
|---|---|
protected |
BaseHttpSamplerCodeBuilder(String defaultName,
Class<? extends org.apache.jmeter.gui.JMeterGUIComponent> guiClass,
List<Method> builderMethods) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract MethodCall |
buildBaseHttpMethodCall(MethodParam name,
MethodParam url,
TestElementParamBuilder paramBuilder) |
protected MethodCall |
buildMethodCall(MethodCallContext context)
Generates the method call instance for the particular DSL test element.
|
static MethodParam |
buildUrlParam(MethodParam protocol,
MethodParam domain,
MethodParam port,
MethodParam path) |
protected abstract void |
chainAdditionalOptions(MethodCall ret,
TestElementParamBuilder paramBuilder) |
protected void |
chainContentType(MethodCall ret,
String contentType) |
protected void |
chainHeaders(MethodCall ret,
MethodCallContext headersContext) |
protected abstract void |
chainRequestCalls(MethodCall ret,
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy testElement,
MethodCallContext context) |
protected String |
removeContentTypeHeader(MethodCallContext context) |
matchesbuildMethodCall, getBuilderOptionName, order, propertyIterator2Streamprotected MethodCall buildMethodCall(MethodCallContext context)
MethodCallBuilder
You can check DslTestPlan.CodeBuilder to get an idea
of how a general implementation of this method looks like
If 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.
buildMethodCall in class MethodCallBuildercontext - 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.protected abstract MethodCall buildBaseHttpMethodCall(MethodParam name, MethodParam url, TestElementParamBuilder paramBuilder)
public static MethodParam buildUrlParam(MethodParam protocol, MethodParam domain, MethodParam port, MethodParam path)
protected abstract void chainRequestCalls(MethodCall ret, org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy testElement, MethodCallContext context)
protected String removeContentTypeHeader(MethodCallContext context)
protected void chainContentType(MethodCall ret, String contentType)
protected void chainHeaders(MethodCall ret, MethodCallContext headersContext)
protected abstract void chainAdditionalOptions(MethodCall ret, TestElementParamBuilder paramBuilder)
Copyright © 2023. All rights reserved.