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