org.w3c.jwput
Class ETagManager
java.lang.Object
|
+--org.w3c.jwput.ETagManager
- public class ETagManager
- extends java.lang.Object
- implements ETagsDatabase, JWOptions
Very simple ETagsDatabase, based on java properties
etag file sintax is:
url1 = etag1
url2 = etag2
Field Summary |
protected static java.util.Properties |
etags
|
protected static java.io.File |
etagsfile
|
Method Summary |
java.lang.String |
getETag(java.io.File file,
java.lang.String url)
Get the ETag relative to the given file which was puted at the given
url. |
protected java.util.Properties |
loadETags(java.io.File file)
|
void |
removeETag(java.io.File file,
java.lang.String url)
Remove the ETag from the database |
void |
saveETag(java.io.File file,
java.lang.String url,
java.lang.String etag)
Save the ETag into the database |
protected void |
saveETags(java.io.File file,
java.util.Properties props)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
etags
protected static java.util.Properties etags
etagsfile
protected static java.io.File etagsfile
ETagManager
public ETagManager()
loadETags
protected java.util.Properties loadETags(java.io.File file)
saveETags
protected void saveETags(java.io.File file,
java.util.Properties props)
getETag
public java.lang.String getETag(java.io.File file,
java.lang.String url)
- Get the ETag relative to the given file which was puted at the given
url.
- Specified by:
- getETag in interface ETagsDatabase
- Parameters:
file
- the local fileurl
- its url- Returns:
- a String instance
removeETag
public void removeETag(java.io.File file,
java.lang.String url)
- Remove the ETag from the database
- Specified by:
- removeETag in interface ETagsDatabase
- Parameters:
file
- the local fileurl
- its url
saveETag
public void saveETag(java.io.File file,
java.lang.String url,
java.lang.String etag)
- Save the ETag into the database
- Specified by:
- saveETag in interface ETagsDatabase
- Parameters:
file
- the local fileurl
- its urletag
- the ETag