Code example for UriPatternMatcher

0
	public static class MHttpRequestHandlerRegistry extends HttpRequestHandlerRegistry {
 
		private final UriPatternMatcher matcher;
 
		public MHttpRequestHandlerRegistry() { 
			matcher = new UriPatternMatcher();
		} 
 
		public synchronized void register(final String pattern, final HttpRequestHandler handler) {
			matcher.register(pattern, handler);
		} 
 
		public synchronized void unregister(final String pattern) {
			matcher.unregister(pattern);
		} 
 
		public synchronized void setHandlers(final Map map) {
			matcher.setHandlers(map);
		} 
 
		public synchronized HttpRequestHandler lookup(final String requestURI) {