public class HttpClient extends Object
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<all>
<element name="UserAgent" minOccurs="0">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<whiteSpace value="collapse"/>
</restriction>
</simpleType>
</element>
<element name="Proxy" type="{http://www.wisedream.net/XML-HTTPCLIENT/0.2}host" minOccurs="0"/>
<element name="ConnectTimeout" type="{http://www.w3.org/2001/XMLSchema}integer"/>
<element name="ConnRequestTimeout" type="{http://www.w3.org/2001/XMLSchema}integer"/>
<element name="SocketTimeout" type="{http://www.w3.org/2001/XMLSchema}integer"/>
<element name="Credentials" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="Credential" maxOccurs="unbounded" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence maxOccurs="unbounded">
<element name="Scope" type="{http://www.wisedream.net/XML-HTTPCLIENT/0.2}host"/>
</sequence>
<attribute name="username" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="password" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
</element>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<element name="CookieStore" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence maxOccurs="unbounded" minOccurs="0">
<element name="Cookie">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="domain" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="path" type="{http://www.w3.org/2001/XMLSchema}string" default="/" />
<attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
</element>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<element name="DefaultHeaders" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence maxOccurs="unbounded" minOccurs="0">
<element name="Header" type="{http://www.wisedream.net/XML-HTTPCLIENT/0.2}header"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<element name="SpecificHeaders" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence maxOccurs="unbounded" minOccurs="0">
<element name="Header">
<complexType>
<complexContent>
<extension base="{http://www.wisedream.net/XML-HTTPCLIENT/0.2}header">
<attribute name="urlMatches" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
</extension>
</complexContent>
</complexType>
</element>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
</all>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpClient.CookieStore
Java class for anonymous complex type.
|
static class |
HttpClient.Credentials
Java class for anonymous complex type.
|
static class |
HttpClient.DefaultHeaders
Java class for anonymous complex type.
|
static class |
HttpClient.SpecificHeaders
Java class for anonymous complex type.
|
| Modifier and Type | Field and Description |
|---|---|
protected BigInteger |
connectTimeout |
protected BigInteger |
connRequestTimeout |
protected HttpClient.CookieStore |
cookieStore |
protected HttpClient.Credentials |
credentials |
protected HttpClient.DefaultHeaders |
defaultHeaders |
protected Host |
proxy |
protected BigInteger |
socketTimeout |
protected HttpClient.SpecificHeaders |
specificHeaders |
protected String |
userAgent |
| Constructor and Description |
|---|
HttpClient() |
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
getConnectTimeout()
Gets the value of the connectTimeout property.
|
BigInteger |
getConnRequestTimeout()
Gets the value of the connRequestTimeout property.
|
HttpClient.CookieStore |
getCookieStore()
Gets the value of the cookieStore property.
|
HttpClient.Credentials |
getCredentials()
Gets the value of the credentials property.
|
HttpClient.DefaultHeaders |
getDefaultHeaders()
Gets the value of the defaultHeaders property.
|
Host |
getProxy()
Gets the value of the proxy property.
|
BigInteger |
getSocketTimeout()
Gets the value of the socketTimeout property.
|
HttpClient.SpecificHeaders |
getSpecificHeaders()
Gets the value of the specificHeaders property.
|
String |
getUserAgent()
Gets the value of the userAgent property.
|
void |
setConnectTimeout(BigInteger value)
Sets the value of the connectTimeout property.
|
void |
setConnRequestTimeout(BigInteger value)
Sets the value of the connRequestTimeout property.
|
void |
setCookieStore(HttpClient.CookieStore value)
Sets the value of the cookieStore property.
|
void |
setCredentials(HttpClient.Credentials value)
Sets the value of the credentials property.
|
void |
setDefaultHeaders(HttpClient.DefaultHeaders value)
Sets the value of the defaultHeaders property.
|
void |
setProxy(Host value)
Sets the value of the proxy property.
|
void |
setSocketTimeout(BigInteger value)
Sets the value of the socketTimeout property.
|
void |
setSpecificHeaders(HttpClient.SpecificHeaders value)
Sets the value of the specificHeaders property.
|
void |
setUserAgent(String value)
Sets the value of the userAgent property.
|
protected String userAgent
protected Host proxy
protected BigInteger connectTimeout
protected BigInteger connRequestTimeout
protected BigInteger socketTimeout
protected HttpClient.Credentials credentials
protected HttpClient.CookieStore cookieStore
protected HttpClient.DefaultHeaders defaultHeaders
protected HttpClient.SpecificHeaders specificHeaders
public String getUserAgent()
Stringpublic void setUserAgent(String value)
value - allowed object is
Stringpublic Host getProxy()
Hostpublic void setProxy(Host value)
value - allowed object is
Hostpublic BigInteger getConnectTimeout()
BigIntegerpublic void setConnectTimeout(BigInteger value)
value - allowed object is
BigIntegerpublic BigInteger getConnRequestTimeout()
BigIntegerpublic void setConnRequestTimeout(BigInteger value)
value - allowed object is
BigIntegerpublic BigInteger getSocketTimeout()
BigIntegerpublic void setSocketTimeout(BigInteger value)
value - allowed object is
BigIntegerpublic HttpClient.Credentials getCredentials()
HttpClient.Credentialspublic void setCredentials(HttpClient.Credentials value)
value - allowed object is
HttpClient.Credentialspublic HttpClient.CookieStore getCookieStore()
HttpClient.CookieStorepublic void setCookieStore(HttpClient.CookieStore value)
value - allowed object is
HttpClient.CookieStorepublic HttpClient.DefaultHeaders getDefaultHeaders()
HttpClient.DefaultHeaderspublic void setDefaultHeaders(HttpClient.DefaultHeaders value)
value - allowed object is
HttpClient.DefaultHeaderspublic HttpClient.SpecificHeaders getSpecificHeaders()
HttpClient.SpecificHeaderspublic void setSpecificHeaders(HttpClient.SpecificHeaders value)
value - allowed object is
HttpClient.SpecificHeadersCopyright © 2016. All rights reserved.