@Override public LocalDevice getRoot() { if (isRoot()) return this; LocalDevice current = this; while (current.getParentDevice() != null) { current = current.getParentDevice(); } return current; }
protected List<OutgoingNotificationRequest> createDeviceMessages(LocalDevice device, Location descriptorLocation) { List<OutgoingNotificationRequest> msgs = new ArrayList<>(); // See the tables in UDA 1.0 section 1.1.2 if (device.isRoot()) { msgs.add( new OutgoingNotificationRequestRootDevice( descriptorLocation, device, getNotificationSubtype() ) ); } msgs.add( new OutgoingNotificationRequestUDN( descriptorLocation, device, getNotificationSubtype() ) ); msgs.add( new OutgoingNotificationRequestDeviceType( descriptorLocation, device, getNotificationSubtype() ) ); return msgs; }
if (isRoot()) {
if (device.isRoot()) { msgs.add( new OutgoingSearchResponseRootDevice(
@Override public LocalDevice getRoot() { if (isRoot()) return this; LocalDevice current = this; while (current.getParentDevice() != null) { current = current.getParentDevice(); } return current; }
protected List<OutgoingNotificationRequest> createDeviceMessages(LocalDevice device, Location descriptorLocation) { List<OutgoingNotificationRequest> msgs = new ArrayList(); // See the tables in UDA 1.0 section 1.1.2 if (device.isRoot()) { msgs.add( new OutgoingNotificationRequestRootDevice( descriptorLocation, device, getNotificationSubtype() ) ); } msgs.add( new OutgoingNotificationRequestUDN( descriptorLocation, device, getNotificationSubtype() ) ); msgs.add( new OutgoingNotificationRequestDeviceType( descriptorLocation, device, getNotificationSubtype() ) ); return msgs; }
if (isRoot()) {
if (device.isRoot()) { msgs.add( new OutgoingSearchResponseRootDevice(
@Override public LocalDevice getRoot() { if (isRoot()) return this; LocalDevice current = this; while (current.getParentDevice() != null) { current = current.getParentDevice(); } return current; }
protected List<OutgoingNotificationRequest> createDeviceMessages(LocalDevice device, Location descriptorLocation) { List<OutgoingNotificationRequest> msgs = new ArrayList<>(); // See the tables in UDA 1.0 section 1.1.2 if (device.isRoot()) { msgs.add( new OutgoingNotificationRequestRootDevice( descriptorLocation, device, getNotificationSubtype() ) ); } msgs.add( new OutgoingNotificationRequestUDN( descriptorLocation, device, getNotificationSubtype() ) ); msgs.add( new OutgoingNotificationRequestDeviceType( descriptorLocation, device, getNotificationSubtype() ) ); return msgs; }
if (device.isRoot()) { msgs.add( new OutgoingSearchResponseRootDevice(