Interface HostingServiceAccess
-
- All Implemented Interfaces:
public interface HostingServiceAccessInterface to access the hosting service provided by a Device.
Important note: there is no support to remove or alter hosted services that have been added before.
-
-
Method Summary
Modifier and Type Method Description abstract voidsetThisDevice(ThisDeviceType thisDevice)Adds the ThisModel definition. abstract voidsetThisModel(ThisModelType thisModel)Updates the ThisModel definition. abstract voidaddHostedService(HostedService hostedService)Adds a hosted service definition. -
-
Method Detail
-
setThisDevice
abstract void setThisDevice(ThisDeviceType thisDevice)
Adds the ThisModel definition.
According to the DPWS specification, certain information is limited in the number of characters:
- getFriendlyName shall have fewer than MAX_FIELD_SIZE octets
- getFirmwareVersion shall have fewer than MAX_FIELD_SIZE octets
- getSerialNumber ()} shall have fewer than MAX_FIELD_SIZE octets
Attention: If those limits are exceeded, the underlying implementation may cut off overflowing characters.
- Parameters:
thisDevice- the ThisModel information to set.
-
setThisModel
abstract void setThisModel(ThisModelType thisModel)
Updates the ThisModel definition.
According to the DPWS specification, certain information is limited in the number of characters:
- getManufacturer ()} shall have fewer than MAX_FIELD_SIZE octets
- getModelName ()} shall have fewer than MAX_FIELD_SIZE octets
- getModelNumber ()} ()} shall have fewer than MAX_FIELD_SIZE octets
- getManufacturerUrl shall have fewer than MAX_URI_SIZE octets
- getModelUrl ()} shall have fewer than MAX_URI_SIZE octets
Attention: If those limits are exceeded, the underlying implementation may cut off overflowing characters.
- Parameters:
thisModel- the ThisModel information to set.
-
addHostedService
abstract 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.
-
-
-
-