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 BinaryResultapply(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:RestReadViewProcess the view operation by reading from the resource.- Specified by:
applyin interfaceRestReadView<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.ResourceNotFoundExceptionIOException
-
-