Class RecursiveHandlerFactory


  • public final class RecursiveHandlerFactory
    extends Object
    Provides an appropriate handler for handling the recursive GET feature.
    Author:
    https://github.com/ljucam [Mario Ljuca]
    • 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 enumeration RecursionHandlerTypes. If the desired handler is not yet implemented, null is returned instead.
        Parameters:
        type - type
        subResourceNames - subResourceNames
        collectionName - collectionName
        collectioneTag - collectioneTag
        parentHandler - 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 enumeration RecursionHandlerTypes. If the desired handler is not yet implemented, null is returned instead.
        Parameters:
        type - type
        request - request
        serverRoot - serverRoot
        data - data
        finalOriginalParams - finalOriginalParams
        Returns:
        Handler