Package com.google.gerrit.server.project
Class GetContent
- java.lang.Object
- 
- com.google.gerrit.server.project.GetContent
 
- 
- All Implemented Interfaces:
- RestReadView<FileResource>,- RestView<FileResource>
 
 public class GetContent extends Object implements RestReadView<FileResource> 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BinaryResultapply(FileResource rsrc)Process the view operation by reading from the resource.
 
- 
- 
- 
Method Detail- 
applypublic BinaryResult apply(FileResource rsrc) throws ResourceNotFoundException, BadRequestException, IOException Description copied from interface:RestReadViewProcess the view operation by reading from the resource.- Specified by:
- applyin interface- RestReadView<FileResource>
- Parameters:
- rsrc- resource to read.
- Returns:
- result to return to the client. Use BinaryResultto avoid automatic conversion to JSON.
- Throws:
- BadRequestException- the request was incorrectly specified and cannot be handled by this view.
- ResourceNotFoundException
- IOException
 
 
- 
 
-