apply
public Response<DiffInfo> apply(FileResource resource)
throws ResourceConflictException,
ResourceNotFoundException,
com.google.gwtorm.server.OrmException,
AuthException,
InvalidChangeOperationException,
java.io.IOException,
PermissionBackendException
Process the view operation by reading from the resource.
- Specified by:
apply in interface RestReadView<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
java.io.IOException
PermissionBackendException