Example usage for org.apache.commons.httpclient.util DateParseException toString

List of usage examples for org.apache.commons.httpclient.util DateParseException toString

Introduction

In this page you can find the example usage for org.apache.commons.httpclient.util DateParseException toString.

Prototype

public String toString() 

Source Link

Document

Returns a short description of this throwable.

Usage

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();
    }
}