Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

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
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!