Class GetBlame
- java.lang.Object
-
- com.google.gerrit.server.restapi.change.GetBlame
-
- All Implemented Interfaces:
RestReadView<FileResource>
,RestView<FileResource>
public class GetBlame extends Object implements RestReadView<FileResource>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<List<BlameInfo>>
apply(FileResource resource)
Process the view operation by reading from the resource.GetBlame
setBase(boolean base)
-
-
-
Method Detail
-
setBase
public GetBlame setBase(boolean base)
-
apply
public Response<List<BlameInfo>> apply(FileResource resource) throws RestApiException, IOException, InvalidChangeOperationException
Description copied from interface:RestReadView
Process the view operation by reading from the resource.- Specified by:
apply
in interfaceRestReadView<FileResource>
- Parameters:
resource
- 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.BadRequestException
- the request was incorrectly specified and cannot be handled by this view.ResourceConflictException
- the resource state does not permit this view to make the changes at this time.RestApiException
IOException
InvalidChangeOperationException
-
-