users@jersey.java.net

java.io.File and conditional GETs

From: Rob Koberg <rob_at_koberg.com>
Date: Wed, 7 Apr 2010 13:34:33 -0700

Hi,

What is the best way to handle conditional GETs when targeting files
that exist on the local file system that are being retrieved through a
jersey resource? Currently it looks like I am using
com.sun.jersey.core.impl.provider.entity.FileProvider (which doesn't
appear the javadoc, checking out the project now...). Perhaps that
could/should place an ETag and Last-Modified header by default?

thanks,
-Rob