public class HTTP2Request
extends org.apache.jmeter.samplers.AbstractSampler
implements org.apache.jmeter.testelement.ThreadListener, org.apache.jmeter.engine.event.LoopIterationListener
| Modifier and Type | Field and Description |
|---|---|
static String |
ARGUMENTS |
static String |
AUTO_REDIRECTS |
static String |
CONTENT_ENCODING
This is the encoding used for the content, i.e.
|
static String |
DEFAULT_METHOD |
static String |
DOMAIN |
static String |
EMBEDDED_RESOURCES |
static String |
EMBEDDED_URL_REGEX |
static String |
ENCODING |
static String |
FOLLOW_REDIRECTS |
static String |
IP_SOURCE |
static String |
IP_SOURCE_TYPE |
static String |
MD5 |
static String |
METHOD |
static String |
PATH |
static String |
PORT |
static String |
POST_BODY_RAW |
static boolean |
POST_BODY_RAW_DEFAULT |
static String |
PROTOCOL |
static String |
REQUEST_ID |
static String |
RESPONSE_TIMEOUT |
static int |
SOURCE_TYPE_DEFAULT |
static String |
SYNC_REQUEST |
static String |
UNSPECIFIED_PORT_AS_STRING |
| Constructor and Description |
|---|
HTTP2Request() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnection(String id,
HTTP2Connection connection) |
void |
addTestElement(org.apache.jmeter.testelement.TestElement el) |
org.apache.jmeter.protocol.http.control.CacheManager |
getCacheManager() |
HTTP2Connection |
getConnection() |
org.apache.jmeter.protocol.http.control.CookieManager |
getCookieManager() |
String |
getEmbeddedUrlRE()
Get the regular expression URLs must match.
|
org.apache.jmeter.protocol.http.control.HeaderManager |
getHeaderManager() |
org.apache.jmeter.protocol.http.util.HTTPFileArg[] |
getHTTPFiles() |
String |
getMethod() |
String |
getName() |
int |
getPort()
Get the port; apply the default for the protocol if necessary.
|
String |
getProtocol() |
boolean |
getSendFileAsPostBody()
Determine if the file should be sent as the entire Content body, i.e.
|
URL |
getUrl()
Get the URL, built from its component parts.
|
Boolean |
isEmbeddedResources() |
void |
iterationStart(org.apache.jmeter.engine.event.LoopIterationEvent iterEvent) |
org.apache.jmeter.samplers.SampleResult |
sample()
Perform a sample, and return the results
|
org.apache.jmeter.samplers.SampleResult |
sample(org.apache.jmeter.samplers.Entry entry) |
protected void |
sample(URL url,
String method,
HTTP2Connection http2Connection,
HTTP2SampleResult sampleResult) |
void |
setConnection(URL url,
HTTP2SampleResult sampleResult) |
void |
setEmbeddedResources(boolean embeddedResources) |
void |
setEmbeddedUrlRE(String regex) |
void |
setName(String name) |
void |
setProtocol(String value) |
void |
threadFinished() |
void |
threadStarted() |
addPropertiesValues, addProperty, addProperty, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, 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, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertyfinalize, getClass, notify, notifyAll, toString, wait, wait, waitcanRemove, clear, clearTestElementChildren, clone, getComment, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traversepublic static final String ENCODING
public static final String METHOD
public static final String PORT
public static final String DEFAULT_METHOD
public static final String UNSPECIFIED_PORT_AS_STRING
public static final String IP_SOURCE
public static final String IP_SOURCE_TYPE
public static final String EMBEDDED_URL_REGEX
public static final String MD5
public static final String EMBEDDED_RESOURCES
public static final int SOURCE_TYPE_DEFAULT
public static final String ARGUMENTS
public static final String POST_BODY_RAW
public static final boolean POST_BODY_RAW_DEFAULT
public static final String DOMAIN
public static final String RESPONSE_TIMEOUT
public static final String FOLLOW_REDIRECTS
public static final String AUTO_REDIRECTS
public static final String SYNC_REQUEST
public static final String PROTOCOL
public static final String REQUEST_ID
public static final String CONTENT_ENCODING
public static final String PATH
public void setName(String name)
setName in interface org.apache.jmeter.testelement.TestElementsetName in class org.apache.jmeter.testelement.AbstractTestElementpublic String getName()
getName in interface org.apache.jmeter.testelement.TestElementgetName in class org.apache.jmeter.testelement.AbstractTestElementpublic org.apache.jmeter.samplers.SampleResult sample(org.apache.jmeter.samplers.Entry entry)
sample in interface org.apache.jmeter.samplers.Samplerpublic org.apache.jmeter.samplers.SampleResult sample()
protected void sample(URL url, String method, HTTP2Connection http2Connection, HTTP2SampleResult sampleResult)
public HTTP2Connection getConnection()
public void addConnection(String id, HTTP2Connection connection)
public void setConnection(URL url, HTTP2SampleResult sampleResult) throws Exception
Exceptionpublic String getMethod()
public URL getUrl() throws MalformedURLException
As a special case, if the path starts with "http[s]://", then the path is assumed to be the entire URL.
MalformedURLException - if url is malformedpublic int getPort()
public void setProtocol(String value)
public String getProtocol()
public boolean getSendFileAsPostBody()
public org.apache.jmeter.protocol.http.util.HTTPFileArg[] getHTTPFiles()
public Boolean isEmbeddedResources()
public org.apache.jmeter.protocol.http.control.HeaderManager getHeaderManager()
public String getEmbeddedUrlRE()
public void addTestElement(org.apache.jmeter.testelement.TestElement el)
addTestElement in interface org.apache.jmeter.testelement.TestElementaddTestElement in class org.apache.jmeter.testelement.AbstractTestElementpublic org.apache.jmeter.protocol.http.control.CookieManager getCookieManager()
public org.apache.jmeter.protocol.http.control.CacheManager getCacheManager()
public void threadStarted()
threadStarted in interface org.apache.jmeter.testelement.ThreadListenerpublic void threadFinished()
threadFinished in interface org.apache.jmeter.testelement.ThreadListenerpublic void setEmbeddedResources(boolean embeddedResources)
public void setEmbeddedUrlRE(String regex)
public void iterationStart(org.apache.jmeter.engine.event.LoopIterationEvent iterEvent)
iterationStart in interface org.apache.jmeter.engine.event.LoopIterationListenerCopyright © 2018. All rights reserved.