KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > cache > CacheableEntry


1 package info.magnolia.cms.cache;
2
3 import java.io.Serializable JavaDoc;
4
5
6 /**
7  * @author Fabrizio Giustina
8  * @version $Revision: 6341 $ ($Author: philipp $)
9  */

10 public class CacheableEntry implements Serializable JavaDoc {
11
12     /**
13      * Stable serialVersionUID.
14      */

15     private static final long serialVersionUID = 222L;
16
17     byte[] out;
18
19     private String JavaDoc contentType;
20
21     private String JavaDoc characterEncoding;
22
23     public CacheableEntry(byte[] out) {
24         this.out = out;
25     }
26
27     /**
28      * Getter for <code>out</code>.
29      * @return Returns the out.
30      */

31     public byte[] getOut() {
32         return this.out;
33     }
34
35     public int getSize() {
36         return this.out.length;
37     }
38
39     /**
40      * Getter for <code>contentType</code>.
41      * @return Returns the contentType.
42      */

43     public String JavaDoc getContentType() {
44         return this.contentType;
45     }
46
47     /**
48      * Setter for <code>contentType</code>.
49      * @param contentType The contentType to set.
50      */

51     public void setContentType(String JavaDoc contentType) {
52         this.contentType = contentType;
53     }
54
55     /**
56      * Getter for <code>characterEncoding</code>.
57      * @return Returns the characterEncoding.
58      */

59     public String JavaDoc getCharacterEncoding() {
60         return this.characterEncoding;
61     }
62
63     /**
64      * Setter for <code>characterEncoding</code>.
65      * @param characterEncoding The characterEncoding to set.
66      */

67     public void setCharacterEncoding(String JavaDoc characterEncoding) {
68         this.characterEncoding = characterEncoding;
69     }
70
71 }
72
Popular Tags