Class ApacheHttpProvider

java.lang.Object
com.wolfram.alpha.net.apache.ApacheHttpProvider
All Implemented Interfaces:
HttpProvider

public class ApacheHttpProvider extends Object implements HttpProvider
  • Constructor Details

    • ApacheHttpProvider

      public ApacheHttpProvider()
  • Method Details

    • setUserAgent

      public void setUserAgent(String agent)
      Specified by:
      setUserAgent in interface HttpProvider
    • createHttpTransaction

      public HttpTransaction createHttpTransaction(URL url, ProxySettings proxySettings)
      Specified by:
      createHttpTransaction in interface HttpProvider
    • getHttpClient

      public org.apache.http.client.HttpClient getHttpClient()
    • setProxyInfo

      public void setProxyInfo(int useProxy, String httpProxyHost, int httpProxyPort, String socksProxyHost, int socksProxyPort)
    • setProxyCredentials

      public void setProxyCredentials(String username, String password)
    • getProxyHostAndPort

      public String[] getProxyHostAndPort(String url)