@Deprecated public class SimpleFileFetcher extends BaseFetcher
_defaultMaxContentSize, _maxContentSizes, _validMimeTypes, DEFAULT_MAX_CONTENT_SIZE
Constructor and Description |
---|
SimpleFileFetcher()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
abort()
Deprecated.
Terminate any async request being processed.
|
FetchedResult |
get(String url,
Payload payload)
Deprecated.
Get the content stored in the resource referenced by the 'url' parameter.
|
addValidMimeType, addValidMimeTypes, get, getDefaultMaxContentSize, getMaxContentSize, getMimeTypeFromContentType, getValidMimeTypes, setDefaultMaxContentSize, setMaxContentSize, setValidMimeTypes
public FetchedResult get(String url, Payload payload) throws BaseFetchException
BaseFetcher
get
in class BaseFetcher
url
- a string url for which to get contentpayload
- a populated Payload
FetchedResult
associated with the URLBaseFetchException
- if an error results from fetching the url.public void abort()
BaseFetcher
abort
in class BaseFetcher
Copyright © 2009–2016 Crawler-Commons. All rights reserved.