]> git.basschouten.com Git - openhab-addons.git/blob
b044fa90ee2ff8e611e0b23f3ecd10f5bd5e9efd
[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.openhab.binding.gpstracker.internal.discovery.TrackerDiscoveryService;
16 import org.openhab.binding.gpstracker.internal.provider.AbstractCallbackServlet;
17 import org.openhab.binding.gpstracker.internal.provider.TrackerRegistry;
18
19 /**
20  * Callback servlet for GPSLogger
21  *
22  * @author Gabor Bicskei - Initial contribution
23  */
24 public class GPSLoggerCallbackServlet extends AbstractCallbackServlet {
25
26     private static final long serialVersionUID = -6992472786850682196L;
27
28     /**
29      * Servlet path
30      */
31     private static final String CALLBACK_PATH = "/gpstracker/gpslogger";
32
33     /**
34      * Provider name
35      */
36     private static final String PROVIDER = "GPSLogger";
37
38     /**
39      * Constructor called at binding startup.
40      *
41      * @param discoveryService Discovery service for new trackers.
42      * @param trackerRegistry Tracker registry
43      */
44     public GPSLoggerCallbackServlet(TrackerDiscoveryService discoveryService, TrackerRegistry trackerRegistry) {
45         super(discoveryService, trackerRegistry);
46     }
47
48     @Override
49     public String getPath() {
50         return CALLBACK_PATH;
51     }
52
53     @Override
54     protected String getProvider() {
55         return PROVIDER;
56     }
57 }