Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.provdisc
Interface ProvisioningDiscoveryService

All Known Implementing Classes:
AbstractProvisioningDiscoveryService, ProvisioningDiscoveryServiceDHCPImpl, ProvisioningDiscoveryServiceMDNSImpl

public interface ProvisioningDiscoveryService

Service that allow to retrieve a provisioning URL to configure SIP Communicator. Implementations (not exhaustive) could use DHCP, DNS (A, AAAA, SRV, TXT) or mDNS (Bonjour).

Author:
Sebastien Vincent

Method Summary
 void addDiscoveryListener(DiscoveryListener listener)
          Add a listener that will be notified when the startDiscovery has finished.
 String discoverURL()
          Launch a discovery for a provisioning URL.
 String getMethodName()
          Get the name of the method name used to retrieve provisioning URL.
 void removeDiscoveryListener(DiscoveryListener listener)
          Add a listener that will be notified when the discoverProvisioningURL has finished.
 void startDiscovery()
          Launch a discovery for a provisioning URL.
 

Method Detail

getMethodName

String getMethodName()
Get the name of the method name used to retrieve provisioning URL.

Returns:
method name

startDiscovery

void startDiscovery()
Launch a discovery for a provisioning URL. This method is asynchronous, the response will be notified to any ProvisioningListener registered.


discoverURL

String discoverURL()
Launch a discovery for a provisioning URL. This method is synchronous and may block for some time.

Returns:
provisioning URL

addDiscoveryListener

void addDiscoveryListener(DiscoveryListener listener)
Add a listener that will be notified when the startDiscovery has finished.

Parameters:
listener - ProvisioningListener to add

removeDiscoveryListener

void removeDiscoveryListener(DiscoveryListener listener)
Add a listener that will be notified when the discoverProvisioningURL has finished.

Parameters:
listener - ProvisioningListener to add

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.