Package org.somda.sdc.dpws.service
Interface HostingServiceProxy
- All Superinterfaces:
InterceptorHandler,RequestResponseClient
- All Known Implementing Classes:
HostingServiceProxyImpl
Hosting service proxy of a client.
-
Method Summary
Modifier and TypeMethodDescriptionGets the physical address that is actively being used to send requests.Gets the unique WS-Discovery target service EPR.Gets all hosted service proxies.longGets the metadata version.Optional<org.somda.sdc.dpws.model.ThisDeviceType>Gets the DPWS ThisDevice information.Optional<org.somda.sdc.dpws.model.ThisModelType>Gets the DPWS ThisModel information.getTypes()Gets types of the hosting service.Methods inherited from interface org.somda.sdc.dpws.soap.interception.InterceptorHandler
registerMethods inherited from interface org.somda.sdc.dpws.soap.RequestResponseClient
sendRequestResponse
-
Method Details
-
getEndpointReferenceAddress
String getEndpointReferenceAddress()Gets the unique WS-Discovery target service EPR.If TLS is enforced, the value of the endpoint reference address as returned by this function is trustworthy (opposed to
DiscoveredDevice.getEprAddress(), which is potentially retrieved via unsecured UDP).- Returns:
- WS-Discovery target service EPR.
-
getTypes
Gets types of the hosting service.- Returns:
- list of types, which classifies the hosting service.
-
getThisModel
Optional<org.somda.sdc.dpws.model.ThisModelType> getThisModel()Gets the DPWS ThisModel information.- Returns:
- ThisModel information.
-
getThisDevice
Optional<org.somda.sdc.dpws.model.ThisDeviceType> getThisDevice()Gets the DPWS ThisDevice information.- Returns:
- ThisDevice information.
-
getHostedServices
Map<String,HostedServiceProxy> getHostedServices()Gets all hosted service proxies.- Returns:
- all hosted services.
-
getActiveXAddr
String getActiveXAddr()Gets the physical address that is actively being used to send requests.A hosting service can have different physical addresses in order to be accessible. The one that is returned with this function is the one that was used to initially resolve metadata (GetTransfer requests).
- Returns:
- the currently active EPR address.
-
getMetadataVersion
long getMetadataVersion()Gets the metadata version.Attention: this data might have come from an unreliable source. todo DGr remove that function - the metadata version does not necessarily reflect the hosting service data
- Returns:
- the metadata version
-
getRequestResponseClient
RequestResponseClient getRequestResponseClient()
-