Interface WsDiscoveryClient

    • Method Detail

      • sendDirectedProbe

        com.google.common.util.concurrent.ListenableFuture<org.somda.sdc.dpws.soap.wsdiscovery.model.ProbeMatchesType> sendDirectedProbe​(RequestResponseClient rrClient,
                                                                                                                                         List<QName> types,
                                                                                                                                         List<String> scopes,
                                                                                                                                         @Nullable
                                                                                                                                         MatchBy matchBy)
        Sends a directed probe to a device.
        Parameters:
        rrClient - to send request on
        types - to probe for
        scopes - to probe for
        matchBy - the scopes matching rule, or null to use the default http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/rfc3986.
        Returns:
        future providing probe matches response
      • sendResolve

        com.google.common.util.concurrent.ListenableFuture<org.somda.sdc.dpws.soap.wsdiscovery.model.ResolveMatchesType> sendResolve​(org.somda.sdc.dpws.soap.wsaddressing.model.EndpointReferenceType epr)
                                                                                                                              throws MarshallingException,
                                                                                                                                     TransportException,
                                                                                                                                     InterceptorException
        Sends a resolve message for a given endpoint reference.
        Parameters:
        epr - to resolve for
        Returns:
        future providing resolve matches response
        Throws:
        MarshallingException - on marshalling issues in the outgoing message
        TransportException - on transport issues in the outgoing message
        InterceptorException - on preprocessing issues with the outgoing message
      • registerHelloByeAndProbeMatchesObserver

        void registerHelloByeAndProbeMatchesObserver​(HelloByeAndProbeMatchesObserver observer)
        Register an observer to handle Hello, Bye and ProbeMatches messages.
        Parameters:
        observer - to listen on
      • unregisterHelloByeAndProbeMatchesObserver

        void unregisterHelloByeAndProbeMatchesObserver​(HelloByeAndProbeMatchesObserver observer)
        Unregister an observer handling Hello, Bye and ProbeMatches messages.
        Parameters:
        observer - to unregister