Class GetDiffPreferences
- java.lang.Object
-
- com.google.gerrit.server.restapi.config.GetDiffPreferences
-
- All Implemented Interfaces:
RestReadView<ConfigResource>
,RestView<ConfigResource>
public class GetDiffPreferences extends Object implements RestReadView<ConfigResource>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiffPreferencesInfo
apply(ConfigResource configResource)
Process the view operation by reading from the resource.
-
-
-
Method Detail
-
apply
public DiffPreferencesInfo apply(ConfigResource configResource) throws BadRequestException, ResourceConflictException, IOException, org.eclipse.jgit.errors.ConfigInvalidException
Description copied from interface:RestReadView
Process the view operation by reading from the resource.- Specified by:
apply
in interfaceRestReadView<ConfigResource>
- Parameters:
configResource
- resource to read.- Returns:
- result to return to the client. Use
BinaryResult
to avoid automatic conversion to JSON. - Throws:
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.IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
-