2007-09-21 04:58:15 UTC
You can add httpclient parameters using the alternative constructor:
public FeedReader(HttpURL httpUrl, HttpClientParams params) throws YarfrawException, IOException{}
or
add the params after construction by calling the setter method:
public void setHttpClientParams(HttpClientParams httpClientParams) {}
so if you want to change the connection timeout, write:
HttpClientParams params = new HttpClientParams();
params.setSoTimeout((int)DateUtils.MILLIS_PER_MINUTE);
public FeedReader(new HttpURL("
http://www.blah.com", params);
or
reader.setHttpClientParams(params);
i am not sure what you meant by conditional get...
To do format detection, use the util class called "FeedFormatDetector". After you detect the format, then call static readChannel method with the detected format and the input stream.
see
http://yarfraw.sourceforge.net/util.html for notes about the FeedFormatDetector.