Code example for BasicHttpRequest

0
        registry.register("*.view", h1);
        registry.register("*.form", h2);
 
        HttpAsyncRequestHandler<?> h;
 
        h = registry.lookup(new BasicHttpRequest("GET", "/that.view?param=value"));
        Assert.assertNotNull(h);
        Assert.assertTrue(h1 == h);
 
        h = registry.lookup(new BasicHttpRequest("GET", "/that.form?whatever"));
        Assert.assertNotNull(h);
        Assert.assertTrue(h2 == h);
 
        h = registry.lookup(new BasicHttpRequest("GET", "/whatever"));
        Assert.assertNotNull(h);
        Assert.assertTrue(def == h);
    } 
 
}