Class GetHead
- java.lang.Object
-
- com.google.gerrit.server.restapi.project.GetHead
-
- All Implemented Interfaces:
RestReadView<ProjectResource>
,RestView<ProjectResource>
public class GetHead extends Object implements RestReadView<ProjectResource>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
apply(ProjectResource rsrc)
Process the view operation by reading from the resource.
-
-
-
Method Detail
-
apply
public String apply(ProjectResource rsrc) throws AuthException, ResourceNotFoundException, IOException, PermissionBackendException
Description copied from interface:RestReadView
Process the view operation by reading from the resource.- Specified by:
apply
in interfaceRestReadView<ProjectResource>
- Parameters:
rsrc
- resource to read.- Returns:
- result to return to the client. Use
BinaryResult
to avoid automatic conversion to JSON. - Throws:
AuthException
- the client is not permitted to access this view.ResourceNotFoundException
IOException
PermissionBackendException
-
-