Title: Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. # Consuming Delta Responses Delta responses is a feature on top of OData 2.0 for requesting changes. The feature is defined in OData 4.0 and this is a preliminary and lightweight implementation close to the OData 4.0 specification [(see here)](http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part1-protocol/odata-v4.0-errata02-os-part1-protocol-complete.html#_Toc406398316). How delta responses can be produced by an OData service is documented here: [server side delta responses](/doc/odata2/tutorials/delta.html). ### Use Case A client reads a feed and later wants to get only the update of changed and deleted entries. ### Principle A client has to read a complete (paged) feed. With the last feed page the service has to provide a delta link instead of a next link. A delta link us usually the same feed url containing a delta token as proprietary query parameter. With the delta link the client can query the service again and gets back a delta feed containing entries which were changed or deleted since the complete feed was received. ![Class Diagram Delta Feeds](/img/DeltaFeedClassDiagram.png) ### Examples Example for a delta link: `http://:/odata/Rooms?!deltatoken=123` ##### Delta Feed Handling Depends on the general client sample [here](...) // retrieve a feed ODataFeed feed = client.readFeed("Container1", "Rooms", contentType); String deltaLink = feed.getFeedMetadata().getDeltaLink(); // store feed data List entries = feed.getEntries(); // get delta link from feed String deltaLink = feed.getFeedMetadata().getDeltaLink(); // query delta feed using delta link ODataDeltaFeed deltaFeed = client.readDeltaFeed("Container1", "Rooms", contentType, deltaLink); List changedEntries = deltaFeed.getEntries(); List