Updated plugin versions to indicate alpha status and changed back JSON page function parameters.
This commit is contained in:
parent
4a31b474c5
commit
51fa28bddf
7 changed files with 10 additions and 14 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": 1.0,
|
||||
"version": 0.1,
|
||||
"name": "Hal-MQTT",
|
||||
"interfaces": [
|
||||
{"se.hal.intf.HalAutoScannableController": "se.hal.plugin.mqtt.HalMqttController"}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": 1.1,
|
||||
"version": 1.0,
|
||||
"name": "Hal-RaspberryPi Sensors",
|
||||
"interfaces": [
|
||||
{"se.hal.intf.HalSensorConfig": "se.hal.plugin.raspberry.RPiPowerConsumptionSensor"},
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": 1.0,
|
||||
"version": 0.1,
|
||||
"name": "Hal-Zigbee",
|
||||
"interfaces": [
|
||||
{"se.hal.intf.HalAutoScannableController": "se.hal.plugin.zigbee.HalDeconzZigbeeController"}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": 1.0,
|
||||
"version": 0.1,
|
||||
"name": "Hal-ZWwave",
|
||||
"interfaces": [
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue