Save This Page
Home » nutch-1.0 » org.apache.nutch » protocol » httpclient » [javadoc | source]
org.apache.nutch.protocol.httpclient
public class: Http [javadoc | source]
java.lang.Object
   org.apache.nutch.protocol.http.api.HttpBase
      org.apache.nutch.protocol.httpclient.Http

All Implemented Interfaces:
    Protocol

This class is a protocol plugin that configures an HTTP client for Basic, Digest and NTLM authentication schemes for web server as well as proxy server. It takes care of HTTPS protocol as well as cookies in a single fetch session.
Field Summary
public static final  Log LOG     
 int maxThreadsTotal     
Fields inherited from org.apache.nutch.protocol.http.api.HttpBase:
BUFFER_SIZE,  proxyHost,  proxyPort,  useProxy,  timeout,  maxContent,  maxDelays,  maxThreadsPerHost,  serverDelay,  userAgent,  useHttp11,  maxCrawlDelay,  checkBlocking,  checkRobots
Constructor:
 public Http() 
Method from org.apache.nutch.protocol.httpclient.Http Summary:
getClient,   getResponse,   main,   setConf
Methods from org.apache.nutch.protocol.http.api.HttpBase:
getConf,   getMaxContent,   getMaxDelays,   getMaxThreadsPerHost,   getProtocolOutput,   getProxyHost,   getProxyPort,   getResponse,   getRobotRules,   getServerDelay,   getTimeout,   getUseHttp11,   getUserAgent,   logConf,   main,   processDeflateEncoded,   processGzipEncoded,   setConf,   useProxy
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.nutch.protocol.httpclient.Http Detail:
 static synchronized HttpClient getClient() 
    Returns the configured HTTP client.
 protected Response getResponse(URL url,
    CrawlDatum datum,
    boolean redirect) throws IOException, ProtocolException 
    Fetches the url with a configured HTTP client and gets the response.
 public static  void main(String[] args) throws Exception 
    Main method.
 public  void setConf(Configuration conf) 
    Reads the configuration from the Nutch configuration files and sets the configuration.