Package io.vertx.ext.routematcher

Examples of io.vertx.ext.routematcher.RouteMatcher


        // Init jersey handler
        jerseyHandler.init(options);

        // Set request handler for the baseUri
        RouteMatcher rm = RouteMatcher.routeMatcher();
        server.requestHandler(rm::accept);

        // regex pattern will be: "^base_path/.*"
        String pattern = "^" + jerseyHandler.getBaseUri().getPath() + ".*";
        rm.all(pattern, jerseyHandler);

        // Add any additional routes if handler is provided
        if (routeMatcherHandler != null) {
            routeMatcherHandler.handle(rm);
        }
View Full Code Here

TOP

Related Classes of io.vertx.ext.routematcher.RouteMatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.