public DeviceDetails getDetails(RemoteClientInfo info) { return this.getDetails(); }
@Override public String getTitle() { return device != null ? device.getDetails().getFriendlyName() : "(NO DEVICE)"; }
menuItem = new JMenu(entry.getKey().getDetails().getFriendlyName()); for (int i = 0; i < SUPPORTED_INSTANCES; i++) { final int instanceId = i; entry.getKey().getDetails().getFriendlyName() + " (Not Compatible)" ); menuItem.setEnabled(false);
@Override public String toString() { String name = getDevice().getDetails() != null && getDevice().getDetails().getFriendlyName() != null ? getDevice().getDetails().getFriendlyName() : getDevice().getDisplayString(); // Display a little star while the device is being loaded (see performance optimization earlier) return device.isFullyHydrated() ? name : name + " *"; } }
@Override public void failure(ActionInvocation invocation, UpnpResponse operation, String defaultMsg) { addMediaRendererInformation(foundMediaRenderer, Collections.EMPTY_LIST); updateStatusFailure( "Error retrieving protocol info from " + foundMediaRenderer.getDetails().getFriendlyName() + ". " + defaultMsg ); }
@Override public void success(ActionInvocation invocation) { updateStatus( "Successfuly sent URI to: (Instance: " + instanceId + ") " + avTransportService.getDevice().getDetails().getFriendlyName() ); }
String cleanModelNumber = null; if (getDetails() != null && getDetails().getModelDetails() != null) { ModelDetails modelDetails = getDetails().getModelDetails(); if (modelDetails.getModelName() != null) { cleanModelName = modelDetails.getModelNumber() != null && modelDetails.getModelName().endsWith(modelDetails.getModelNumber()) if (getDetails() != null && getDetails().getManufacturerDetails() != null) { if (cleanModelName != null && getDetails().getManufacturerDetails().getManufacturer() != null) { cleanModelName = cleanModelName.startsWith(getDetails().getManufacturerDetails().getManufacturer()) ? cleanModelName.substring(getDetails().getManufacturerDetails().getManufacturer().length()).trim() : cleanModelName.trim(); if (getDetails().getManufacturerDetails().getManufacturer() != null) { sb.append(getDetails().getManufacturerDetails().getManufacturer());
public List<ValidationError> validate() { List<ValidationError> errors = new ArrayList<>(); if (getType() != null) { // Only validate the graph if we have a device type - that means we validate only if there // actually is a fully hydrated graph, not just a discovered device of which we haven't even // retrieved the descriptor yet. This assumes that the descriptor will ALWAYS contain a device // type. Now that is a risky assumption... errors.addAll(getVersion().validate()); if(getIdentity() != null) { errors.addAll(getIdentity().validate()); } if (getDetails() != null) { errors.addAll(getDetails().validate()); } if (hasServices()) { for (Service service : getServices()) { if (service != null) errors.addAll(service.validate()); } } if (hasEmbeddedDevices()) { for (Device embeddedDevice : getEmbeddedDevices()) { if (embeddedDevice != null) errors.addAll(embeddedDevice.validate()); } } } return errors; }
public MessageBoxController(Controller parentController, final ControlPoint controlPoint, final Service service) { super(new JFrame("MessageBoxService on: " + service.getDevice().getDetails().getFriendlyName()), parentController); this.controlPoint = controlPoint; this.service = service;
public void init(Service service) { this.service = service; view.setPresenter(this); view.setTitle("WAN IP Connection on " + service.getDevice().getRoot().getDetails().getFriendlyName()); portMappingPresenter.init( view.getPortMappingListView(), view.getPortMappingEditView(), service, this ); updateConnectionInfo(); }
view.setTitle(service.getDevice().getDetails().getFriendlyName());
public DeviceDetails getDetails(RemoteClientInfo info) { return this.getDetails(); }
public void init(Service service) { view.setPresenter(this); view.setTitle("Content Directory on " + service.getDevice().getDetails().getFriendlyName()); view.getTreeView().setPresenter(detailPresenter); view.getTreeView().init(controlPoint, service); detailPresenter.init(view.getDetailView()); }
view.setTitle(service.getDevice().getDetails().getFriendlyName());
if (device.getDetails().getDlnaDocs() != null) { for (DLNADoc dlnaDoc : device.getDetails().getDlnaDocs()) { addIfNotNull(deviceNode, "DLNA Doc: ", dlnaDoc); addIfNotNull(deviceNode, "DLNA Caps: ", device.getDetails().getDlnaCaps()); addIfNotNull(deviceNode, "Manufacturer: ", device.getDetails().getManufacturerDetails().getManufacturer()); addIfNotNull(deviceNode, "Manufacturer URL/URI: ", device.getDetails().getManufacturerDetails().getManufacturerURI(), device); addIfNotNull(deviceNode, "Model Name: ", device.getDetails().getModelDetails().getModelName()); addIfNotNull(deviceNode, "Model #: ", device.getDetails().getModelDetails().getModelNumber()); addIfNotNull(deviceNode, "Model Description: ", device.getDetails().getModelDetails().getModelDescription()); addIfNotNull(deviceNode, "Model URL/URI: ", device.getDetails().getModelDetails().getModelURI(), device); addIfNotNull(deviceNode, "Serial #: ", device.getDetails().getSerialNumber()); addIfNotNull(deviceNode, "Universal Product Code: ", device.getDetails().getUpc()); addIfNotNull(deviceNode, "Presentation URI: ", device.getDetails().getPresentationURI(), device);
+ " (UPnP Version: " + nodeDevice.getVersion().getMajor() + "." + nodeDevice.getVersion().getMinor() + ")" ); setText(nodeDevice.getDetails().getFriendlyName());
public static boolean isLocalIpAddress(Device device) { try { String addrip = device.getDetails().getBaseURL().toString(); addrip = addrip.substring("http://".length(), addrip.length()); addrip = addrip.substring(0, addrip.indexOf(":")); boolean ret = isLocalIpAddress(addrip); ret = false; return ret; } catch (Exception e) { e.printStackTrace(); } return false; }
String cleanModelNumber = null; if (getDetails() != null && getDetails().getModelDetails() != null) { ModelDetails modelDetails = getDetails().getModelDetails(); if (modelDetails.getModelName() != null) { cleanModelName = modelDetails.getModelNumber() != null && modelDetails.getModelName().endsWith(modelDetails.getModelNumber()) if (getDetails() != null && getDetails().getManufacturerDetails() != null) { if (cleanModelName != null && getDetails().getManufacturerDetails().getManufacturer() != null) { cleanModelName = cleanModelName.startsWith(getDetails().getManufacturerDetails().getManufacturer()) ? cleanModelName.substring(getDetails().getManufacturerDetails().getManufacturer().length()).trim() : cleanModelName.trim(); if (getDetails().getManufacturerDetails().getManufacturer() != null) { sb.append(getDetails().getManufacturerDetails().getManufacturer());
public List<ValidationError> validate() { List<ValidationError> errors = new ArrayList(); if (getType() != null) { // Only validate the graph if we have a device type - that means we validate only if there // actually is a fully hydrated graph, not just a discovered device of which we haven't even // retrieved the descriptor yet. This assumes that the descriptor will ALWAYS contain a device // type. Now that is a risky assumption... errors.addAll(getVersion().validate()); if (getDetails() != null) { errors.addAll(getDetails().validate()); } if (hasServices()) { for (Service service : getServices()) { if (service != null) errors.addAll(service.validate()); } } if (hasEmbeddedDevices()) { for (Device embeddedDevice : getEmbeddedDevices()) { if (embeddedDevice != null) errors.addAll(embeddedDevice.validate()); } } } return errors; }
DeviceDetails deviceModelDetails = deviceModel.getDetails(info); appendNewElementIfNotNull( descriptor, deviceElement, ELEMENT.friendlyName,