class HttpHeadersImpl implements HttpHeaders {

    @Override
    public Date getDate() {
        String value = nettyHttpHeaders.get(HttpHeaders.DATE);
        if (value == null || value.isEmpty()) {
            return null;
        }
        // Preferred date format in internet standard is Sun, 06 Nov 1994 08:49:37 GMT
        SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT_PATTERN, Locale.ENGLISH);
        //All HTTP date/time stamps MUST be represented in Greenwich Mean Time (GMT)
        dateFormat.setTimeZone(TimeZone.getTimeZone(GMT_TIMEZONE));
        try {
            return dateFormat.parse(value);
        } catch (ParseException e) {
            log.error("Error while parsing the Date value. Hence return null", e);
            return null;
        }
    }

    public  HttpHeadersImpl(io.netty.handler.codec.http.HttpHeaders httpHeaders);

}