public class RecursiveExpansionHandler extends Object implements DeltaHandler<ResourceNode>
| Constructor and Description |
|---|
RecursiveExpansionHandler(List<String> subResourceNames,
String collectionName,
String collectioneTag,
DeltaHandler<ResourceNode> parentHandler)
Creates a new instance of the RecursiveExpansionHandler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handle(ResourceNode node)
Handles the given node.
|
void |
storeXDeltaResponseHeader(String xDeltaResponseNumber)
Checks if the given x-delta number from the response is not null and
is higher then the already stored one.
|
public RecursiveExpansionHandler(List<String> subResourceNames, String collectionName, String collectioneTag, DeltaHandler<ResourceNode> parentHandler)
subResourceNames - - a list with the child names, needed for preserving the order of the resourcescollectionName - - the name of the collectioncollectioneTag - - eTag of the request that lead to this collectionparentHandler - - the parent handlerpublic void handle(ResourceNode node)
handle in interface io.vertx.core.Handler<ResourceNode>node - nodepublic void storeXDeltaResponseHeader(String xDeltaResponseNumber)
DeltaHandlerstoreXDeltaResponseHeader in interface DeltaHandler<ResourceNode>xDeltaResponseNumber - null or the current x-delta value from the response.Copyright © 2016–2019. All rights reserved.