Code example for UriPatternMatcher

0
        super(); 
        this.matcher = Args.notNull(matcher, "Pattern matcher");
    } 
 
    public UriHttpAsyncRequestHandlerMapper() { 
        this(new UriPatternMatcher<HttpAsyncRequestHandler<?>>());
    } 
 
    /** 
     * Registers the given {@link HttpAsyncRequestHandler} as a handler for URIs 
     * matching the given pattern. 
     * 
     * @param pattern the pattern to register the handler for. 
     * @param handler the handler. 
     */ 
    public void register(final String pattern, final HttpAsyncRequestHandler<?> handler) {
        matcher.register(pattern, handler);
    } 
 
    /**