|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ws4d.java.service.DeviceCommons
org.ws4d.java.service.ProxyDevice
public class ProxyDevice
Proxy class of a (remote) dpws device
Constructor Summary | |
---|---|
ProxyDevice(GetResponseMessage message,
DefaultDeviceReference devRef,
Device oldDevice,
ProtocolData protocolData)
Constructor. |
Method Summary | |
---|---|
void |
addServiceReferences(DataStructure to,
QNameSet servicePortTypes)
Adds service references associated to this device to the data structure to , if they match the service port types given within
serviceTypes . |
java.lang.String |
getDefaultNamespace()
return the default namespace. |
DeviceReference |
getDeviceReference()
Gets the DeviceReference 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)
Get service reference by endpoint reference of referenced service. |
ServiceReference |
getServiceReference(URI serviceId)
Gets service reference by service id of referenced service. |
Iterator |
getServiceReferences()
Gets iterator over the service references of all services. |
Iterator |
getServiceReferences(QNameSet servicePortTypes)
Gets iterator over the service reference of the services, which implements all port types specified. |
Iterator |
getXAddressInfos()
Returns a iterator over the transport addresses of this device. |
boolean |
hasCustomizeMData()
Tagged if a Device has metadata which are added by a user |
void |
invalidate()
|
boolean |
isRemote()
Is device remote (proxy) or local? |
boolean |
isValid()
|
java.lang.String |
readCustomizeMData()
The method return the metadata that a user has added as String |
Methods inherited from class org.ws4d.java.service.DeviceCommons |
---|
equals, getCertificate, getFirmwareVersion, getFriendlyName, getFriendlyNames, getManufacturer, getManufacturers, getManufacturerUrl, getModelName, getModelNames, getModelNumber, getModelUrl, getPresentationUrl, getPrivateKey, getSerialNumber, hashCode, isSecure, setCertificate, setPrivateKey, setSecureDevice, setSecureDevice, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProxyDevice(GetResponseMessage message, DefaultDeviceReference devRef, Device oldDevice, ProtocolData protocolData)
message
- Holds information about discovered device.Method Detail |
---|
public boolean isRemote()
Device
public EndpointReference getEndpointReference()
Device
public Iterator getPortTypes()
Device
QName
.
QName
.public long getMetadataVersion()
Device
public DeviceReference getDeviceReference()
Device
DeviceReference
of this device.
DeviceReference
of this device.public Iterator getXAddressInfos()
Device
URI
.
URI
.public Iterator getScopes()
Device
URI
.
URI
.public Iterator getServiceReferences()
Device
ServiceReference
.
public Iterator getServiceReferences(QNameSet servicePortTypes)
Device
ServiceReference
.
servicePortTypes
- The service port types the services must
implement, to be returned by its reference.
public void addServiceReferences(DataStructure to, QNameSet servicePortTypes)
Device
to
, 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)
Device
null
if no service matches the
service id.public ServiceReference getServiceReference(EndpointReference serviceEpr)
Device
null
, if no service matches
the service id.public java.lang.String getDefaultNamespace()
Device
public boolean isValid()
public void invalidate()
public java.lang.String readCustomizeMData()
Device
Device.readCustomizeMData()
public boolean hasCustomizeMData()
Device
Device.hasCustomizeMData()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |