Updated plugin versions to indicate alpha status and changed back JSON page function parameters.

This commit is contained in:
Ziver Koc 2020-09-05 13:39:43 +02:00
parent 4a31b474c5
commit 51fa28bddf
7 changed files with 10 additions and 14 deletions

View file

@ -1,5 +1,5 @@
{
"version": 1.0,
"version": 0.1,
"name": "Hal-MQTT",
"interfaces": [
{"se.hal.intf.HalAutoScannableController": "se.hal.plugin.mqtt.HalMqttController"}

View file

@ -1,5 +1,5 @@
{
"version": 1.1,
"version": 1.0,
"name": "Hal-RaspberryPi Sensors",
"interfaces": [
{"se.hal.intf.HalSensorConfig": "se.hal.plugin.raspberry.RPiPowerConsumptionSensor"},

View file

@ -1,5 +1,5 @@
{
"version": 1.0,
"version": 0.1,
"name": "Hal-Zigbee",
"interfaces": [
{"se.hal.intf.HalAutoScannableController": "se.hal.plugin.zigbee.HalDeconzZigbeeController"}

View file

@ -1,5 +1,5 @@
{
"version": 1.0,
"version": 0.1,
"name": "Hal-ZWwave",
"interfaces": [
]

View file

@ -37,7 +37,7 @@ public abstract class HalJsonPage extends HalWebPage {
JSONWriter writer = new JSONWriter(out);
try{
writer.write(
jsonRespond(out, headers, session, cookie, request));
jsonRespond(session, cookie, request));
} catch (Exception e){
logger.log(Level.SEVERE, null, e);
DataNode root = new DataNode(DataNode.DataType.Map);
@ -58,8 +58,6 @@ public abstract class HalJsonPage extends HalWebPage {
protected abstract DataNode jsonRespond(
HttpPrintStream out,
HttpHeader headers,
Map<String, Object> session,
Map<String, String> cookie,
Map<String, String> request) throws Exception;

View file

@ -27,11 +27,11 @@ public class MapJsonPage extends HalJsonPage {
@Override
public DataNode jsonRespond(HttpPrintStream out,
HttpHeader headers,
Map<String, Object> session,
Map<String, String> cookie,
Map<String, String> request) throws Exception {
public DataNode jsonRespond(
Map<String, Object> session,
Map<String, String> cookie,
Map<String, String> request) throws Exception {
DBConnection db = HalContext.getDB();
DataNode root = new DataNode(DataNode.DataType.Map);

View file

@ -39,8 +39,6 @@ public class SensorJsonPage extends HalJsonPage {
@Override
public DataNode jsonRespond(
HttpPrintStream out,
HttpHeader headers,
Map<String, Object> session,
Map<String, String> cookie,
Map<String, String> request) throws Exception{