public class FileResponse
extends java.lang.Object
| Constructor and Description |
|---|
FileResponse(java.net.URL url,
WebPage page,
File file,
Configuration conf) |
| 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,
WebPage page,
File file,
Configuration conf)
throws FileException,
java.io.IOException
FileExceptionjava.io.IOExceptionpublic int getCode()
public java.lang.String getHeader(java.lang.String name)
public byte[] getContent()
public Content toContent()
Copyright © 2019 The Apache Software Foundation