public class FileResponse extends Object
| Constructor and Description |
|---|
FileResponse(URL url,
CrawlDatum datum,
File file,
Configuration conf)
Default public constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Returns the response code.
|
byte[] |
getContent() |
String |
getHeader(String name)
Returns the value of a named header.
|
Content |
toContent() |
public FileResponse(URL url, CrawlDatum datum, File file, Configuration conf) throws FileException, IOException
url - datum - file - conf - FileExceptionIOExceptionCopyright © 2021 The Apache Software Foundation