public class RecursiveExpansionHandler extends java.lang.Object implements DeltaHandler<ResourceNode>
| Constructor and Description |
|---|
RecursiveExpansionHandler(java.util.List<java.lang.String> subResourceNames,
java.lang.String collectionName,
java.lang.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(java.lang.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(java.util.List<java.lang.String> subResourceNames,
java.lang.String collectionName,
java.lang.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(java.lang.String xDeltaResponseNumber)
DeltaHandlerstoreXDeltaResponseHeader in interface DeltaHandler<ResourceNode>xDeltaResponseNumber - null or the current x-delta value from the response.