Interface HostingServiceProxy

All Superinterfaces:
InterceptorHandler, RequestResponseClient
All Known Implementing Classes:
HostingServiceProxyImpl

public interface HostingServiceProxy extends RequestResponseClient
Hosting service proxy of a client.
  • 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

      List<QName> getTypes()
      Gets types of the hosting service.
      Returns:
      list of types, which classifies the hosting service.
    • getThisModel

      Optional<ThisModelType> getThisModel()
      Gets the DPWS ThisModel information.
      Returns:
      ThisModel information.
    • getThisDevice

      Optional<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()