control logging in restlet 2.1

2013-02-08 Thread Daniele Dellafiore
in the constructor as well as in createInboundRoot but the INFO log is always there. Any hint? -- Daniele Dellafiore http://danieledellafiore.net -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3048141

Authentication

2012-08-29 Thread Daniele Dellafiore
, securit issues etc? That's all, thanks anyone for any advice. -- Daniele Dellafiore http://danieledellafiore.net -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3001992

Re: Adding response headers in restlet 2.1.x

2012-05-23 Thread Daniele Dellafiore
); -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2913624 -- Daniele Dellafiore http://danieledellafiore.net -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2964640

mounting resources and final slash

2012-05-07 Thread Daniele Dellafiore
a 404. I can I make the very same resource java file to get all the /proxy/* calls? Thanks. -- Daniele Dellafiore http://danieledellafiore.net -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2958188

Wadl usage

2012-04-23 Thread Daniele Dellafiore
different and I do not see any automatic way to switch to the second one but adding apigee tags manually in the describe* methods in my resources. What do you think? Any suggestion? Thanks. -- Daniele Dellafiore http://danieledellafiore.net -- http

Re: response.release() versus response.exhaust() in 2.0

2011-07-14 Thread Daniele Dellafiore
-- Daniele Dellafiore http://danieledellafiore.net -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2791062

Re: Problem passing Context with Spring extension

2011-07-14 Thread Daniele Dellafiore
dependent jars with those packaged in the 2.0.8 release and everything started behaving as expected. (Shaking my head). -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2778874 -- Daniele Dellafiore http

Re: SEVERE: don't pass the component context to child Restlets anymore

2011-07-14 Thread Daniele Dellafiore
I'm getting this same error using the second mechanism described here: http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/70-restlet/195-restlet.html In my original configuration I did not have any Component bean, just the Application one. I've added it to attacch new protocols to the

ChildContext, subtle bug

2011-07-14 Thread Daniele Dellafiore
().getClientProtocols().add(Protocol.HTTP); in the application constructor but does not work, a sever exception is raised. Thanks. -- Daniele Dellafiore http://danieledellafiore.net -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId

Re: Real world spring support for Restlet

2011-06-08 Thread Daniele Dellafiore
(adminRouter); rootRouter.attach(/admin, ra); Or I can just check the role by hand in my ServerResource.doInit(); The first way of course is the best one, but how can I use that model with the SpringBeanRouter? On Wed, Jun 8, 2011 at 2:00 PM, Daniele Dellafiore ilde...@gmail.comwrote: Hi. I'm

Real world spring support for Restlet

2011-06-08 Thread Daniele Dellafiore
and spring configuration in restlet at all? Thanks. -- Daniele Dellafiore http://danieledellafiore.net -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2760409

Re: Define routes and applications..

2011-05-06 Thread Daniele Dellafiore
, and return a 404 with a locationRef. Thanks. On Wed, May 4, 2011 at 7:56 PM, Daniele Dellafiore ilde...@gmail.comwrote: Hi. My app has now grow to contain different paths with different authentications scheme and context, like: /api /console /oauth Then, there is the host: bean id

Define routes and applications..

2011-05-04 Thread Daniele Dellafiore
to define the actual resources, like now, but not mounted as the application inboundRoot. Is there a way to achieve this? Thanks. -- Daniele Dellafiore http://danieledellafiore.net -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId

Re: How to signup a ChallengeAuthenticator when using SpringBeanRouter

2011-04-27 Thread Daniele Dellafiore
Hi. I was trying to do the same thing and I just found your unanswered message. I know it's a old request but, for future googlers, here what I've done. I've override setInboundRoot(final Restlet inboundRoot) in my class that extends Application. @Override public synchronized void

multiple attachments on SpringHost

2011-04-27 Thread Daniele Dellafiore
). -- Daniele Dellafiore http://danieledellafiore.net -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2725072

Re: multiple attachments on SpringHost

2011-04-27 Thread Daniele Dellafiore
I've figured out what it was Using just / as the entry key was a silly idea. This way the server answer on localhost:// instead of localhost:/ So using an actual path like /api make everything works. On Wed, Apr 27, 2011 at 2:54 PM, Daniele Dellafiore ilde...@gmail.comwrote: Hi. I've

Multi-tenant and multi-application in restlet + spring environment

2011-04-13 Thread Daniele Dellafiore
a Restlet app I'd like to listen your opinion, maybe I'm making some basic mistake. Thanks for reading all of the long message. -- Daniele Dellafiore http://danieledellafiore.net -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId

LinkageError using SpringServerServlet: different classloaders

2011-04-05 Thread Daniele Dellafiore
.jar -rw-r--r-- 1 145K 2011-01-17 15:23 activemq-protobuf-1.1.jar -rw-r--r-- 1 3.2M 2011-01-17 15:22 activemq-core-5.4.2.jar -rw-r--r-- 1 101K 2011-01-17 15:22 activeio-core-3.1.2.jar -- Daniele Dellafiore http://danieledellafiore.net -- http

Re: Different @Post: xml, json and java String

2011-03-31 Thread Daniele Dellafiore
, @Post(txt) should accept strings. Test it though ;-) On Tue, Mar 22, 2011 at 1:07 PM, Daniele Dellafiore ilde...@gmail.com wrote: Hi. I built a server resource with a @Post public void request(final String email) { } that works great with the restlet client. With a real

Re: Different @Post: xml, json and java String

2011-03-23 Thread Daniele Dellafiore
it though ;-) On Tue, Mar 22, 2011 at 1:07 PM, Daniele Dellafiore ilde...@gmail.com wrote: Hi. I built a server resource with a @Post public void request(final String email) { } that works great with the restlet client. With a real form I have two options: json/xml, say json

Different @Post: xml, json and java String

2011-03-22 Thread Daniele Dellafiore
, everything works. There is a notation to say to the first method he is waiting for a String class? Thanks. -- Daniele Dellafiore http://danieledellafiore.net -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2713196

Different operations (post) on same resource design

2010-11-16 Thread Daniele Dellafiore
the right design is to mount a new Resource for each operations, like /contacts/${code}/changePassword /contacts/${code}/exportToSap I have used this way till now but I'd like a different solution to avoid proliferation of resources. Thanks. -- Daniele Dellafiore http://danieledellafiore.net

Re: Can't make two container talk with success

2010-11-01 Thread Daniele Dellafiore
-b04) Java HotSpot(TM) Server VM (build 17.1-b03, mixed mode) both installed on ubuntu via apt-get On Fri, Oct 29, 2010 at 6:30 PM, Jerome Louvel jerome.lou...@noelios.com wrote: -Message d'origine- De : Daniele Dellafiore [mailto:ilde...@gmail.com] Envoyé : vendredi 29 octobre 2010

Can't make two container talk with success

2010-11-01 Thread Daniele Dellafiore
:45:21127.0.0.1 - 127.0.0.1 8080POST/server/requests- 500 415 - 40 http://localhost:8080 Restlet-Framework/2.0.1 - -- Daniele Dellafiore http://danieledellafiore.net -- http

Re: Can't make two container talk with success

2010-10-29 Thread Daniele Dellafiore
://localhost:8080   Restlet-Framework/2.0.1 - -- Daniele Dellafiore http://danieledellafiore.net -- Daniele Dellafiore http://danieledellafiore.net -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2677172

Re: Can't make two container talk with success

2010-10-29 Thread Daniele Dellafiore
PM, Jerome Louvel jerome.lou...@noelios.com wrote: -Message d'origine- De : Daniele Dellafiore [mailto:ilde...@gmail.com] Envoyé : vendredi 29 octobre 2010 13:52 À : discuss@restlet.tigris.org Objet : Can't make two container talk with success Hi. I lost all the morning trying

approaching the API design

2010-08-27 Thread Daniele Dellafiore
() in a method that returns true or false and that is all. I am wondering if this is or not a reccomended approach on the API design. Thanks. -- Daniele Dellafiore http://danieledellafiore.net -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId

xml header at beginning of a JSON representation?

2010-07-28 Thread Daniele Dellafiore
me: ?xml version=1.0 encoding=UTF-8 ? {lavazza.commons.profiles.core.domain.Profile:{nickname:pippo,email:pi...@example.com}} Any idea about this? Thanks. -- Daniele Dellafiore http://danieledellafiore.net -- http://restlet.tigris.org/ds

Unit test (with httpunit)

2008-03-26 Thread Daniele Dellafiore
Hi. I have some HttpUnit tests around a Servlet. Now I am creating some mock services that uses the ServerServlet as servlet. Well, with such a serevlet mapped at, say, mock, httpUnit cannot find anyone answering it's request. BTW, If at mock answer a standard servlet, everything works.

Understanding some very basic... things :)

2008-03-25 Thread Daniele Dellafiore
Hi all. I just started using restlet. I mean, made the get started code running, with a maven setup. Now, I am reading the tutorial and I see that while in the get started there is a servlet approach (I have a web.xml and configure a RestletServlet to be loaded and the arrives the restlet