001: /******************************************************************************
002: * JBoss, a division of Red Hat *
003: * Copyright 2006, Red Hat Middleware, LLC, and individual *
004: * contributors as indicated by the @authors tag. See the *
005: * copyright.txt in the distribution for a full listing of *
006: * individual contributors. *
007: * *
008: * This is free software; you can redistribute it and/or modify it *
009: * under the terms of the GNU Lesser General Public License as *
010: * published by the Free Software Foundation; either version 2.1 of *
011: * the License, or (at your option) any later version. *
012: * *
013: * This software is distributed in the hope that it will be useful, *
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of *
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
016: * Lesser General Public License for more details. *
017: * *
018: * You should have received a copy of the GNU Lesser General Public *
019: * License along with this software; if not, write to the Free *
020: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
021: * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
022: ******************************************************************************/package org.jboss.portal.wsrp.core;
023:
024: import java.io.Serializable;
025:
026: public class MarkupContext implements Serializable {
027: protected java.lang.Boolean useCachedMarkup;
028: protected java.lang.String mimeType;
029: protected java.lang.String markupString;
030: protected byte[] markupBinary;
031: protected java.lang.String locale;
032: protected java.lang.Boolean requiresUrlRewriting;
033: protected org.jboss.portal.wsrp.core.CacheControl cacheControl;
034: protected java.lang.String preferredTitle;
035: protected org.jboss.portal.wsrp.core.Extension[] extensions;
036:
037: public MarkupContext() {
038: }
039:
040: public MarkupContext(java.lang.Boolean useCachedMarkup,
041: java.lang.String mimeType, java.lang.String markupString,
042: byte[] markupBinary, java.lang.String locale,
043: java.lang.Boolean requiresUrlRewriting,
044: org.jboss.portal.wsrp.core.CacheControl cacheControl,
045: java.lang.String preferredTitle,
046: org.jboss.portal.wsrp.core.Extension[] extensions) {
047: this .useCachedMarkup = useCachedMarkup;
048: this .mimeType = mimeType;
049: this .markupString = markupString;
050: this .markupBinary = markupBinary;
051: this .locale = locale;
052: this .requiresUrlRewriting = requiresUrlRewriting;
053: this .cacheControl = cacheControl;
054: this .preferredTitle = preferredTitle;
055: this .extensions = extensions;
056: }
057:
058: public java.lang.Boolean getUseCachedMarkup() {
059: return useCachedMarkup;
060: }
061:
062: public void setUseCachedMarkup(java.lang.Boolean useCachedMarkup) {
063: this .useCachedMarkup = useCachedMarkup;
064: }
065:
066: public java.lang.String getMimeType() {
067: return mimeType;
068: }
069:
070: public void setMimeType(java.lang.String mimeType) {
071: this .mimeType = mimeType;
072: }
073:
074: public java.lang.String getMarkupString() {
075: return markupString;
076: }
077:
078: public void setMarkupString(java.lang.String markupString) {
079: this .markupString = markupString;
080: }
081:
082: public byte[] getMarkupBinary() {
083: return markupBinary;
084: }
085:
086: public void setMarkupBinary(byte[] markupBinary) {
087: this .markupBinary = markupBinary;
088: }
089:
090: public java.lang.String getLocale() {
091: return locale;
092: }
093:
094: public void setLocale(java.lang.String locale) {
095: this .locale = locale;
096: }
097:
098: public java.lang.Boolean getRequiresUrlRewriting() {
099: return requiresUrlRewriting;
100: }
101:
102: public void setRequiresUrlRewriting(
103: java.lang.Boolean requiresUrlRewriting) {
104: this .requiresUrlRewriting = requiresUrlRewriting;
105: }
106:
107: public org.jboss.portal.wsrp.core.CacheControl getCacheControl() {
108: return cacheControl;
109: }
110:
111: public void setCacheControl(
112: org.jboss.portal.wsrp.core.CacheControl cacheControl) {
113: this .cacheControl = cacheControl;
114: }
115:
116: public java.lang.String getPreferredTitle() {
117: return preferredTitle;
118: }
119:
120: public void setPreferredTitle(java.lang.String preferredTitle) {
121: this .preferredTitle = preferredTitle;
122: }
123:
124: public org.jboss.portal.wsrp.core.Extension[] getExtensions() {
125: return extensions;
126: }
127:
128: public void setExtensions(
129: org.jboss.portal.wsrp.core.Extension[] extensions) {
130: this.extensions = extensions;
131: }
132: }
|