Package org.swisspush.gateleen.merge
Class MergeHandler
- java.lang.Object
-
- org.swisspush.gateleen.merge.MergeHandler
-
public class MergeHandler extends Object
Allows to perform a request over more than one route.
The MergeHandler has to be addressed by the headerx-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]
-
-
Field Summary
Fields Modifier and Type Field Description static StringMISSMATCH_ERROR
-
Constructor Summary
Constructors Constructor Description MergeHandler(io.vertx.core.http.HttpClient httpClient)Creates a new instance of the MergeHandler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhandle(io.vertx.core.http.HttpServerRequest request)Checks if the MergeHandler is responsible for this request.
-
-
-
Field Detail
-
MISSMATCH_ERROR
public static final String MISSMATCH_ERROR
- See Also:
- Constant Field Values
-
-
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
-
-