Package jmri.server.json.route
Class JsonRouteSocketService
- java.lang.Object
-
- jmri.server.json.JsonSocketService<H>
-
- jmri.server.json.JsonNamedBeanSocketService<Route,JsonRouteHttpService>
-
- jmri.server.json.route.JsonRouteSocketService
-
public class JsonRouteSocketService extends JsonNamedBeanSocketService<Route,JsonRouteHttpService>
JSON socket service provider for managingRoute
s.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.server.json.JsonNamedBeanSocketService
JsonNamedBeanSocketService.ManagerListener, JsonNamedBeanSocketService.NamedBeanListener
-
-
Field Summary
-
Fields inherited from class jmri.server.json.JsonNamedBeanSocketService
beanListeners, managerListener
-
Fields inherited from class jmri.server.json.JsonSocketService
connection, service
-
-
Constructor Summary
Constructors Constructor Description JsonRouteSocketService(JsonConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addListenerToBean(Route bean)
void
onClose()
Perform any teardown required when closing a connection.-
Methods inherited from class jmri.server.json.JsonNamedBeanSocketService
addListenerToBean, onList, onMessage, removeListenersFromRemovedBeans
-
Methods inherited from class jmri.server.json.JsonSocketService
getConnection, getHttpService, getLocale, getVersion
-
-
-
-
Constructor Detail
-
JsonRouteSocketService
public JsonRouteSocketService(JsonConnection connection)
-
-
Method Detail
-
addListenerToBean
protected void addListenerToBean(Route bean)
- Overrides:
addListenerToBean
in classJsonNamedBeanSocketService<Route,JsonRouteHttpService>
-
onClose
public void onClose()
Description copied from class:JsonSocketService
Perform any teardown required when closing a connection.- Overrides:
onClose
in classJsonNamedBeanSocketService<Route,JsonRouteHttpService>
-
-