public class Http extends HttpBase
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
accept, acceptCharset, acceptLanguage, BUFFER_SIZE, maxContent, proxyHost, proxyPort, responseTime, timeout, tlsPreferredCipherSuites, tlsPreferredProtocols, useHttp11, useProxy, userAgent
CHECK_BLOCKING, CHECK_ROBOTS, X_POINT_ID
Constructor and Description |
---|
Http() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<WebPage.Field> |
getFields() |
protected Response |
getResponse(java.net.URL url,
WebPage page,
boolean redirect) |
static void |
main(java.lang.String[] args) |
void |
setConf(Configuration conf) |
getAccept, getAcceptCharset, getAcceptLanguage, getConf, getMaxContent, getProtocolOutput, getProxyHost, getProxyPort, getRobotRules, getTimeout, getTlsPreferredCipherSuites, getTlsPreferredProtocols, getUseHttp11, getUserAgent, logConf, main, processDeflateEncoded, processGzipEncoded, useProxy
public void setConf(Configuration conf)
setConf
in interface Configurable
setConf
in class HttpBase
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
protected Response getResponse(java.net.URL url, WebPage page, boolean redirect) throws ProtocolException, java.io.IOException
getResponse
in class HttpBase
ProtocolException
java.io.IOException
public java.util.Collection<WebPage.Field> getFields()
Copyright © 2019 The Apache Software Foundation