Re: Static files: no available connector for FILE

2008-11-16 Thread Thierry Boileau
Hi Matt, Just replace >component.getServers().add( Protocol. with component.getClients().add(Protocol.FILE); The FILE protocol has been designed to be a client protocol (see the javadocs => http://www.restlet.org/documentation/1.1/api/org/restlet/data/Protocol.html#FILE). Best regards, Thi

Re: use of Finder class

2008-11-16 Thread Rhett Sutphin
Hi, On Nov 17, 2008, at 12:47 AM, Gan123 wrote: i am new to restlet, just started exploring on this. please tell me the use of Finder class in restlet. how is it different from Router class? Finders and Routers are both types of Restlets. A Router maps from a URI to some (singleton

use of Finder class

2008-11-16 Thread Gan123
Hi, i am new to restlet, just started exploring on this. please tell me the use of Finder class in restlet. how is it different from Router class? -- View this message in context: http://n2.nabble.com/use-of-Finder-class-tp1508321p1508321.html Sent from the Restlet Discuss mailing list a

Re: Static files: no available connector for FILE

2008-11-16 Thread Matt
keke gmail.com> writes: > > > Have you add FILE protocol into your Component? Like > component.getClients.add(Protocol.FILE) > > On Sun, Nov 16, 2008 at 12:54 PM, Matt randomcreation.com> > wrote: > "WARNING: No available server connector supports the required protocols: FILE > . > Please a

Re: Restlet-GWT: Status + LocationRef

2008-11-16 Thread Damian Harden
Hi Rob, That worked a treat. Thanks! :-) Code which looks like the following ensures a Status and LocationRef are picked up in Restlet-GWT: @Override public void storeRepresentation(Representation entity) throws ResourceException { addSomething(); getResponse().setEntity(new StringRepr

Re: how to make it modifiable

2008-11-16 Thread Thierry Boileau
Hello, I'm not aware this feature has been removed. Are you sure that you are using Restlet 1.1? Anyway, in both 1.0 and 1.1 releases, you can have a fine control with the allow* methods. If your resource supports POST methods, you can either set the "modifiable" attribute (in this case the re

Re: Beginner Questions

2008-11-16 Thread Thierry Boileau
Hello, this is simply called content negotiation (handled on server side). The HTTP protocol allows the HTTP client to set its preferences in some dedicated headers (ACCEPT, ACCEPT-LANGUAGE, etc. See => http://en.wikipedia.org/wiki/Content_negotiation). You can check the headers sent by your I

Re: Restlet-GWT: Status + LocationRef

2008-11-16 Thread Thierry Boileau
Hi Damian, if you want to keep your resources intact, just add a filter as the root Restlet of yourRestlet application which tests the Response status in the "afterHandle" method. best regards, Thierry Hi Damian, This is due to an issue in the embedded Tomcat server used in GWT Hosted M

Re: Restlet-GWT: Status + LocationRef

2008-11-16 Thread Rob Heittman
Hi Damian, This is due to an issue in the embedded Tomcat server used in GWT Hosted Mode. When sending a redirect, you must (ignoring the Restlet warning to the contrary) supply some sort of entity. Otherwise, the hosted mode Tomcat server will replace it with a generic 200 response. It's not c

Restlet-GWT: Status + LocationRef

2008-11-16 Thread Damian Harden
Hi everyone, I'm using Restlet on the server side and Restlet-GWT on the client side. I'm having difficulties getting a Status and LocationRef to filter through from the server to the client. On the server side, I am doing the following: @Override public void storeRepresentation(Representation

how to make it modifiable

2008-11-16 Thread M E
Hi setModifiable(boolean arg); seems to be removed from version 1.1 I don't know how to make Resource acceptRepresentation() Thanks

Beginner Questions

2008-11-16 Thread M E
Hi Please verify  the following: I understand that a Resource should at least determine one Variant in its Resource.getVariants() list which will probably created by "new Variant()" to initialize the media type; where every resource should  response with a MediaType. I understand that you can