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, IOException
RestReadViewapply in interface RestReadView<FileResource>rsrc - resource to read.BinaryResult to avoid automatic conversion
to JSON.ResourceNotFoundExceptionIOException