excalibur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: Implementing timeout on URLSource
Date Thu, 09 Feb 2006 14:25:37 GMT
Jean-Baptiste Quenot wrote:
> Hello,
> 
> Today Sylvain's blog is down, which is causing infinite timeout on
> my Cocoon-based portal...
> 
> This is why you will find attached a patch to implement timeout on
> URLSource.  The  problem is that HttpURLConnection  timeout in the
> JDK is only available in JDK 1.5:
> 
> http://java.sun.com/j2se/1.5.0/docs/api/java/net/HttpURLConnection.html
> 
> How to achieve this cleanly?

I don't know how to do it under jdk 1.4, but for this patch to be accepted, please:

   * Make sure it compiles under jdk 1.4.
   * GET RID OF DAMN TABS! :)


PS This last one is a rule in many projects, including Cocoon.

Vadim


> +	/**
> +	 * Accept configuration parameters:
> +	 * <ul>
> +	 * <li><tt>connect-timeout</tt> used for <tt>setConnectTimeout()</tt></li>
> +	 * <li><tt>read-timeout</tt> used for <tt>setReadTimeout()</tt></li>
> +	 * </ul>
> +	 */
> +	public void parameterize(Parameters par) throws ParameterException {
> +		this.parameters = par;
> +	}
> +


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org


Mime
View raw message