HttpClientã§ãªãã©ã¤å¦çãè¡ãå ´åé常ã¯ããorg.apache.commons.httpclient.DefaultHttpMethodRetryHandlerãã使ãããã®DefaultHttpMethodRetryHandlerã¯ãªã¯ã¨ã¹ãä¸ã«IOExceptionãçºçããå ´åã«ããªãã©ã¤å¯¾å¿ããããã ãã®ã¨ããDefaultHttpMethodRetryHandlerã§ã¯å¤±æãããç´ãã«ã¢ã¯ã»ã¹ãè¡ãããã®ã§çãééã§ã¢ã¯ã»ã¹ãããã¨ã«ãªããè² è·ãåæ£ãããããã«ãå¾ ã¡ç¶æ ãä½ãã¢ã¯ã»ã¹ããå ´åã¯ä»¥ä¸ã®ããã«ããã¨ããã HttpClient client = new HttpClient(); //ãªã¯ã¨ã¹ãã®ä½æ(5åãªãã©ã¤) GetMethod method = new GetMethod(url); DefaultHttpMethodRetryHandler
{{#tags}}- {{label}}
{{/tags}}