Package org.swisspush.gateleen.expansion
Class RecursiveRootHandlerBase
- java.lang.Object
-
- org.swisspush.gateleen.expansion.RecursiveRootHandlerBase
-
- All Implemented Interfaces:
io.vertx.core.Handler<ResourceNode>,DeltaHandler<ResourceNode>
- Direct Known Subclasses:
RecursiveExpansionRootHandler,RecursiveZipRootHandler
public abstract class RecursiveRootHandlerBase extends Object implements DeltaHandler<ResourceNode>
The base class of the root handler for the recursive GET feature.- Author:
- https://github.com/ljucam [Mario Ljuca]
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlogprotected AtomicLongxDeltaResponseNumber
-
Constructor Summary
Constructors Constructor Description RecursiveRootHandlerBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstoreXDeltaResponseHeader(String xDeltaResponseNumber)Checks if the given x-delta number from the response is not null and is higher then the already stored one.
-
-
-
Field Detail
-
log
protected static final org.slf4j.Logger log
-
xDeltaResponseNumber
protected AtomicLong xDeltaResponseNumber
-
-
Method Detail
-
storeXDeltaResponseHeader
public void storeXDeltaResponseHeader(String xDeltaResponseNumber)
Description copied from interface:DeltaHandlerChecks if the given x-delta number from the response is not null and is higher then the already stored one. If so the number is set otherwise not.- Specified by:
storeXDeltaResponseHeaderin interfaceDeltaHandler<ResourceNode>- Parameters:
xDeltaResponseNumber- null or the current x-delta value from the response.
-
-