List of usage examples for org.apache.commons.httpclient.util DateParseException toString
public String toString()
From source file:net.sf.ufsc.http.HttpFile.java
/** * @see net.sf.ufsc.File#lastModified()// w w w . j av a2 s . c o m */ public Date lastModified() throws java.io.IOException { HeadMethod method = new HeadMethod(this.uri.toString()); try { this.execute(method); return DateUtil.parseDate(method.getResponseHeader(LAST_MODIFIED).getValue()); } catch (DateParseException e) { throw new IOException(e.toString()); } finally { method.releaseConnection(); } }