/** * Sets the value of a date field. * * @param name the field name * @param date the field date value */ public void addDateField(String name, long date) { String d=formatDate(date); add(name,d); }
/** * Sets the value of a date field. * * @param name the field name * @param date the field date value */ public void putDateField(HttpHeader name, long date) { String d=formatDate(date); put(name, d); }
/** * Sets the value of a date field. * * @param name the field name * @param date the field date value */ public void putDateField(String name, long date) { String d=formatDate(date); put(name, d); }
/** * Sets the value of a date field. * * @param name the field name * @param date the field date value */ public void putDateField(HttpHeader name, long date) { String d=formatDate(date); put(name, d); }
/** * Sets the value of a date field. * * @param name the field name * @param date the field date value */ public void addDateField(String name, long date) { String d=formatDate(date); add(name,d); }
/** * Sets the value of a date field. * * @param name the field name * @param date the field date value */ public void putDateField(String name, long date) { String d=formatDate(date); put(name, d); }
/** * Sets the value of a date field. * * @param name the field name * @param date the field date value */ public void putDateField(Buffer name, long date) { String d=formatDate(date); Buffer v = new ByteArrayBuffer(d); put(name, v); }
/** * Sets the value of a date field. * * @param name the field name * @param date the field date value */ public void putDateField(Buffer name, long date) { String d=formatDate(date); Buffer v = new ByteArrayBuffer(d); put(name, v); }
/** * Sets the value of a date field. * * @param name the field name * @param date the field date value */ public void putDateField(Buffer name, long date) { String d=formatDate(date); Buffer v = new ByteArrayBuffer(d); put(name, v); }
/** * Sets the value of a date field. * * @param name the field name * @param date the field date value */ public void putDateField(Buffer name, long date) { String d=formatDate(date); Buffer v = new ByteArrayBuffer(d); put(name, v); }
/** * Sets the value of a date field. * * @param name the field name * @param date the field date value */ public void putDateField(Buffer name, long date) { String d=formatDate(date); Buffer v = new ByteArrayBuffer(d); put(name, v); }
/** * Sets the value of a date field. * * @param name the field name * @param date the field date value */ public void addDateField(String name, long date) { String d=formatDate(date); Buffer n = HttpHeaders.CACHE.lookup(name); Buffer v = new ByteArrayBuffer(d); add(n, v); }
/** * Sets the value of a date field. * * @param name the field name * @param date the field date value */ public void addDateField(String name, long date) { String d=formatDate(date); Buffer n = HttpHeaders.CACHE.lookup(name); Buffer v = new ByteArrayBuffer(d); add(n, v); }
/** * Sets the value of a date field. * * @param name the field name * @param date the field date value */ public void addDateField(String name, long date) { String d=formatDate(date); Buffer n = HttpHeaders.CACHE.lookup(name); Buffer v = new ByteArrayBuffer(d); add(n, v); }
/** * Sets the value of a date field. * * @param name the field name * @param date the field date value */ public void addDateField(String name, long date) { String d=formatDate(date); Buffer n = HttpHeaders.CACHE.lookup(name); Buffer v = new ByteArrayBuffer(d); add(n, v); }
Content(String pathInContext,Resource resource) { _key=pathInContext; _resource=resource; _contentType=_mimeTypes.getMimeByExtension(_resource.toString()); boolean exists=resource.exists(); _lastModified=exists?resource.lastModified():-1; _lastModifiedBytes=_lastModified<0?null:new ByteArrayBuffer(HttpFields.formatDate(_lastModified)); _length=exists?(int)resource.length():0; _cachedSize.addAndGet(_length); _cachedFiles.incrementAndGet(); _lastAccessed=System.currentTimeMillis(); _etagBuffer=_etags?new ByteArrayBuffer(resource.getWeakETag()):null; }
/** * Sets the value of a date field. * * @param name the field name * @param date the field date value */ public void addDateField(String name, long date) { String d=formatDate(date); Buffer n = HttpHeaders.CACHE.lookup(name); Buffer v = new ByteArrayBuffer(d); add(n, v); }
Content(String pathInContext,Resource resource) { _key=pathInContext; _resource=resource; _contentType=_mimeTypes.getMimeByExtension(_resource.toString()); boolean exists=resource.exists(); _lastModified=exists?resource.lastModified():-1; _lastModifiedBytes=_lastModified<0?null:new ByteArrayBuffer(HttpFields.formatDate(_lastModified)); _length=exists?(int)resource.length():0; _cachedSize.addAndGet(_length); _cachedFiles.incrementAndGet(); _lastAccessed=System.currentTimeMillis(); _etagBuffer=_etags?new ByteArrayBuffer(resource.getWeakETag()):null; }
Content(String pathInContext,Resource resource) { _key=pathInContext; _resource=resource; _contentType=_mimeTypes.getMimeByExtension(_resource.toString()); boolean exists=resource.exists(); _lastModified=exists?resource.lastModified():-1; _lastModifiedBytes=_lastModified<0?null:new ByteArrayBuffer(HttpFields.formatDate(_lastModified)); _length=exists?(int)resource.length():0; _cachedSize.addAndGet(_length); _cachedFiles.incrementAndGet(); _lastAccessed=System.currentTimeMillis(); _etagBuffer=_etags?new ByteArrayBuffer(resource.getWeakETag()):null; }
Content(String pathInContext,Resource resource) { _key=pathInContext; _resource=resource; _contentType=_mimeTypes.getMimeByExtension(_resource.toString()); boolean exists=resource.exists(); _lastModified=exists?resource.lastModified():-1; _lastModifiedBytes=_lastModified<0?null:new ByteArrayBuffer(HttpFields.formatDate(_lastModified)); _length=exists?(int)resource.length():0; _cachedSize.addAndGet(_length); _cachedFiles.incrementAndGet(); _lastAccessed=System.currentTimeMillis(); _etagBuffer=_etags?new ByteArrayBuffer(resource.getWeakETag()):null; }