1 package org.jahia.services.htmlcache; 2 3 import java.io.Serializable ; 4 import java.util.Date ; 5 import java.util.HashMap ; 6 import java.util.Map ; 7 8 21 22 public class CacheEntry implements Serializable { 23 24 private String contentBody = ""; 25 private String contentType = ""; 26 private Date lastAccessDate = new Date (); 27 private int hits = 0; 28 private String operationMode = ""; 31 private Map extendedProperties = new HashMap (); 32 private Date expirationDate = null; 33 34 public void setProperty(String name, Object value) { 35 this.extendedProperties.put(name, value); 36 } 37 38 public Object getProperty(String name) { 39 return this.extendedProperties.get(name); 40 } 41 42 public Map getExtendedProperties() { 43 return extendedProperties; 44 } 45 46 public void setExtendedProperties(Map newProps) { 47 this.extendedProperties = newProps; 48 } 49 50 public String getContentType() { 51 return contentType; 52 } 53 54 public void setContentType(String contentType) { 55 this.contentType = contentType; 56 } 57 58 public String getContentBody() { 59 return contentBody; 60 } 61 62 public void setContentBody(String contentBody) { 63 this.contentBody = contentBody; 64 } 65 66 public Date getLastAccessDate() { 67 return lastAccessDate; 68 } 69 70 public void setLastAccessDate(Date accessDate) { 71 this.lastAccessDate = accessDate; 72 } 73 74 public int getHits() { 75 return hits; 76 } 77 78 public void setHits(int hits) { 79 this.hits = hits; 80 } 81 82 public String getOperationMode() { 83 return this.operationMode; 84 } 85 86 public void setOperationMode(String opMode) { 87 this.operationMode = opMode; 88 } 89 public java.util.Date getExpirationDate() { 90 return expirationDate; 91 } 92 public void setExpirationDate(java.util.Date expirationDate) { 93 this.expirationDate = expirationDate; 94 } 95 96 } | Popular Tags |