View Javadoc

1   /*
2    * Copyright 2000-2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.apache.portals.bridges.common;
18  
19  /***
20   * ScriptRuntimeData
21   * 
22   * Base class  that provides meta data to no Java portlets such as:
23   * PHP, Perl
24   * 
25   * @author <a href="mailto:rogerrut@apache.org">Roger Ruttimann</a>
26   * @version $Id: ScriptRuntimeData.java 188111 2004-12-22 23:57:48 +0100 (Wed, 22 Dec 2004) rogerrut $
27   */
28  public class ScriptRuntimeData {
29  
30  	// Class members
31  	private String	scriptName = "";
32  	private String	queryString = "";
33  	private String	displayMessage = "";
34  	private String	sessionParameterName = "";
35  	private String	applicationName = "";
36  	
37  	/***
38  	 * addQueryString()
39  	 * Adds one argument at the time to the query strings. Takes care of the separators
40  	 * 
41  	  */
42  	public void addQueryArgument(String queryArgument)
43  	{
44  		if (queryString == null)
45  		{
46  			queryString = queryArgument;
47  		}
48  		else
49  		{
50  			queryString += '&';
51  			queryString += queryArgument;
52  		}	
53  	}
54  	
55  	/***
56  	 * @return Returns the displayMessage.
57  	 */
58  	public String getDisplayMessage() {
59  		return displayMessage;
60  	}
61  	/***
62  	 * @param displayMessage The displayMessage to set.
63  	 */
64  	public void setDisplayMessage(String displayMessage) {
65  		this.displayMessage = displayMessage;
66  	}
67  	/***
68  	 * @return Returns the queryString.
69  	 */
70  	public String getQueryString() {
71  		return queryString;
72  	}
73  	/***
74  	 * @param queryString The queryString to set.
75  	 */
76  	public void setQueryString(String queryString) {
77  		this.queryString = queryString;
78  	}
79  	/***
80  	 * @return Returns the scriptName.
81  	 */
82  	public String getScriptName() {
83  		return scriptName;
84  	}
85  	/***
86  	 * @param scriptName The scriptName to set.
87  	 */
88  	public void setScriptName(String scriptName) {
89  		this.scriptName = scriptName;
90  	}
91  	/***
92  	 * @return Returns the sessionParameterName.
93  	 */
94  	public String getSessionParameterName() {
95  		return sessionParameterName;
96  	}
97  	/***
98  	 * @param sessionParameterName The sessionParameterName to set.
99  	 */
100 	public void setSessionParameterName(String sessionParameterName) {
101 		this.sessionParameterName = sessionParameterName;
102 	}
103 	/***
104 	 * @return Returns the applicationName.
105 	 */
106 	public String getApplicationName() {
107 		return this.applicationName;
108 	}
109 	/***
110 	 * @param applicationName The applicationName to set.
111 	 */
112 	public void setApplicationName(String applicationName) {
113 		this.applicationName = applicationName;
114 	}
115 }