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 class
GetDiff.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.GetDiff
setBase(String base)
GetDiff
setContext(int context)
GetDiff
setIntraline(boolean intraline)
GetDiff
setParent(int parentNum)
GetDiff
setWhitespace(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:RestReadView
Process the view operation by reading from the resource.- Specified by:
apply
in interfaceRestReadView<FileResource>
- Parameters:
resource
- resource to read.- Returns:
- result to return to the client. Use
BinaryResult
to 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.ResourceNotFoundException
com.google.gwtorm.server.OrmException
InvalidChangeOperationException
IOException
PermissionBackendException
-
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)
-
-