public static final class BasicCurlParser.Request extends Object
Constructor and Description |
---|
Request() |
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<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 void addFormStringData(String key, String value)
key
- the key of form datavalue
- the value of form datapublic void addFormData(String key, String 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 © 1998-2019 Apache Software Foundation. All Rights Reserved.