RE: Re: SpringBeanRouter enhancement

2009-02-18 Thread Daniel Woo
Sorry, I got no time to write a full fledged unit test class, I simply submitted a ticket in your backlog :-) http://restlet.tigris.org/issues/show_bug.cgi?id=735 -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1184490

SpringBeanRouter enhancement

2009-02-15 Thread Daniel Woo
Hi guys, The SpringBeanRouter.resolveUri() method in 1.1.1 has a potential problem, if you specify restlet in Spring configuration file without an id like this way: bean name=/product-folders scope=prototype class=... /bean Your BeanFinder will never be attached the URI /product-folders. The

RE: Restlet Client with J2ME issues

2009-01-25 Thread Daniel Woo
CLDC does not have List, you must use Array. This is because memory is expensive on CLDC. CDC has List, of course, also more memory too. If you are using CLDC I guess you have to send raw HTTP request by yourself, it's not very hard. --

RE: Re: Restlet vs other 'rest' frameworks questions/views

2009-01-25 Thread Daniel Woo
Yes, I have a project coping with errors in a similar way: 1. return HTTP status code 404 for invalid parameters etc, and 5xx for server side errors. 2. define a series of detailed error codes with localized error messages, it could be in Atom/json format according to the accept header in the

RE: Restlet Client with J2ME issues

2009-01-25 Thread Daniel Woo
You can send raw HTTP request to your server from J2ME in case the Restlet client API are not available on your J2ME device (eg, Restlet client API could have dependencies on J2EE classes out side of J2ME profiles). Hi, i just started using Restlet and followed the items tutorial on the

RE: Re: maven snapshot

2009-01-17 Thread Daniel Woo
That's great, keep the latest snapshot file name to artifict-version-SNAPSHOT.jar will save me 30 minutes each time I want to try the latest snapshot. Thanks a lot. Best Regards, Daniel --

maven snapshot

2009-01-16 Thread Daniel Woo
today I want to try some new feature in snapshot, but the my Nexus server does not pull Restlet 1.2 snapshot correctly. I took a look at the repository, http://maven.restlet.org/org/restlet/org.restlet/1.2-SNAPSHOT/ it shows org.restlet-1.2-20090114.060036-4121.jar

maven snapshot

2009-01-16 Thread Daniel Woo
today I want to try some new feature in snapshot, but the my Nexus server does not pull Restlet 1.2 snapshot correctly. I took a look at the repository, http://maven.restlet.org/org/restlet/org.restlet/1.2-SNAPSHOT/ it shows org.restlet-1.2-20090114.060036-4121.jar

RE: Re: SpringBeanRouter issues

2009-01-16 Thread Daniel Woo
~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : Daniel Woo [mailto:daniely...@hotmail.com] Envoyé : vendredi 9 janvier 2009 17:26 À : discuss@restlet.tigris.org Objet : *SPAM(1.8)* RE: Re: SpringBeanRouter issues one

RE: Re: JsonRepresentation(JSONArray jsonArray) Not working

2009-01-11 Thread Daniel Woo
And I think json-lib is better than json.org, I use json-lib to convert json with xml, while json.org cannot do that. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1014213

RE: Re: SpringBeanRouter issues

2009-01-11 Thread Daniel Woo
one more thing, if you want to intercept MyResource.represent(Variant), that won't work with Spring AOP (jdk proxy or cglib). Because this method is called by Resource.handleGet() You have to intercept Resource.handleGet()/Put()/Post()/Delete(), or use static waver like aspectJ. I think you