source: trunk/quest-plugin-php/src/main/java/de/ugoe/cs/quest/plugin/php/eventcore/PHPEventTarget.java @ 655

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