Hi,
I am hoping to be able to configure the org.apache.commons.HttpClient's method
retry handler to change the max number of times the HttpClient will attempt to
retry connecting when there is an IOException.The Restlet HttpClientHelper, I
believe does not support this configuration to the underlying HttpClient. Any
suggestions on the best way to set the Retry Handler without explicit casting
of Helper and getting the HttpClient there in?
Additionally, any suggestions on how to simulate an IOException from a Restlet
so that the retry can be validated would be appreciated. Is there a Status that
I can set that will result in an IOException in the HttpClient?
component.getDefaultHost().attach(new Restlet(component.getContext()){
@Override public void handle(Request request, Response response){
response.setEntity(new StringRepresentation("Hello World"));
}
});
Thanks much.
Sanjay
_________________________________________________________________
Need to know now? Get instant answers with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_062008