public class Http extends HttpBase
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
accept, acceptCharset, acceptLanguage, BUFFER_SIZE, COOKIE, enableCookieHeader, enableIfModifiedsinceHeader, maxContent, maxCrawlDelay, proxyException, proxyHost, proxyPort, RESPONSE_TIME, responseTime, timeout, tlsPreferredCipherSuites, tlsPreferredProtocols, useHttp11, useProxy, userAgentX_POINT_ID| Constructor and Description |
|---|
Http()
Public default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Response |
getResponse(java.net.URL url,
CrawlDatum datum,
boolean redirect) |
static void |
main(java.lang.String[] args) |
void |
setConf(Configuration conf)
Set the
Configuration object. |
getAccept, getAcceptCharset, getAcceptLanguage, getConf, getMaxContent, getProtocolOutput, getProxyHost, getProxyPort, getRobotRules, getTimeout, getTlsPreferredCipherSuites, getTlsPreferredProtocols, getUseHttp11, getUserAgent, isCookieEnabled, isIfModifiedSinceEnabled, logConf, main, processDeflateEncoded, processGzipEncoded, useProxypublic void setConf(Configuration conf)
Configuration object.setConf in interface ConfigurablesetConf in class HttpBaseconf - public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionprotected Response getResponse(java.net.URL url, CrawlDatum datum, boolean redirect) throws ProtocolException, java.io.IOException
getResponse in class HttpBaseProtocolExceptionjava.io.IOExceptionCopyright © 2017 The Apache Software Foundation