org.w3c.jwput
Interface ETagsDatabase

All Known Implementing Classes:
ETagManager

public interface ETagsDatabase

The ETagsDatabase Interface provides a way to store ETags


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.
 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
 

Method Detail

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.
Parameters:
file - the local file
url - its url
Returns:
a String instance

saveETag

public void saveETag(java.io.File file,
                     java.lang.String url,
                     java.lang.String etag)
Save the ETag into the database
Parameters:
file - the local file
url - its url
etag - the ETag

removeETag

public void removeETag(java.io.File file,
                       java.lang.String url)
Remove the ETag from the database
Parameters:
file - the local file
url - its url