I've just inherited some code that uses the Restlet framework - must admit I'd never even heard of it until now.
The pattern seems to be to do:
Request request = new Request(method, uri);
Client client = new Client(protocols);
Response response = client.handle(request);
but when I was debugging the code, I noticed quite a few daemon threads running. Is that normal? Should the code be closing the Client or something similar?
Thanks,
Paul