Class MergeHandler


  • public class MergeHandler
    extends Object
    Allows to perform a request over more than one route.
    The MergeHandler has to be addressed by the header x-merge-collections.
    The following example shows how to use the MergeHandler.
        "/gateleen/data/(.*)" : {
            "path": "data/$1",
            "staticHeaders": {
                "x-merge-collections": "/gateleen/masterdata/parent/"
            }
        }
     
    Note:
    The following parameters do not work with the MergeHandler:
    • x-delta
    Author:
    https://github.com/ljucam [Mario Aerni]
    • Constructor Detail

      • MergeHandler

        public MergeHandler​(io.vertx.core.http.HttpClient httpClient)
        Creates a new instance of the MergeHandler
        Parameters:
        httpClient - the self client
    • Method Detail

      • handle

        public boolean handle​(io.vertx.core.http.HttpServerRequest request)
        Checks if the MergeHandler is responsible for this request. If so it processes the request and returns true, otherwise it returns false.
        Parameters:
        request - original request
        Returns:
        true if processed, false otherwise