Package org.somda.sdc.dpws.client.helper
Class DiscoveredDeviceResolver
- java.lang.Object
-
- org.somda.sdc.dpws.client.helper.DiscoveredDeviceResolver
-
public class DiscoveredDeviceResolver extends Object
Provide different functions to resolve aDiscoveredDeviceobject from hello or probe messages.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<DiscoveredDevice>resolve(HelloMessage helloMessage)Take a hello message to resolveDiscoveredDeviceobject.Optional<DiscoveredDevice>resolve(ProbeMatchesMessage probeMatchesMessage)Take a probe matches message to resolveDiscoveredDeviceobject.
-
-
-
Method Detail
-
resolve
public Optional<DiscoveredDevice> resolve(HelloMessage helloMessage)
Take a hello message to resolveDiscoveredDeviceobject.- Parameters:
helloMessage- The hello message retrieved by aWsDiscoveryClientimplementation.- Returns:
- The device proxy instance or
Optional.empty()if resolving failed.
-
resolve
public Optional<DiscoveredDevice> resolve(ProbeMatchesMessage probeMatchesMessage)
Take a probe matches message to resolveDiscoveredDeviceobject.- Parameters:
probeMatchesMessage- The probe matches message retrieved by aWsDiscoveryClientimplementation.- Returns:
- The device proxy instance or
Optional.empty()if resolving failed.
-
-