01: /**
02: * $Id: MarkupContent.java,v 1.3 2004/01/07 23:54:16 mjain Exp $
03: * Copyright 2003 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.wsrp.consumer.markup;
14:
15: /**
16: * This class represents the markup fragment/title that can be
17: * cached for a portlet. Markup Manager obtains instances of
18: * this class either via cache manager or
19: * creates new using the data returned by markup remote methods.
20: *
21: */
22: public class MarkupContent {
23:
24: private String _content;
25: private String _titleResource;
26: private boolean _needRewrite;
27:
28: /**
29: * Constructor
30: *
31: * @param content markup fragment
32: * @param title title for the portlet
33: * @param needRewrite flag that tells if the urls need to
34: * be rewritten.
35: */
36: public MarkupContent(String content, String title,
37: boolean needRewrite) {
38: _content = content;
39: _titleResource = title;
40: _needRewrite = needRewrite;
41:
42: }
43:
44: /**
45: * Returns markup fragment.
46: */
47: public String getContent() {
48: return _content;
49: }
50:
51: /**
52: * Portlet Title
53: */
54: public String getTitleResource() {
55: return _titleResource;
56: }
57:
58: /**
59: * returns a boolean indicating whether the URLs
60: * need to be rewritten.
61: */
62: public boolean needRewrite() {
63: return _needRewrite;
64: }
65:
66: }
|