文書には、そのコンテキストでIOExceptionとHttpExceptionが何を意味するかについてはあまり言及されていません。ApacheでIOExceptionとHttpExceptionを処理する方法HttpClient.execute(HttpMethod)
私の質問は、HttpClient.execute(HttpMethod)メソッドでIOExceptionが発生した後、メソッドを再度実行するためにオブジェクトを破棄して新しいHttpClientを作成する必要がありますか?または、これらの例外のいくつかが発生した後にメソッドを実行するためにまだ使用可能(HttpClientオブジェクト)ですか?
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.