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