@Deprecated public abstract class BaseHttpFetcher extends BaseFetcher
Modifier and Type | Class and Description |
---|---|
static class |
BaseHttpFetcher.RedirectMode
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected String |
_acceptLanguage
Deprecated.
|
protected int |
_maxConnectionsPerHost
Deprecated.
|
protected int |
_maxRedirects
Deprecated.
|
protected int |
_maxThreads
Deprecated.
|
protected int |
_minResponseRate
Deprecated.
|
protected BaseHttpFetcher.RedirectMode |
_redirectMode
Deprecated.
|
protected UserAgent |
_userAgent
Deprecated.
|
static String |
DEFAULT_ACCEPT_LANGUAGE
Deprecated.
|
static int |
DEFAULT_MAX_CONNECTIONS_PER_HOST
Deprecated.
|
static int |
DEFAULT_MAX_REDIRECTS
Deprecated.
|
static int |
DEFAULT_MIN_RESPONSE_RATE
Deprecated.
|
static BaseHttpFetcher.RedirectMode |
DEFAULT_REDIRECT_MODE
Deprecated.
|
static int |
NO_MIN_RESPONSE_RATE
Deprecated.
|
static int |
NO_REDIRECTS
Deprecated.
|
_defaultMaxContentSize, _maxContentSizes, _validMimeTypes, DEFAULT_MAX_CONTENT_SIZE
Constructor and Description |
---|
BaseHttpFetcher(int maxThreads,
UserAgent userAgent)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getAcceptLanguage()
Deprecated.
|
int |
getMaxConnectionsPerHost()
Deprecated.
|
int |
getMaxRedirects()
Deprecated.
|
int |
getMaxThreads()
Deprecated.
|
int |
getMinResponseRate()
Deprecated.
Return the minimum response rate.
|
BaseHttpFetcher.RedirectMode |
getRedirectMode()
Deprecated.
|
UserAgent |
getUserAgent()
Deprecated.
|
void |
setAcceptLanguage(String acceptLanguage)
Deprecated.
|
void |
setMaxConnectionsPerHost(int maxConnectionsPerHost)
Deprecated.
|
void |
setMaxRedirects(int maxRedirects)
Deprecated.
|
void |
setMinResponseRate(int minResponseRate)
Deprecated.
|
void |
setRedirectMode(BaseHttpFetcher.RedirectMode mode)
Deprecated.
|
abort, addValidMimeType, addValidMimeTypes, get, get, getDefaultMaxContentSize, getMaxContentSize, getMimeTypeFromContentType, getValidMimeTypes, setDefaultMaxContentSize, setMaxContentSize, setValidMimeTypes
public static final int NO_MIN_RESPONSE_RATE
public static final int NO_REDIRECTS
public static final int DEFAULT_MIN_RESPONSE_RATE
public static final int DEFAULT_MAX_CONNECTIONS_PER_HOST
public static final int DEFAULT_MAX_REDIRECTS
public static final String DEFAULT_ACCEPT_LANGUAGE
public static final BaseHttpFetcher.RedirectMode DEFAULT_REDIRECT_MODE
protected int _maxThreads
protected UserAgent _userAgent
protected int _maxRedirects
protected int _maxConnectionsPerHost
protected int _minResponseRate
protected String _acceptLanguage
protected BaseHttpFetcher.RedirectMode _redirectMode
public BaseHttpFetcher(int maxThreads, UserAgent userAgent)
public int getMaxThreads()
public UserAgent getUserAgent()
public void setMaxConnectionsPerHost(int maxConnectionsPerHost)
public int getMaxConnectionsPerHost()
public void setMinResponseRate(int minResponseRate)
public int getMinResponseRate()
public void setAcceptLanguage(String acceptLanguage)
public String getAcceptLanguage()
public void setMaxRedirects(int maxRedirects)
public int getMaxRedirects()
public void setRedirectMode(BaseHttpFetcher.RedirectMode mode)
public BaseHttpFetcher.RedirectMode getRedirectMode()
Copyright © 2009–2016 Crawler-Commons. All rights reserved.