01: /*
02: * Copyright 2002 Sun Microsystems, Inc. All
03: * rights reserved. Use of this product is subject
04: * to license terms. Federal Acquisitions:
05: * Commercial Software -- Government Users
06: * Subject to Standard License Terms and
07: * Conditions.
08: *
09: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
10: * are trademarks or registered trademarks of Sun Microsystems,
11: * Inc. in the United States and other countries.
12: */
13:
14: package com.sun.portal.portletcontainercommon;
15:
16: import com.sun.portal.container.GetMarkupResponse;
17:
18: public class PortletContainerRenderResponse extends
19: PortletContainerResponse {
20:
21: private GetMarkupResponse _res;
22: private StringBuffer _markup;
23: private String _title;
24: private int _expiration = 0;
25:
26: public PortletContainerRenderResponse(GetMarkupResponse res) {
27: super (res);
28: _res = res;
29: }
30:
31: /**
32: * Returns the markup content of the channel.
33: *
34: * @return markup content of the channel
35: **/
36: public StringBuffer getMarkup() {
37: return _markup;
38: }
39:
40: /**
41: * Sets the markup content of the channel.
42: *
43: * @return markup content of the channel
44: **/
45: public void setMarkup(StringBuffer markup) {
46: _markup = markup;
47: _res.setMarkup(markup);
48: }
49:
50: /**
51: * Returns the title of the channel as a <code>String</code>.
52: *
53: * @return the title
54: **/
55: public String getTitle() {
56: return _title;
57: }
58:
59: /**
60: * Sets the title of the channel.
61: *
62: * @param title the title of the channel
63: **/
64: public void setTitle(String title) {
65: _title = title;
66: _res.setTitle(title);
67: }
68:
69: /**
70: * Returns the cache expiration time for the content.
71: *
72: * @return the cache expiration time
73: **/
74: public int getExpiration() {
75: return _expiration;
76: }
77:
78: /**
79: * Sets the cache expiration time for the content.
80: *
81: * @param expiration the cache expiration time to set to
82: */
83: public void setExpiration(int expiration) {
84: _expiration = expiration;
85: _res.setExpiration(expiration);
86: }
87:
88: }
|