Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to reusing org.restlet.resource.ClientResource

samy derg
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am currently using Restlet 2.1.2 on Android, and I'd like to know how to reuse the instance Clientresource in my application.

Here is the code I use:

"Starting the internal [HTTP/1.1] client" "Starting the internal [HTTP/1.1] client"

As you can see, at each new instantiate of ClientResource, it create new clients. I just want to keep 1 clientresource and then make few requests with the same instance to the server.

Whats is the best way to do that ?

Other point: I used the #setNext() method to keep the client, but i feel that's useless., because it create another client anyway.

Best regards
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic