common/src/main/java/HTTPClient/Util.java
/**
     * Parse the http date string. java.util.Date will do this fine, but
     * is deprecated, so we use SimpleDateFormat instead.
     *
     * @param dstr  the date string to parse
     * @return the Date object
     */
Parse the http date string. java.util.Date will do this fine, but
is deprecated, so we use SimpleDateFormat instead.

@param dstr  the date string to parse
@return the Date object
Parse the http date string . java . util . Date will do this fine but is deprecated so we use SimpleDateFormat instead . @param dstr the date string to parse @return the Date object
final static Date parseHttpDate(String dstr)
    {
	synchronized (http_parse_lock)
	{
	    if (parse_1123 == null)
		setupParsers();
	}
	try
	    { return parse_1123.parse(dstr); }
	catch (java.text.ParseException pe)
	    { }
	try
	    { return parse_850.parse(dstr); }
	catch (java.text.ParseException pe)
	    { }
	try
	    { return parse_asctime.parse(dstr); }
	catch (java.text.ParseException pe)
	    { throw new IllegalArgumentException(pe.toString()); }
    }
final static Date parseHttpDate ( String dstr ) { synchronized ( http_parse_lock ) { if ( parse_1123 == null ) setupParsers ( ) ; } try { return parse_1123 . parse ( dstr ) ; } catch ( java . text . ParseException pe ) { } try { return parse_850 . parse ( dstr ) ; } catch ( java . text . ParseException pe ) { } try { return parse_asctime . parse ( dstr ) ; } catch ( java . text . ParseException pe ) { throw new IllegalArgumentException ( pe . toString ( ) ) ; } }
Parse the http date string.
Parse the http date string .