]> git.basschouten.com Git - openhab-addons.git/blob
7a9339bfe0e5c4f4c99f40c0795051a969c040bc
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.gpstracker.internal.provider.gpslogger;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.gpstracker.internal.discovery.TrackerDiscoveryService;
17 import org.openhab.binding.gpstracker.internal.provider.AbstractCallbackServlet;
18 import org.openhab.binding.gpstracker.internal.provider.TrackerRegistry;
19
20 /**
21  * Callback servlet for GPSLogger
22  *
23  * @author Gabor Bicskei - Initial contribution
24  */
25 @NonNullByDefault
26 public class GPSLoggerCallbackServlet extends AbstractCallbackServlet {
27
28     private static final long serialVersionUID = -6992472786850682196L;
29
30     /**
31      * Servlet path
32      */
33     private static final String CALLBACK_PATH = "/gpstracker/gpslogger";
34
35     /**
36      * Provider name
37      */
38     private static final String PROVIDER = "GPSLogger";
39
40     /**
41      * Constructor called at binding startup.
42      *
43      * @param discoveryService Discovery service for new trackers.
44      * @param trackerRegistry Tracker registry
45      */
46     public GPSLoggerCallbackServlet(TrackerDiscoveryService discoveryService, TrackerRegistry trackerRegistry) {
47         super(discoveryService, trackerRegistry);
48     }
49
50     @Override
51     public String getPath() {
52         return CALLBACK_PATH;
53     }
54
55     @Override
56     protected String getProvider() {
57         return PROVIDER;
58     }
59 }