KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > barracuda > core > event > ControlEvent


1 /*
2  * Copyright (C) 2003 Christian Cryder [christianc@granitepeaks.com]
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * $Id: ControlEvent.java,v 1.6 2004/02/01 05:16:27 christianc Exp $
19  */

20 package org.enhydra.barracuda.core.event;
21
22 import java.io.*;
23 import java.util.*;
24
25 /**
26  * This defines a basic event, representing some kind of
27  * Control function (it's basically just saying "Hey something
28  * happened, tell everyone who cares").
29  *
30  * Eventually, there may be several kinds of Control events,
31  * but right now, HttpRequestEvent is the only kind that
32  * extends it.
33  */

34 public class ControlEvent extends DefaultBaseEvent {
35     /**
36      * Default noargs constructor
37      */

38     public ControlEvent() {super();}
39
40     /**
41      * Public constructor. Automatically sets parameters associated
42      * with the event with a URL string of the form "key1=val1&key2=val2&..."
43      * (the param str may be prefixed by a '?')
44      */

45     public ControlEvent(String JavaDoc urlParamStr) {
46         super(urlParamStr);
47     }
48
49     /**
50      * Public constructor. Automatically sets the source parameter.
51      * If you do not use this method you should manually set the
52      * source before dispatching the event.
53      */

54     public ControlEvent(Object JavaDoc source) {
55         super(source);
56     }
57     
58 }
59
Popular Tags