Added new HTTP pool manager and http handling.

This commit is contained in:
Admin
2017-11-15 14:27:44 -06:00
parent d8d5e8f39a
commit df85c8a349
22 changed files with 311 additions and 132 deletions

View File

@@ -32,16 +32,24 @@ public class HarmonyHome implements Home {
private Boolean isDevMode;
private Boolean validHarmony;
private Gson aGsonHandler;
private boolean closed;
public HarmonyHome(BridgeSettings bridgeSettings) {
super();
closed = true;
createHome(bridgeSettings);
closed = false;
}
@Override
public void closeHome() {
if(!validHarmony)
return;
log.debug("Closing Home.");
if(closed) {
log.debug("Home is already closed....");
return;
}
if(isDevMode || hubs == null)
return;
Iterator<String> keys = hubs.keySet().iterator();
@@ -51,6 +59,7 @@ public class HarmonyHome implements Home {
}
hubs = null;
closed = true;
}
public HarmonyHandler getHarmonyHandler(String aName) {