@Override public Date getModificationDate() { return getWrappedRepresentation().getModificationDate(); }
@Override public long getLastModified(Resource resource) { final Representation original = getStore().get(resource.getName()); return (original != null) ? original.getModificationDate().getTime() : 0; }
: templateRepresentation.getCharacterSet().getName()); this.template.setLastModified((templateRepresentation .getModificationDate() == null) ? new Date().getTime() : templateRepresentation.getModificationDate().getTime()); this.template.setName("org.restlet.resource.representation"); this.template.setRuntimeServices(RuntimeSingleton.getRuntimeServices());
&& (DateUtils.after(new Date(), modifiedSince) || (representation .getModificationDate() == null) || DateUtils .after(modifiedSince, representation .getModificationDate())); matched = !isModifiedSince; final boolean isModifiedSince = (DateUtils.after(new Date(), modifiedSince) || (representation.getModificationDate() == null) || DateUtils .after(modifiedSince, representation .getModificationDate())); final Date unModifiedSince = getUnmodifiedSince(); final boolean isUnModifiedSince = ((unModifiedSince == null) || (representation.getModificationDate() == null) || !DateUtils .before(representation.getModificationDate(), unModifiedSince));
: templateRepresentation.getCharacterSet().getName()); this.template.setLastModified(templateRepresentation .getModificationDate().getTime()); this.template.setName("org.restlet.resource.representation"); this.template.setRuntimeServices(RuntimeSingleton.getRuntimeServices());
if ((this.request.getEntity() != null) && (this.request.getEntity() .getModificationDate() != null)) { result = DateUtils.format(this.request.getEntity() .getModificationDate(), DateUtils.FORMAT_RFC_1123.get(0)); if ((this.response.getEntity() != null) && (this.response.getEntity() .getModificationDate() != null)) { result = DateUtils.format(this.response.getEntity() .getModificationDate(), DateUtils.FORMAT_RFC_1123.get(0));