Package com.wolfram.alpha.net.apache
Class ApacheHttpProvider
java.lang.Object
com.wolfram.alpha.net.apache.ApacheHttpProvider
- All Implemented Interfaces:
HttpProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateHttpTransaction(URL url, ProxySettings proxySettings)
org.apache.http.client.HttpClient
String[]
getProxyHostAndPort(String url)
void
setProxyCredentials(String username, String password)
void
setProxyInfo(int useProxy, String httpProxyHost, int httpProxyPort, String socksProxyHost, int socksProxyPort)
void
setUserAgent(String agent)
-
Constructor Details
-
ApacheHttpProvider
public ApacheHttpProvider()
-
-
Method Details
-
setUserAgent
- Specified by:
setUserAgent
in interfaceHttpProvider
-
createHttpTransaction
- Specified by:
createHttpTransaction
in interfaceHttpProvider
-
getHttpClient
public org.apache.http.client.HttpClient getHttpClient() -
setProxyInfo
-
setProxyCredentials
-
getProxyHostAndPort
-