Pessoal,
Tenho um código que uso para realizar chamadas para determinadas urls. Gostaria de saber se é possível setar um timeout no RestClient.
Segue o código:
private Response call(Class classe, String url, String collName) {
RestClient restfulie = Restfulie.custom();
XmlMediaType media = new XmlMediaType().withTypes(classe);
if (collName != null) {
media.withCollectionName(collName);
}
restfulie.getMediaTypes().register(media);
Response response = restfulie.at(url).get();
return response;
}
Muito obrigado.
[]'s.
--
You received this message because you are subscribed to the Google Groups "caelum-vraptor-dev" group.
To post to this group, send email to caelum-vr...@googlegroups.com.
To unsubscribe from this group, send email to caelum-vraptor-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/caelum-vraptor-dev?hl=en.