01: /*
02: * Created on Mar 31, 2003
03: */
04: package net.sf.jportlet.portlet.descriptor;
05:
06: import net.sf.jportlet.portlet.PortletException;
07:
08: /**
09: * The <code>CacheDescriptor</code> describe the caching strategy of a portlet
10: *
11: * @author <a href="mailto:tchbansi@sourceforge.net">Herve Tchepannou</a>
12: */
13: public class CacheDescriptor {
14: //~ Instance fields --------------------------------------------------------
15:
16: private long _expires;
17: private boolean _shared;
18: private String _mode;
19:
20: //~ Methods ----------------------------------------------------------------
21:
22: public long getExpires() {
23: return _expires;
24: }
25:
26: public String getMode() {
27: return _mode;
28: }
29:
30: public boolean isShared() {
31: return _shared;
32: }
33:
34: public void setExpires(long expires) {
35: _expires = expires;
36: }
37:
38: public void setMode(String mode) throws PortletException {
39: _mode = mode;
40: }
41:
42: public void setShared(boolean shared) {
43: _shared = shared;
44: }
45: }
|