org.apache.nutch.protocol.http
Class Http
java.lang.Object
org.apache.nutch.protocol.http.api.HttpBase
org.apache.nutch.protocol.http.Http
- All Implemented Interfaces:
- Configurable, Pluggable, Protocol
public class Http
- extends HttpBase
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
Constructor Summary |
Http()
|
Methods inherited from class org.apache.nutch.protocol.http.api.HttpBase |
getAcceptLanguage, getConf, getMaxContent, getProtocolOutput, getProxyHost, getProxyPort, getRobotRules, getTimeout, getUseHttp11, getUserAgent, logConf, main, processDeflateEncoded, processGzipEncoded, useProxy |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
Http
public Http()
setConf
public void setConf(Configuration conf)
- Specified by:
setConf
in interface Configurable
- Overrides:
setConf
in class HttpBase
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
getResponse
protected Response getResponse(URL url,
CrawlDatum datum,
boolean redirect)
throws ProtocolException,
IOException
- Specified by:
getResponse
in class HttpBase
- Throws:
ProtocolException
IOException
Copyright © 2011 The Apache Software Foundation