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