tigase.util
Class DNSResolver

java.lang.Object
  extended by tigase.util.DNSResolver

public class DNSResolver
extends Object

Describe class DNSResolver here. Created: Mon Sep 11 09:59:02 2006

Version:
$Rev: 644 $
Author:
Artur Hefczyc

Field Summary
static Map<String,DNSEntry> ip_cache
           
static Map<String,DNSEntry[]> srv_cache
           
 
Constructor Summary
DNSResolver()
           
 
Method Summary
static String getDefaultHostname()
          Method description
static String[] getDefHostNames()
          Method description
static String getHostIP(String hostname)
          Method description
static DNSEntry[] getHostSRV_Entries(String hostname)
          Method description
static DNSEntry getHostSRV_Entry(String hostname)
          Method description
static String getHostSRV_IP(String hostname)
          Method description
static void main(String[] args)
          Describe main method here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

srv_cache

public static Map<String,DNSEntry[]> srv_cache

ip_cache

public static Map<String,DNSEntry> ip_cache
Constructor Detail

DNSResolver

public DNSResolver()
Method Detail

getDefHostNames

public static String[] getDefHostNames()
Method description

Returns:

getDefaultHostname

public static String getDefaultHostname()
Method description

Returns:

getHostIP

public static String getHostIP(String hostname)
                        throws UnknownHostException
Method description

Parameters:
hostname -
Returns:
Throws:
UnknownHostException

getHostSRV_Entries

public static DNSEntry[] getHostSRV_Entries(String hostname)
                                     throws UnknownHostException
Method description

Parameters:
hostname -
Returns:
Throws:
UnknownHostException

getHostSRV_Entry

public static DNSEntry getHostSRV_Entry(String hostname)
                                 throws UnknownHostException
Method description

Parameters:
hostname -
Returns:
Throws:
UnknownHostException

getHostSRV_IP

public static String getHostSRV_IP(String hostname)
                            throws UnknownHostException
Method description

Parameters:
hostname -
Returns:
Throws:
UnknownHostException

main

public static void main(String[] args)
                 throws Exception
Describe main method here.

Parameters:
args - a String[] value
Throws:
Exception


Copyright © 2012 Tigase. All Rights Reserved.