public class GetContent extends Object implements RestReadView<FileResource>
Modifier and Type | Method and Description |
---|---|
BinaryResult |
apply(FileResource rsrc)
Process the view operation by reading from the resource.
|
public BinaryResult apply(FileResource rsrc) throws ResourceNotFoundException, BadRequestException, IOException
RestReadView
apply
in interface RestReadView<FileResource>
rsrc
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.BadRequestException
- the request was incorrectly specified and cannot be handled by this
view.ResourceNotFoundException
IOException