- Timestamp:
- 2014-03-06T14:05:12+13:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/OAIResumptionToken.java
r28874 r28880 49 49 public static final String NAME = "name"; 50 50 public static final String EXPIRATION = "expiration"; 51 public static final String INITIAL_TIME = "initial"; 51 52 //public static final String FROM 52 53 public static final String FILE_SEPARATOR = File.separator; … … 189 190 data.put(CURRENT_SET, parts[2]); 190 191 data.put(CURRENT_CURSOR, parts[3]); 192 data.put(INITIAL_TIME, base_name); 191 193 } 192 194 return data; … … 194 196 } 195 197 198 // used to manually expire a particular token - eg when one of its collections has changed since token was issued. 199 public static void expireToken(String token) { 200 if (token.indexOf(":") != -1) { 201 token = token.substring(0, token.indexOf(":")); 202 } 203 expiration_data.remove(token); 204 stored_tokens.remove(token); 205 } 196 206 // read through all stored expiry dates, and delete any tokens that are too 197 207 // old
Note:
See TracChangeset
for help on using the changeset viewer.