KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > portal > wsrp > adapter > WSRPEvent


1 /*
2  * Copyright 2005 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.cocoon.portal.wsrp.adapter;
17
18 import java.util.Map JavaDoc;
19
20 import org.apache.cocoon.portal.coplet.CopletInstanceData;
21 import org.apache.cocoon.portal.event.CopletInstanceEvent;
22
23 /**
24  * This event is fired for every wsrp action. <br/>
25  *
26  * @author <a HREF="mailto:cziegeler@s-und-n.de">Carsten Ziegeler</a>
27  * @author <a HREF="mailto:malessandrini@s-und-n.de">Michel Alessandrini</a>
28  *
29  * @version $Id: WSRPEvent.java 264755 2005-08-30 10:29:21Z cziegeler $
30  */

31 public class WSRPEvent
32     implements CopletInstanceEvent {
33
34     /** The corresponding coplet instance data. */
35     protected final CopletInstanceData coplet;
36
37     /** The parameters for the wsrp url. */
38     protected final Map JavaDoc producerParams;
39
40     /**
41      * constructor
42      *
43      * @param coplet corresponding coplet instance data
44      * @param pParams producer-parameters
45      */

46     public WSRPEvent(CopletInstanceData coplet, Map JavaDoc pParams) {
47         this.coplet = coplet;
48         this.producerParams = pParams;
49     }
50
51     /**
52      * @see org.apache.cocoon.portal.event.ActionEvent#getTarget()
53      */

54     public Object JavaDoc getTarget() {
55         return this.coplet;
56     }
57
58     /**
59      * @return Map all parameters for the wsrp url.
60      */

61     public Map JavaDoc getUrlParameters() {
62         return this.producerParams;
63     }
64
65 }
66
Popular Tags