Pyiush, You have experienced a side-effect related to the refactoring of Restlet and Handler classes in beta 19. In beta 18, in addition to Handler, the Restlet was also used as the base class of Chainer, Connector and Component. Those other subclasses didn't need the method dispatching technique (handleGet(), handlePost(), etc.) but only the uniform "handle(Call)" method.
So, I decided to move the handleGet/handle* methods from Restlet to Handler. It simplifies the Restlet class and many subclasses (Filter, Scorer, Container, Application) and better separates the roles between Restlet and Handler which is now main the class a developer is expected to extend in order to do its own call handling. Handler has a reinforced role, it not only can find a target resource and dispatch calls to it, it can also be used as a simple method dispatcher Restlet (as Restlet was used in beta 18). Your test was broken because the handleGet method that you think you override is actually a new method, never invoked. You have to replace its signature by: public void handle(Request request, Response response). Alternatively, you can change the super class from Restlet to Handler. I've tried to use the @Deprecated/@deprecated features to warn developers upgrading, but no warning message is issued when you override a deprecated method. I can't set the methods as final because I need to define them in Handler. Best regards, Jerome > -----Message d'origine----- > De : Piyush Purang [mailto:[EMAIL PROTECTED] > Envoyé : samedi 21 octobre 2006 21:07 > À : [email protected] > Objet : Re: Last beta 19 snapshot > > So I updated to revision 1025 compiled and part of the log is > shown as > attachment to2.txt. Note it is a Linux box. Then I packaged it > (removed test as depency) in the build file. > > Now I fail to get anything on my browser for the following code... > > Container container = new Container(); > ServerList servers = container.getServers(); > > Protocol httpProtocol = Protocol.HTTP; > String ipAddress = "127.0.0.1"; > int httpPort = 8184; > > servers.add(httpProtocol, ipAddress, httpPort); > > VirtualHost host = > VirtualHost.createLocalHost(container.getContext()); > host.attach("/something", new Restlet() { > protected void handleGet(Request request, > Response response) { > > response.setEntity("ManagedDelegatedRestletContainerFlavTwo > says Hello > World!", MediaType.TEXT_PLAIN); > } > }); > container.setDefaultHost(host); > container.start(); > > And the log doesn't show any exceptions etc. which is disturbing. > > Cheers > Piyush > > >

