public static final class BasicCurlParser.Request extends Object
Constructor and Description |
---|
Request() |
Modifier and Type | Method and Description |
---|---|
void |
addDnsServers(String dnsServer) |
void |
addFormData(String key,
ArgumentHolder value) |
void |
addFormStringData(String key,
String value) |
void |
addHeader(String name,
String value) |
void |
addOptionsIgnored(String option) |
void |
addOptionsInProperties(String option) |
void |
addOptionsNoSupport(String option) |
Authorization |
getAuthorization() |
String |
getCaCert() |
double |
getConnectTimeout() |
List<Cookie> |
getCookieInHeaders(String url)
Note that
setCookieInHeaders(String) will have to be called first to set the cookies from headers. |
List<Cookie> |
getCookies(String url)
Note that
setCookies(String) will have to be called first to set the cookies |
String |
getDnsResolver() |
Set<String> |
getDnsServers() |
String |
getFilepathCookie() |
List<org.apache.commons.lang3.tuple.Pair<String,ArgumentHolder>> |
getFormData() |
List<org.apache.commons.lang3.tuple.Pair<String,String>> |
getFormStringData() |
List<org.apache.commons.lang3.tuple.Pair<String,String>> |
getHeaders() |
String |
getInterfaceName() |
int |
getLimitRate() |
double |
getMaxTime() |
String |
getMethod() |
String |
getNoproxy() |
List<String> |
getOptionsIgnored() |
List<String> |
getOptionsInProperties() |
List<String> |
getOptionsNoSupport() |
String |
getPostData() |
Map<String,String> |
getProxyServer() |
String |
getUrl() |
boolean |
isCompressed() |
boolean |
isKeepAlive() |
void |
setCaCert(String caCert)
the options which work for SSL
|
void |
setCompressed(boolean compressed) |
void |
setConnectTimeout(double connectTimeout) |
void |
setCookieInHeaders(String cookieInHeaders) |
void |
setCookies(String cookies) |
void |
setDnsResolver(String dnsResolver)
set DNS resolver
|
void |
setFilepathCookie(String filepathCookie) |
void |
setInterfaceName(String interfaceName) |
void |
setKeepAlive(boolean isKeepAlive) |
void |
setLimitRate(String limitRate)
Transform the bandwidth to cps value (byte/s), cps =
bandwidth*1024/8, the unit of bandwidth in JMeter is measured in kbit/s.
|
void |
setMaxTime(double maxTime) |
void |
setMethod(String method) |
void |
setNoproxy(String noproxy)
Set the list of hosts which don't use proxy
|
void |
setPostData(String value) |
void |
setProxyServer(String key,
String value) |
void |
setUrl(String url) |
String |
toString() |
public String getMethod()
public void setMethod(String method)
method
- the HTTP method to setpublic void setPostData(String value)
value
- the post datapublic String getPostData()
public boolean isCompressed()
public void setCompressed(boolean compressed)
compressed
- the compressed to setpublic void addHeader(String name, String value)
name
- the field of Headervalue
- the value of Headerpublic List<Cookie> getCookieInHeaders(String url)
setCookieInHeaders(String)
will have to be called first to set the cookies from headers.url
- to extract domain and port for the cookie frompublic void setCookieInHeaders(String cookieInHeaders)
cookieInHeaders
- the cookieInHeaders to setpublic String getUrl()
public void setUrl(String url)
url
- the url to setpublic List<org.apache.commons.lang3.tuple.Pair<String,String>> getHeaders()
public List<String> getOptionsInProperties()
public void addOptionsInProperties(String option)
option
- the optionpublic int getLimitRate()
public void setLimitRate(String limitRate)
limitRate
- the maximum transfer ratepublic String getNoproxy()
public void setNoproxy(String noproxy)
noproxy
- list of hosts that should not be used through the proxypublic String getDnsResolver()
public void setDnsResolver(String dnsResolver)
dnsResolver
- name of the DNS resolver to usepublic String getInterfaceName()
public void setInterfaceName(String interfaceName)
interfaceName
- the name of interfacepublic List<String> getOptionsIgnored()
public void addOptionsIgnored(String option)
option
- option is ignoredpublic List<String> getOptionsNoSupport()
public void addOptionsNoSupport(String option)
option
- option is not supportedpublic void setProxyServer(String key, String value)
key
- keyvalue
- valuepublic boolean isKeepAlive()
public void setKeepAlive(boolean isKeepAlive)
isKeepAlive
- set if the Http request keeps alivepublic void addDnsServers(String dnsServer)
dnsServer
- set the list of DNS serverpublic List<org.apache.commons.lang3.tuple.Pair<String,String>> getFormStringData()
public void addFormStringData(String key, String value)
key
- the key of form datavalue
- the value of form datapublic List<org.apache.commons.lang3.tuple.Pair<String,ArgumentHolder>> getFormData()
public void addFormData(String key, ArgumentHolder value)
key
- the key of form datavalue
- the value of form datapublic String getCaCert()
public void setCaCert(String caCert)
caCert
- cert of the CApublic Authorization getAuthorization()
public double getConnectTimeout()
public void setConnectTimeout(double connectTimeout)
connectTimeout
- the connection time outpublic double getMaxTime()
public void setMaxTime(double maxTime)
maxTime
- max time of connectionpublic String getFilepathCookie()
public void setFilepathCookie(String filepathCookie)
filepathCookie
- the filepathCookie to setpublic List<Cookie> getCookies(String url)
setCookies(String)
will have to be called first to set the cookiesurl
- to extract domain and port frompublic void setCookies(String cookies)
cookies
- the cookies to setCopyright (c) 1998-2021 Apache Software Foundation. All Rights Reserved.