La documentation (copiée ci-dessous) ne dit pas grand-chose sur ce que signifie IOException et HttpException dans son contexte. Ma question est la suivante: après une IOException se produit dans une méthode HttpClient.execute (HttpMethod), dois-je jeter l'objet et créer un nouveau HttpClient afin d'exécuter à nouveau des méthodes? Ou est-il encore utilisable (l'objet HttpClient) pour exécuter des méthodes après que certaines de ces exceptions se produisent?Comment gérer IOException et HttpException dans Apache HttpClient.execute (HttpMethod)
executeMethod public int executeMethod(HttpMethod method) throws IOException, HttpException Executes the given HTTP method. Parameters: method - the HTTP method to execute. Returns: the method's response code Throws: IOException - If an I/O (transport) error occurs. Some transport exceptions can be recovered from. HttpException - If a protocol exception occurs. Usually protocol exceptions cannot be recovered from.