Class GetDiff
- java.lang.Object
-
- com.google.gerrit.server.restapi.change.GetDiff
-
- All Implemented Interfaces:
RestReadView<FileResource>,RestView<FileResource>
public class GetDiff extends Object implements RestReadView<FileResource>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetDiff.ContextOptionHandler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<DiffInfo>apply(FileResource resource)Process the view operation by reading from the resource.GetDiffsetBase(String base)GetDiffsetContext(int context)GetDiffsetIntraline(boolean intraline)GetDiffsetParent(int parentNum)GetDiffsetWhitespace(DiffPreferencesInfo.Whitespace whitespace)
-
-
-
Method Detail
-
apply
public Response<DiffInfo> apply(FileResource resource) throws ResourceConflictException, ResourceNotFoundException, com.google.gwtorm.server.OrmException, AuthException, InvalidChangeOperationException, IOException, PermissionBackendException
Description copied from interface:RestReadViewProcess the view operation by reading from the resource.- Specified by:
applyin interfaceRestReadView<FileResource>- Parameters:
resource- resource to read.- Returns:
- result to return to the client. Use
BinaryResultto avoid automatic conversion to JSON. - Throws:
ResourceConflictException- the resource state does not permit this view to make the changes at this time.AuthException- the client is not permitted to access this view.ResourceNotFoundExceptioncom.google.gwtorm.server.OrmExceptionInvalidChangeOperationExceptionIOExceptionPermissionBackendException
-
setParent
public GetDiff setParent(int parentNum)
-
setContext
public GetDiff setContext(int context)
-
setIntraline
public GetDiff setIntraline(boolean intraline)
-
setWhitespace
public GetDiff setWhitespace(DiffPreferencesInfo.Whitespace whitespace)
-
-