org.apache.jmeter.protocol.http.proxy
Class ProxyControl
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.control.GenericController
org.apache.jmeter.protocol.http.proxy.ProxyControl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Controller, TestElement
public class ProxyControl
- extends GenericController
Class handles storing of generated samples, etc
- See Also:
- Serialized Form
Methods inherited from class org.apache.jmeter.control.GenericController |
addIterationListener, addTestElement, currentReturnedNull, fireIterationStart, fireIterEvents, getCurrentElement, getIterCount, getSubControllers, incrementCurrent, incrementIterCount, initialize, isDone, isFirst, next, nextIsAController, nextIsASampler, nextIsNull, reInitialize, removeCurrentElement, resetCurrent, resetIterCount, setCurrentElement, setDone, setFirst |
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
addProperty, clear, clearTemporary, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jmeter.testelement.TestElement |
clear, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse |
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
DEFAULT_PORT_S
public static final java.lang.String DEFAULT_PORT_S
GROUPING_NO_GROUPS
public static final int GROUPING_NO_GROUPS
- See Also:
- Constant Field Values
GROUPING_ADD_SEPARATORS
public static final int GROUPING_ADD_SEPARATORS
- See Also:
- Constant Field Values
GROUPING_IN_CONTROLLERS
public static final int GROUPING_IN_CONTROLLERS
- See Also:
- Constant Field Values
GROUPING_STORE_FIRST_ONLY
public static final int GROUPING_STORE_FIRST_ONLY
- See Also:
- Constant Field Values
SAMPLER_TYPE_HTTP_SAMPLER
public static final int SAMPLER_TYPE_HTTP_SAMPLER
- See Also:
- Constant Field Values
SAMPLER_TYPE_HTTP_SAMPLER2
public static final int SAMPLER_TYPE_HTTP_SAMPLER2
- See Also:
- Constant Field Values
ProxyControl
public ProxyControl()
setPort
public void setPort(int port)
setPort
public void setPort(java.lang.String port)
setCaptureHttpHeaders
public void setCaptureHttpHeaders(boolean capture)
setGroupingMode
public void setGroupingMode(int grouping)
setAssertions
public void setAssertions(boolean b)
setSamplerTypeName
public void setSamplerTypeName(int samplerTypeName)
setSamplerRedirectAutomatically
public void setSamplerRedirectAutomatically(boolean b)
setSamplerFollowRedirects
public void setSamplerFollowRedirects(boolean b)
setUseKeepAlive
public void setUseKeepAlive(boolean b)
- Parameters:
b
-
setSamplerDownloadImages
public void setSamplerDownloadImages(boolean b)
setIncludeList
public void setIncludeList(java.util.Collection list)
setExcludeList
public void setExcludeList(java.util.Collection list)
setRegexMatch
public void setRegexMatch(boolean b)
- Parameters:
b
-
setHttpsSpoof
public void setHttpsSpoof(boolean b)
setHttpsSpoofMatch
public void setHttpsSpoofMatch(java.lang.String s)
setContentTypeExclude
public void setContentTypeExclude(java.lang.String contentTypeExclude)
setContentTypeInclude
public void setContentTypeInclude(java.lang.String contentTypeInclude)
getAssertions
public boolean getAssertions()
getGroupingMode
public int getGroupingMode()
getPort
public int getPort()
getPortString
public java.lang.String getPortString()
getDefaultPort
public int getDefaultPort()
getCaptureHttpHeaders
public boolean getCaptureHttpHeaders()
getSamplerTypeName
public int getSamplerTypeName()
getSamplerRedirectAutomatically
public boolean getSamplerRedirectAutomatically()
getSamplerFollowRedirects
public boolean getSamplerFollowRedirects()
getUseKeepalive
public boolean getUseKeepalive()
getSamplerDownloadImages
public boolean getSamplerDownloadImages()
getRegexMatch
public boolean getRegexMatch()
getHttpsSpoof
public boolean getHttpsSpoof()
getHttpsSpoofMatch
public java.lang.String getHttpsSpoofMatch()
getContentTypeExclude
public java.lang.String getContentTypeExclude()
getContentTypeInclude
public java.lang.String getContentTypeInclude()
getGuiClass
public java.lang.Class getGuiClass()
addConfigElement
public void addConfigElement(ConfigElement config)
startProxy
public void startProxy()
throws java.io.IOException
- Throws:
java.io.IOException
addExcludedPattern
public void addExcludedPattern(java.lang.String pattern)
getExcludePatterns
public CollectionProperty getExcludePatterns()
addIncludedPattern
public void addIncludedPattern(java.lang.String pattern)
getIncludePatterns
public CollectionProperty getIncludePatterns()
clearExcludedPatterns
public void clearExcludedPatterns()
clearIncludedPatterns
public void clearIncludedPatterns()
getTarget
public JMeterTreeNode getTarget()
- Returns:
- the target controller node
setTarget
public void setTarget(JMeterTreeNode target)
- Sets the target node where the samples generated by the proxy have to be
stored.
deliverSampler
public void deliverSampler(HTTPSamplerBase sampler,
TestElement[] subConfigs,
SampleResult result)
- Receives the recorded sampler from the proxy server for placing in the
test tree. param serverResponse to be added to allow saving of the
server's response while recording. A future consideration.
stopProxy
public void stopProxy()
canRemove
public boolean canRemove()
- Description copied from interface:
TestElement
- Called by Remove to determine if it is safe to remove the element. The
element can either clean itself up, and return true, or the element can
return false.
- Specified by:
canRemove
in interface TestElement
- Overrides:
canRemove
in class AbstractTestElement
- Returns:
- true if safe to remove the element
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.