1 38 39 40 package org.jahia.services.cache; 41 42 import java.io.Serializable ; 43 44 45 53 54 public class HtmlCacheEntry implements Serializable { 55 56 57 private String contentBody = ""; 58 59 60 private String contentType = ""; 61 62 63 64 68 public HtmlCacheEntry (String contentBody) { 69 init (contentBody, null); 70 } 71 72 73 78 public HtmlCacheEntry (String contentBody, String contentType) { 79 init (contentBody, contentType); 80 } 81 82 83 88 private void init (String contentBody, String contentType) { 89 if (contentBody != null) 90 this.contentBody = contentBody; 91 92 if (contentType != null) 93 this.contentType = contentType; 94 } 95 96 97 101 final public String getContentType() { 102 return contentType; 103 } 104 105 106 110 final public void setContentType (String contentType) { 111 this.contentType = contentType; 112 } 113 114 115 119 final public String getContentBody() { 120 return contentBody; 121 } 122 123 124 128 final public void setContentBody (String contentBody) { 129 this.contentBody = contentBody; 130 } 131 } 132 | Popular Tags |