Package org.swisspush.gateleen.expansion
Class RecursiveHandlerFactory
- java.lang.Object
-
- org.swisspush.gateleen.expansion.RecursiveHandlerFactory
-
public final class RecursiveHandlerFactory extends Object
Provides an appropriate handler for handling the recursive GET feature.- Author:
- https://github.com/ljucam [Mario Ljuca]
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRecursiveHandlerFactory.RecursiveHandlerTypesAn enumeration with the valid RecursionHandlers available for this factory.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeltaHandler<ResourceNode>createHandler(RecursiveHandlerFactory.RecursiveHandlerTypes type, List<String> subResourceNames, String collectionName, String collectioneTag, DeltaHandler<ResourceNode> parentHandler)Creates a handler for the desired functionality of the recursive GET feature.static DeltaHandler<ResourceNode>createRootHandler(RecursiveHandlerFactory.RecursiveHandlerTypes type, io.vertx.core.http.HttpServerRequest request, String serverRoot, io.vertx.core.buffer.Buffer data, Set<String> finalOriginalParams)Creates a root handler for the desired functionality of the recursive GET feature.
-
-
-
Method Detail
-
createHandler
public static DeltaHandler<ResourceNode> createHandler(RecursiveHandlerFactory.RecursiveHandlerTypes type, List<String> subResourceNames, String collectionName, String collectioneTag, DeltaHandler<ResourceNode> parentHandler)
Creates a handler for the desired functionality of the recursive GET feature. The desired handler can be selected by the enumerationRecursionHandlerTypes. If the desired handler is not yet implemented,nullis returned instead.- Parameters:
type- typesubResourceNames- subResourceNamescollectionName- collectionNamecollectioneTag- collectioneTagparentHandler- parentHandler- Returns:
- the wished handler
-
createRootHandler
public static DeltaHandler<ResourceNode> createRootHandler(RecursiveHandlerFactory.RecursiveHandlerTypes type, io.vertx.core.http.HttpServerRequest request, String serverRoot, io.vertx.core.buffer.Buffer data, Set<String> finalOriginalParams)
Creates a root handler for the desired functionality of the recursive GET feature. The desired handler can be selected by the enumerationRecursionHandlerTypes. If the desired handler is not yet implemented,nullis returned instead.- Parameters:
type- typerequest- requestserverRoot- serverRootdata- datafinalOriginalParams- finalOriginalParams- Returns:
- Handler
-
-