public class FileResponse
extends java.lang.Object
Constructor and Description |
---|
FileResponse(java.net.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() |
java.lang.String |
getHeader(java.lang.String name)
Returns the value of a named header.
|
Content |
toContent() |
public FileResponse(java.net.URL url, CrawlDatum datum, File file, Configuration conf) throws FileException, java.io.IOException
url
- datum
- file
- conf
- FileException
java.io.IOException
public int getCode()
public java.lang.String getHeader(java.lang.String name)
public byte[] getContent()
public Content toContent()
Copyright © 2018 The Apache Software Foundation