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