public class ProxyDevice extends DeviceCommons
customMData, deviceMetadata, modelMetadata| Constructor and Description |
|---|
ProxyDevice(GetResponseMessage message,
DefaultDeviceReference devRef,
Device oldDevice,
ConnectionInfo connectionInfo)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMatchingServiceReferencesToDataStructure(DataStructure to,
QNameSet servicePortTypes,
SecurityKey securityKey)
Adds service references associated to this device to the data structure
to, if
they match the service port types given within serviceTypes. |
void |
disconnectAllServiceReferences(boolean resetServiceRefs)
Disconnects all ServiceReferences from device.
|
java.lang.String |
getComManId() |
java.lang.String |
getDefaultNamespace()
return the default namespace.
|
DeviceReference |
getDeviceReference(SecurityKey securityKey)
Gets the
DeviceReference of this device. |
Iterator |
getDiscoveryXAddressInfos()
Returns a iterator over the discovery addresses of this device.
|
EndpointReference |
getEndpointReference()
Returns the endpoint reference of this device.
|
long |
getMetadataVersion()
Returns metadata version for this device.
|
Iterator |
getPortTypes()
Gets the iterator over device port types of the device.
|
Iterator |
getScopes()
Gets iterator over all scopes of the device.
|
ServiceReference |
getServiceReference(EndpointReference serviceEpr,
SecurityKey securityKey)
Get service reference by endpoint reference of referenced service.
|
ServiceReference |
getServiceReference(URI serviceId,
SecurityKey securityKey)
Gets service reference by service id of referenced service.
|
Iterator |
getServiceReferences(QNameSet servicePortTypes,
SecurityKey securityKey)
Gets iterator over the service reference of the services, which implements all port types
specified.
|
Iterator |
getServiceReferences(SecurityKey securityKey)
Gets iterator over the service references of all services.
|
Iterator |
getTransportAndDiscoveryXAddressInfos()
Returns a iterator over the combination of transport and discovery addresses of this device.
|
Iterator |
getTransportXAddressInfos()
Returns a iterator over the transport addresses of this device.
|
void |
invalidate()
set the device on invalid.
|
boolean |
isRemote()
Is device remote (proxy) or local?
|
boolean |
isValid()
return true if device is valid and false if it is invalid.
|
equals, getCustomMData, getFirmwareVersion, getFriendlyName, getFriendlyNames, getManufacturer, getManufacturers, getManufacturerUrl, getModelName, getModelNames, getModelNumber, getModelUrl, getPresentationUrl, getSerialNumber, hashCode, toStringpublic ProxyDevice(GetResponseMessage message, DefaultDeviceReference devRef, Device oldDevice, ConnectionInfo connectionInfo)
message - Holds information about discovered device.public boolean isRemote()
Devicepublic EndpointReference getEndpointReference()
Devicepublic Iterator getPortTypes()
DeviceQName.QName.public long getMetadataVersion()
Devicepublic DeviceReference getDeviceReference(SecurityKey securityKey)
DeviceDeviceReference of this device.DeviceReference of this device.public Iterator getTransportXAddressInfos()
DeviceURI.URI.public Iterator getDiscoveryXAddressInfos()
DeviceURI.URI.public Iterator getTransportAndDiscoveryXAddressInfos()
DeviceURI.URI.public Iterator getScopes()
DeviceURI.URI.public Iterator getServiceReferences(SecurityKey securityKey)
DeviceServiceReference.public Iterator getServiceReferences(QNameSet servicePortTypes, SecurityKey securityKey)
DeviceServiceReference.servicePortTypes - The service port types the services must implement, to be returned by its reference.public void addMatchingServiceReferencesToDataStructure(DataStructure to, QNameSet servicePortTypes, SecurityKey securityKey)
Deviceto, if
they match the service port types given within serviceTypes.to - collection to add matching service references toservicePortTypes - service port types to look forpublic ServiceReference getServiceReference(URI serviceId, SecurityKey securityKey)
Devicenull if no service matches the service id.public ServiceReference getServiceReference(EndpointReference serviceEpr, SecurityKey securityKey)
Devicenull, if no service matches the service id.public void disconnectAllServiceReferences(boolean resetServiceRefs)
DeviceCommons resetServiceRefs
is true serviceReferences will be reseted too.disconnectAllServiceReferences in class DeviceCommonspublic java.lang.String getDefaultNamespace()
Devicepublic boolean isValid()
Devicepublic void invalidate()
Devicepublic java.lang.String getComManId()