Interface HostingService

All Superinterfaces:
Interceptor
All Known Implementing Classes:
HostingServiceInterceptor

public interface HostingService extends Interceptor
Hosting service information of a device.

The hosting service information is tightly coupled to the WS-Discovery target service information.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds a hosted service to this hosting service.
    Gets the unique WS-Discovery target service EPR.
    Gets registered hosted services.
    org.somda.sdc.dpws.model.ThisDeviceType
    Gets ThisDevice information.
    org.somda.sdc.dpws.model.ThisModelType
    Gets ThisModel information.
    Gets the XAddrs list of the hosting service.
    void
    setThisDevice(org.somda.sdc.dpws.model.ThisDeviceType thisDevice)
    Set ThisDevice information as defined in DPWS.
    void
    setThisModel(org.somda.sdc.dpws.model.ThisModelType thisModel)
    Sets ThisModel information as defined in DPWS.
  • Method Details

    • getEndpointReferenceAddress

      String getEndpointReferenceAddress()
      Gets the unique WS-Discovery target service EPR.

      As defined in dpws:R0004, the URI is a UUID IRI.

      Returns:
      the EPR address.
      See Also:
    • getXAddrs

      List<String> getXAddrs()
      Gets the XAddrs list of the hosting service.
      Returns:
      Physical addresses the hosting service is reachable from. Forwards addresses from WS-Discovery XAddr field.
      See Also:
    • getThisModel

      org.somda.sdc.dpws.model.ThisModelType getThisModel()
      Gets ThisModel information.
      Returns:
      ThisModel information as defined in DPWS.
      See Also:
    • setThisModel

      void setThisModel(org.somda.sdc.dpws.model.ThisModelType thisModel)
      Sets ThisModel information as defined in DPWS.
      Parameters:
      thisModel - ThisModel information.
      See Also:
    • getThisDevice

      org.somda.sdc.dpws.model.ThisDeviceType getThisDevice()
      Gets ThisDevice information.
      Returns:
      ThisDevice information as defined in DPWS.
      See Also:
    • setThisDevice

      void setThisDevice(org.somda.sdc.dpws.model.ThisDeviceType thisDevice)
      Set ThisDevice information as defined in DPWS.
      Parameters:
      thisDevice - ThisDevice information.
      See Also:
    • addHostedService

      void addHostedService(HostedService hostedService)
      Adds a hosted service to this hosting service.

      Use HostedServiceFactory to create suitable HostedService instances.

      Parameters:
      hostedService - the hosted service to add.
      See Also:
    • getHostedServices

      List<HostedService> getHostedServices()
      Gets registered hosted services.
      Returns:
      a list of all registered hosted services.
      See Also: