/** * Parses a date value. The formats used for parsing the date value are retrieved from * the default http params. * * @param dateValue the date value to parse * * @return the parsed date or null if input could not be parsed */ public static Date parseDate(final String dateValue) { return parseDate(dateValue, null, null); }
/** * Parses the date value using the given date formats. * * @param dateValue the date value to parse * @param dateFormats the date formats to use * * @return the parsed date or null if input could not be parsed */ public static Date parseDate(final String dateValue, final String[] dateFormats) { return parseDate(dateValue, dateFormats, null); }
Date headerDateValue; try { headerDateValue = DateUtils.parseDate(headerValue); if (resource instanceof IResource) { IResource iResource = (IResource) resource;
Date ifModifiedSinceDate = DateUtils.parseDate(ifModifiedSince); Date lastModified = null; if (responseResource instanceof IResource) {
/** * Parses the date value using the given date formats. * * @param dateValue the date value to parse * @param dateFormats the date formats to use * * @return the parsed date or null if input could not be parsed */ public static Date parseDate(final String dateValue, final String[] dateFormats) { return parseDate(dateValue, dateFormats, null); }
/** * Parses a date value. The formats used for parsing the date value are retrieved from * the default http params. * * @param dateValue the date value to parse * * @return the parsed date or null if input could not be parsed */ public static Date parseDate(final String dateValue) { return parseDate(dateValue, null, null); }
Date headerDateValue; try { headerDateValue = DateUtils.parseDate(headerValue); if (resource instanceof IResource) { IResource iResource = (IResource) resource;
Date ifModifiedSinceDate = DateUtils.parseDate(ifModifiedSince); Date lastModified = null; if (responseResource instanceof IResource) {