• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to reusing org.restlet.resource.ClientResource  RSS feed

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


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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!