1 | /* |
2 | * Copyright 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 | package org.apache.pluto.driver.url; |
17 | |
18 | /** |
19 | * The portal URL parameter. |
20 | * @author <a href="mailto:ddewolf@apache.org">David H. DeWolf</a> |
21 | * @author <a href="mailto:zheng@apache.org">ZHENG Zhong</a> |
22 | * @version 1.0 |
23 | * @since Sep 30, 2004 |
24 | */ |
25 | public class PortalURLParameter { |
26 | |
27 | |
28 | private String window; |
29 | private String name; |
30 | private String[] values; |
31 | |
32 | public PortalURLParameter(String window, String name, String value) { |
33 | this.window = window; |
34 | this.name = name; |
35 | this.values = new String[]{value}; |
36 | } |
37 | |
38 | public PortalURLParameter(String window, String name, String[] values) { |
39 | this.window = window; |
40 | this.name = name; |
41 | this.values = values; |
42 | } |
43 | |
44 | public String getName() { |
45 | return name; |
46 | } |
47 | |
48 | public void setName(String name) { |
49 | this.name = name; |
50 | } |
51 | |
52 | public String[] getValues() { |
53 | return values; |
54 | } |
55 | |
56 | public void setValues(String[] values) { |
57 | this.values = values; |
58 | } |
59 | |
60 | public String getWindowId() { |
61 | return window; |
62 | } |
63 | |
64 | } |
65 | |