public class ProxyControl extends GenericController
Modifier and Type | Class and Description |
---|---|
static class |
ProxyControl.KeystoreMode |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PORT |
static String |
DEFAULT_PORT_S |
current, subControllersAndSamplers
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
ProxyControl() |
addIterationListener, addTestElement, addTestElementOnce, currentReturnedNull, fireIterationStart, fireIterEvents, getCurrentElement, getIterCount, getSubControllers, incrementCurrent, incrementIterCount, initialize, initializeSubControllers, isDone, isFirst, next, nextIsAController, nextIsASampler, nextIsNull, readResolve, reInitialize, reInitializeSubController, removeCurrentElement, removeIterationListener, resetCurrent, resetIterCount, setCurrentElement, setDone, setFirst, triggerEndOfLoop
addPropertiesValues, addProperty, addProperty, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
clear, clearTestElementChildren, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
public static final int DEFAULT_PORT
public static final String DEFAULT_PORT_S
public void setPort(int port)
public void setPort(String port)
public void setSslDomains(String domains)
public String getSslDomains()
public void setCaptureHttpHeaders(boolean capture)
public void setGroupingMode(int grouping)
public void setAssertions(boolean b)
@Deprecated public void setSamplerTypeName(int samplerTypeName)
public void setSamplerTypeName(String samplerTypeName)
public void setSamplerRedirectAutomatically(boolean b)
public void setSamplerFollowRedirects(boolean b)
public void setUseKeepAlive(boolean b)
b
- flag whether keep alive should be usedpublic void setSamplerDownloadImages(boolean b)
public void setNotifyChildSamplerListenerOfFilteredSamplers(boolean b)
public void setIncludeList(Collection<String> list)
public void setExcludeList(Collection<String> list)
public void setRegexMatch(boolean b)
b
- flag whether regex matching should be usedpublic void setContentTypeExclude(String contentTypeExclude)
public void setContentTypeInclude(String contentTypeInclude)
public boolean getAssertions()
public int getGroupingMode()
public int getPort()
public String getPortString()
public int getDefaultPort()
public boolean getCaptureHttpHeaders()
public String getSamplerTypeName()
public boolean getSamplerRedirectAutomatically()
public boolean getSamplerFollowRedirects()
public boolean getUseKeepalive()
public boolean getSamplerDownloadImages()
public boolean getNotifyChildSamplerListenerOfFilteredSamplers()
public boolean getRegexMatch()
public String getContentTypeExclude()
public String getContentTypeInclude()
public void addConfigElement(ConfigElement config)
public void startProxy() throws IOException
IOException
public void addExcludedPattern(String pattern)
public CollectionProperty getExcludePatterns()
public void addIncludedPattern(String pattern)
public CollectionProperty getIncludePatterns()
public void clearExcludedPatterns()
public void clearIncludedPatterns()
public JMeterTreeNode getTarget()
public void setTarget(JMeterTreeNode target)
target
- target node to store generated samplespublic void deliverSampler(HTTPSamplerBase sampler, TestElement[] subConfigs, SampleResult result)
sampler
- the sampler, may be nullsubConfigs
- the configuration elements to be added (e.g. header namager)result
- the sample result, not null
TODO param serverResponse to be added to allow saving of the
server's response while recording.public void stopProxy()
public String[] getCertificateDetails()
public JMeterTreeNode findTargetControllerNode()
target
property.
public boolean canRemove()
AbstractTestElement
canRemove
in interface TestElement
canRemove
in class AbstractTestElement
public static boolean isDynamicMode()
Copyright © 1998-2016 Apache Software Foundation. All Rights Reserved.