Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.util.dns
Class DnsUtilActivator

java.lang.Object
  extended by net.java.sip.communicator.util.dns.DnsUtilActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class DnsUtilActivator
extends Object
implements org.osgi.framework.BundleActivator

The DNS Util activator registers the DNSSEC resolver if enabled.

Author:
Emil Ivov, Ingo Bauersachs

Field Summary
static boolean PDEFAULT_DNSSEC_RESOLVER_ENABLED
          Default value of @see PNAME_DNSSEC_RESOLVER_ENABLED.
static String PNAME_DNSSEC_NAMESERVERS
          The name of the property that sets custom nameservers to use for all DNS lookups when DNSSEC is enabled.
static String PNAME_DNSSEC_RESOLVER_ENABLED
          The name of the property that enables or disables the DNSSEC resolver (instead of a normal, non-validating local resolver).
 
Constructor Summary
DnsUtilActivator()
           
 
Method Summary
static ConfigurationService getConfigurationService()
          Returns the ConfigurationService obtained from the bundle context.
static NotificationService getNotificationService()
          Returns the NotificationService obtained from the bundle context.
static ResourceManagementService getResources()
          Returns the service giving access to all application resources.
static void refreshResolver()
          Sets a DNSSEC resolver as default resolver on lookup when DNSSEC is enabled; creates a standard lookup otherwise.
 void start(org.osgi.framework.BundleContext context)
          Calls Thread.setUncaughtExceptionHandler()
 void stop(org.osgi.framework.BundleContext context)
          Doesn't do anything.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PNAME_DNSSEC_RESOLVER_ENABLED

public static final String PNAME_DNSSEC_RESOLVER_ENABLED
The name of the property that enables or disables the DNSSEC resolver (instead of a normal, non-validating local resolver).

See Also:
Constant Field Values

PDEFAULT_DNSSEC_RESOLVER_ENABLED

public static final boolean PDEFAULT_DNSSEC_RESOLVER_ENABLED
Default value of @see PNAME_DNSSEC_RESOLVER_ENABLED.

See Also:
Constant Field Values

PNAME_DNSSEC_NAMESERVERS

public static final String PNAME_DNSSEC_NAMESERVERS
The name of the property that sets custom nameservers to use for all DNS lookups when DNSSEC is enabled. Multiple servers are separated by a comma (,).

See Also:
Constant Field Values
Constructor Detail

DnsUtilActivator

public DnsUtilActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws Exception
Calls Thread.setUncaughtExceptionHandler()

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
context - The execution context of the bundle being started (unused).
Throws:
Exception - If this method throws an exception, this bundle is marked as stopped and the Framework will remove this bundle's listeners, unregister all services registered by this bundle, and release all services used by this bundle.

refreshResolver

public static void refreshResolver()
Sets a DNSSEC resolver as default resolver on lookup when DNSSEC is enabled; creates a standard lookup otherwise.


stop

public void stop(org.osgi.framework.BundleContext context)
          throws Exception
Doesn't do anything.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
context - The execution context of the bundle being stopped.
Throws:
Exception - If this method throws an exception, the bundle is still marked as stopped, and the Framework will remove the bundle's listeners, unregister all services registered by the bundle, and release all services used by the bundle.

getConfigurationService

public static ConfigurationService getConfigurationService()
Returns the ConfigurationService obtained from the bundle context.

Returns:
the ConfigurationService obtained from the bundle context

getNotificationService

public static NotificationService getNotificationService()
Returns the NotificationService obtained from the bundle context.

Returns:
the NotificationService obtained from the bundle context

getResources

public static ResourceManagementService getResources()
Returns the service giving access to all application resources.

Returns:
the service giving access to all application resources.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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