Interface HostedServiceFactory

    • Constructor Detail

    • Method Detail

      • createHostedService

         abstract HostedService createHostedService(String serviceId, List<QName> types, List<String> eprAddresses, WebService webService, Array<byte> wsdlDocument)

        Creates a hosted service instance.

        Parameters:
        serviceId - the service id.
        types - list of QNames that matches the QNames of the port types of the WSDL that comes with the hosted service.
        eprAddresses - list of URLs where the hosted service can be requested from.
        webService - interceptor to process incoming network requests.
        wsdlDocument - byte array to expose the hosted service's WSDL document.
        Returns:

        hosted service instance used on the device side.

      • createHostedService

         abstract HostedService createHostedService(String serviceId, List<QName> types, WebService webService, Array<byte> wsdlDocument)

        Creates a hosted service metadata instance without available EPR addresses.

        This factory method can be used if EPR addresses shall be assigned automatically from a hosting service.

        Parameters:
        serviceId - the service id.
        types - list of QNames that matches the QNames of the port types of the WSDL that comes with the hosted service.
        webService - interceptor to process incoming network requests.
        wsdlDocument - byte array to expose the hosted service's WSDL document.
        Returns:

        hosted service instance used on the device side.

      • createHostedServiceProxy

         abstract HostedServiceProxy createHostedServiceProxy(HostedServiceType hostedServiceType, RequestResponseClient rrClient, String activeEprAddress, EventSink eventSink)

        Creates a hosted service proxy instance.

        Parameters:
        hostedServiceType - the hosted service WS-MetadataExchange response information.
        rrClient - the request-response client to invoke service operations on.
        activeEprAddress - the physical address that is actively being used to send network requests.
        eventSink - the event sink client API to subscribe to notifications of a remote device.
        Returns:

        hosted service proxy instance used by on the client side.