|
1 |
| -/** |
2 |
| - * Copyright (c) 2010-2020 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.ui.basic.internal.servlet; |
14 |
| - |
15 |
| -import org.openhab.core.items.ItemRegistry; |
16 |
| -import org.openhab.core.io.http.servlet.SmartHomeBundleServlet; |
17 |
| - |
18 |
| -/** |
19 |
| - * This is the base servlet class for other servlet in the Basic UI. |
20 |
| - * |
21 |
| - * @author Thomas.Eichstaedt-Engelen |
22 |
| - */ |
23 |
| -public abstract class BaseServlet extends SmartHomeBundleServlet { |
24 |
| - |
25 |
| - private static final long serialVersionUID = -4012800772403491132L; |
26 |
| - |
27 |
| - /** the root path of this web application */ |
28 |
| - public static final String WEBAPP_ALIAS = "/basicui"; |
29 |
| - |
30 |
| - protected ItemRegistry itemRegistry; |
31 |
| - |
32 |
| - public void setItemRegistry(ItemRegistry itemRegistry) { |
33 |
| - this.itemRegistry = itemRegistry; |
34 |
| - } |
35 |
| - |
36 |
| - public void unsetItemRegistry(ItemRegistry itemRegistry) { |
37 |
| - this.itemRegistry = null; |
38 |
| - } |
39 |
| - |
40 |
| -} |
| 1 | +/** |
| 2 | + * Copyright (c) 2010-2020 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.ui.basic.internal.servlet; |
| 14 | + |
| 15 | +import org.openhab.core.io.http.servlet.SmartHomeBundleServlet; |
| 16 | +import org.openhab.core.items.ItemRegistry; |
| 17 | + |
| 18 | +/** |
| 19 | + * This is the base servlet class for other servlet in the Basic UI. |
| 20 | + * |
| 21 | + * @author Thomas.Eichstaedt-Engelen |
| 22 | + */ |
| 23 | +public abstract class BaseServlet extends SmartHomeBundleServlet { |
| 24 | + |
| 25 | + private static final long serialVersionUID = -4012800772403491132L; |
| 26 | + |
| 27 | + /** the root path of this web application */ |
| 28 | + public static final String WEBAPP_ALIAS = "/basicui"; |
| 29 | + |
| 30 | + protected ItemRegistry itemRegistry; |
| 31 | + |
| 32 | + public void setItemRegistry(ItemRegistry itemRegistry) { |
| 33 | + this.itemRegistry = itemRegistry; |
| 34 | + } |
| 35 | + |
| 36 | + public void unsetItemRegistry(ItemRegistry itemRegistry) { |
| 37 | + this.itemRegistry = null; |
| 38 | + } |
| 39 | +} |
0 commit comments