Last change
on this file since 639 was
554,
checked in by sherbold, 12 years ago
|
- adapted PHP plugin event structure to new event structure
|
-
Property svn:mime-type set to
text/plain
|
File size:
1.1 KB
|
Line | |
---|
1 | |
---|
2 | package de.ugoe.cs.quest.plugin.php.eventcore; |
---|
3 | |
---|
4 | import de.ugoe.cs.quest.eventcore.IEventTarget; |
---|
5 | |
---|
6 | /** |
---|
7 | * <p> |
---|
8 | * Event target for PHP web requests. |
---|
9 | * </p> |
---|
10 | * |
---|
11 | * @version $Revision: $ $Date: Aug 16, 2012$ |
---|
12 | * @author 2012, last modified by $Author: sherbold$ |
---|
13 | */ |
---|
14 | public class PHPEventTarget implements IEventTarget { |
---|
15 | |
---|
16 | /** |
---|
17 | * <p> |
---|
18 | * Id for object serialization. |
---|
19 | * </p> |
---|
20 | */ |
---|
21 | private static final long serialVersionUID = 1L; |
---|
22 | |
---|
23 | /** |
---|
24 | * <p> |
---|
25 | * Path of the PHP request. |
---|
26 | * </p> |
---|
27 | */ |
---|
28 | private String path; |
---|
29 | |
---|
30 | /** |
---|
31 | * <p> |
---|
32 | * Constructor. Creates a new PHP event target as the path of the request. |
---|
33 | * </p> |
---|
34 | * |
---|
35 | * @param path |
---|
36 | * path of the URI of the event |
---|
37 | */ |
---|
38 | public PHPEventTarget(String path) { |
---|
39 | this.path = path; |
---|
40 | } |
---|
41 | |
---|
42 | /* |
---|
43 | * (non-Javadoc) |
---|
44 | * |
---|
45 | * @see de.ugoe.cs.quest.eventcore.IEventTarget#getPlatform() |
---|
46 | */ |
---|
47 | @Override |
---|
48 | public String getPlatform() { |
---|
49 | return "PHP"; |
---|
50 | } |
---|
51 | |
---|
52 | /* |
---|
53 | * (non-Javadoc) |
---|
54 | * |
---|
55 | * @see java.lang.Object#toString() |
---|
56 | */ |
---|
57 | @Override |
---|
58 | public String toString() { |
---|
59 | return path; |
---|
60 | } |
---|
61 | |
---|
62 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.