public class FetcherStreamFactory extends Object implements InputStreamFactory
This is not meant to be used in place of a robust, responsible crawler. Rather, this is a convenience factory.
WARNING: Unless you carefully lock down access to the server, whoever has access to this service will have the read access of the server. In short, anyone with access to this service could request and get "file:///etc/supersensitive_file_dont_read.txt". Or, if your server has access to your intranet, and you let the public hit this service, they will now have access to your intranet. See CVE-2015-3271
Constructor and Description |
---|
FetcherStreamFactory(FetcherManager fetcherManager) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream(InputStream is,
Metadata metadata,
javax.ws.rs.core.HttpHeaders httpHeaders) |
public FetcherStreamFactory(FetcherManager fetcherManager)
public InputStream getInputStream(InputStream is, Metadata metadata, javax.ws.rs.core.HttpHeaders httpHeaders) throws IOException
getInputStream
in interface InputStreamFactory
IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.