Package org.somda.sdc.dpws.device
Interface HostingServiceAccess
-
- All Known Implementing Classes:
DeviceImpl
public interface HostingServiceAccessInterface to access the hosting service provided by aDevice.Important note: there is no support to remove or alter hosted services that have been added before.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddHostedService(HostedService hostedService)Adds a hosted service definition.voidsetThisDevice(ThisDeviceType thisDevice)Adds the ThisModel definition.voidsetThisModel(ThisModelType thisModel)Updates the ThisModel definition.
-
-
-
Method Detail
-
setThisDevice
void setThisDevice(ThisDeviceType thisDevice)
Adds the ThisModel definition.According to the DPWS specification, certain information is limited in the number of characters:
ThisDeviceType.getFriendlyName()shall have fewer thanDpwsConstants.MAX_FIELD_SIZEoctetsThisDeviceType.getFirmwareVersion()shall have fewer thanDpwsConstants.MAX_FIELD_SIZEoctetsThisDeviceType.getSerialNumber()()} shall have fewer thanDpwsConstants.MAX_FIELD_SIZEoctets
Attention: If those limits are exceeded, the underlying implementation may cut off overflowing characters.
- Parameters:
thisDevice- the ThisModel information to set.- See Also:
- 4.1 Characteristics
-
setThisModel
void setThisModel(ThisModelType thisModel)
Updates the ThisModel definition.According to the DPWS specification, certain information is limited in the number of characters:
ThisModelType.getManufacturer()()} shall have fewer thanDpwsConstants.MAX_FIELD_SIZEoctetsThisModelType.getModelName()()} shall have fewer thanDpwsConstants.MAX_FIELD_SIZEoctetsThisModelType.getModelNumber()()} ()} shall have fewer thanDpwsConstants.MAX_FIELD_SIZEoctetsThisModelType.getManufacturerUrl()shall have fewer thanDpwsConstants.MAX_URI_SIZEoctetsThisModelType.getModelUrl()()} shall have fewer thanDpwsConstants.MAX_URI_SIZEoctets
Attention: If those limits are exceeded, the underlying implementation may cut off overflowing characters.
- Parameters:
thisModel- the ThisModel information to set.- See Also:
- 4.1 Characteristics
-
addHostedService
void addHostedService(HostedService hostedService)
Adds a hosted service definition.Attention: there is currently no mechanism that verifies if the hosted service was added before!
- Parameters:
hostedService- the hosted service definition to add.
-
-