class HttpServletRequestImpl implements HttpServletRequest {

    @Override
    public long getDateHeader(final String name) {
        if (!headers.containsHeader(name)) {
            return -1;
        }

        SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_FORMAT, Locale.US);
        simpleDateFormat.setTimeZone(getTimeZone("GMT"));
        try {
            Date date = simpleDateFormat.parse(headers.getHeader(name));
            return date.getTime();
        } catch (ParseException e) {
            return -1;
        }
    }

    private  HttpServletRequestImpl();

}