1 package info.magnolia.cms.cache; 2 3 import java.io.Serializable ; 4 5 6 10 public class CacheableEntry implements Serializable { 11 12 15 private static final long serialVersionUID = 222L; 16 17 byte[] out; 18 19 private String contentType; 20 21 private String characterEncoding; 22 23 public CacheableEntry(byte[] out) { 24 this.out = out; 25 } 26 27 31 public byte[] getOut() { 32 return this.out; 33 } 34 35 public int getSize() { 36 return this.out.length; 37 } 38 39 43 public String getContentType() { 44 return this.contentType; 45 } 46 47 51 public void setContentType(String contentType) { 52 this.contentType = contentType; 53 } 54 55 59 public String getCharacterEncoding() { 60 return this.characterEncoding; 61 } 62 63 67 public void setCharacterEncoding(String characterEncoding) { 68 this.characterEncoding = characterEncoding; 69 } 70 71 } 72 | Popular Tags |