Hi,
One way to know if a timeout occured is to create a class that implements
HttpMethodRetryHandler and override the boolean retryMethod(HttpMethod
method, IOException exception, int executionCount) method.
Here is the program snippet:
public boolean retryMethod(HttpMethod method, IOException exception, int
executionCount) {
if (exception instanceof ConnectTimeoutException) {
// TODO : Put here your connection timeout
implementation
}
}
Thanks,
Neil
On 8/2/06, webtekie <[EMAIL PROTECTED]> wrote:
Hello,
When I set connection timeout: client.getHttpConnectionManager
().getParams().setConnectionTimeout(2000);
How do I know that timeout occured? Do I have to implement my own checking
for this or can I have my code catch ConnectTimeoutException to know that
timeout occured?
thanks,
webtekie