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=4447&dsMessageId=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: Your BeanFinder will never be attached the URI "/product-folders". The reason is that the resolveUri() method tries to get name

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 o

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: 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. -- http:

RE: Re: maven snapshot

2009-01-17 Thread Daniel Woo
That's great, keep the latest snapshot file name to --SNAPSHOT.jar will save me 30 minutes each time I want to try the latest snapshot. Thanks a lot. Best Regards, Daniel -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageI

RE: Re: SpringBeanRouter issues

2009-01-16 Thread Daniel Woo
egards, > Jérôme Louvel > -- > Restlet ~ Founder and Lead developer ~ http://www.restlet.org > Noelios Technologies ~ Co-founder ~ http://www.noelios.com > > > -Message d'origine- > De : Daniel Woo [mailto:daniely...@hotmail.com] > Envoyé : vendred

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 org.restlet-1.2-20090114.0600

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 org.restlet-1.2-20090114.0600

RE: Re: SpringBeanRouter issues

2009-01-16 Thread Daniel Woo
> > However, I'm not sure however about injecting the SpringBeanFinder > > because we need one instance per target resource bean... > > This could be achieved by injecting the bean name (instead of an > instance) and then using the application context to retrieve instances > as needed. > >

RE: Re: JsonRepresentation(JSONArray jsonArray) Not working

2009-01-11 Thread Daniel Woo
In Restlet 1.1.1 the result is still {"class":"class org.json.JSONArray"} which version or patch you will have it? So far, it's a little clumsy to query a list of resources like /rest/cars without JSONArray -- http://restlet.tigris.org/ds/vie

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

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=4447&dsMessageId=1014213