Class WsDiscoveryClientInterceptor
java.lang.Object
org.somda.sdc.dpws.soap.wsdiscovery.WsDiscoveryClientInterceptor
- All Implemented Interfaces:
Interceptor,WsDiscoveryClient
Default implementation of WsDiscoveryClient.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRegister an observer to handle Hello, Bye and ProbeMatches messages.com.google.common.util.concurrent.ListenableFuture<ProbeMatchesType>sendDirectedProbe(RequestResponseClient rrClient, List<QName> types, List<String> scopes) Sends a directed probe to a device.com.google.common.util.concurrent.ListenableFuture<Integer>sendProbe(String probeId, Collection<QName> types, Collection<String> scopes) Sends a probe message using the given parameters.com.google.common.util.concurrent.ListenableFuture<Integer>sendProbe(String probeId, Collection<QName> types, Collection<String> scopes, Integer maxResults) Sends a probe message using the given parameters with a limited number of results until future finishes.com.google.common.util.concurrent.ListenableFuture<ResolveMatchesType>Sends a resolve message for a given endpoint reference.voidUnregister an observer handling Hello, Bye and ProbeMatches messages.
-
Method Details
-
sendDirectedProbe
public com.google.common.util.concurrent.ListenableFuture<ProbeMatchesType> sendDirectedProbe(RequestResponseClient rrClient, List<QName> types, List<String> scopes) Description copied from interface:WsDiscoveryClientSends a directed probe to a device.- Specified by:
sendDirectedProbein interfaceWsDiscoveryClient- Parameters:
rrClient- to send request ontypes- to probe forscopes- to probe for- Returns:
- future providing probe matches response
TODO LDe: This is inconsistent with the rest, why does it not throw any exceptions?
-
sendProbe
public com.google.common.util.concurrent.ListenableFuture<Integer> sendProbe(String probeId, Collection<QName> types, Collection<String> scopes, Integer maxResults) throws MarshallingException, TransportException, InterceptorException Description copied from interface:WsDiscoveryClientSends a probe message using the given parameters with a limited number of results until future finishes.ProbeMatches messages are handled by the observers.
- Specified by:
sendProbein interfaceWsDiscoveryClient- Parameters:
probeId- of the probetypes- to probe forscopes- to probe formaxResults- number of results to wait for at most- Returns:
- Future containing the number of matches within the given timeout.
- Throws:
MarshallingException- on marshalling issues in the outgoing messageTransportException- on transport issues in the outgoing messageInterceptorException- on preprocessing issues with the outgoing message- See Also:
-
sendProbe
public com.google.common.util.concurrent.ListenableFuture<Integer> sendProbe(String probeId, Collection<QName> types, Collection<String> scopes) throws MarshallingException, TransportException, InterceptorException Description copied from interface:WsDiscoveryClientSends a probe message using the given parameters.ProbeMatches messages are handled by the observers.
- Specified by:
sendProbein interfaceWsDiscoveryClient- Parameters:
probeId- of the probetypes- to probe forscopes- to probe for- Returns:
- Future containing the number of matches within the given timeout.
- Throws:
MarshallingException- on marshalling issues in the outgoing messageTransportException- on transport issues in the outgoing messageInterceptorException- on preprocessing issues with the outgoing message- See Also:
-
sendResolve
public com.google.common.util.concurrent.ListenableFuture<ResolveMatchesType> sendResolve(EndpointReferenceType epr) throws MarshallingException, TransportException, InterceptorException Description copied from interface:WsDiscoveryClientSends a resolve message for a given endpoint reference.- Specified by:
sendResolvein interfaceWsDiscoveryClient- Parameters:
epr- to resolve for- Returns:
- future providing resolve matches response
- Throws:
MarshallingException- on marshalling issues in the outgoing messageTransportException- on transport issues in the outgoing messageInterceptorException- on preprocessing issues with the outgoing message
-
registerHelloByeAndProbeMatchesObserver
Description copied from interface:WsDiscoveryClientRegister an observer to handle Hello, Bye and ProbeMatches messages.- Specified by:
registerHelloByeAndProbeMatchesObserverin interfaceWsDiscoveryClient- Parameters:
observer- to listen on
-
unregisterHelloByeAndProbeMatchesObserver
Description copied from interface:WsDiscoveryClientUnregister an observer handling Hello, Bye and ProbeMatches messages.- Specified by:
unregisterHelloByeAndProbeMatchesObserverin interfaceWsDiscoveryClient- Parameters:
observer- to unregister
-