public class EffectiveTldFinder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EffectiveTldFinder.EffectiveTLD |
Modifier and Type | Field and Description |
---|---|
static String |
COMMENT |
static char |
DOT |
static String |
DOT_REGEX |
static String |
ETLD_DATA |
static String |
EXCEPTION |
static String |
WILD_CARD |
Modifier and Type | Method and Description |
---|---|
static String |
getAssignedDomain(String hostname)
This method uses the effective TLD to determine which component of a FQDN
is the NIC-assigned domain name.
|
static EffectiveTldFinder.EffectiveTLD |
getEffectiveTLD(String hostname) |
static Map<String,EffectiveTldFinder.EffectiveTLD> |
getEffectiveTLDs() |
static EffectiveTldFinder |
getInstance() |
boolean |
initialize(InputStream effectiveTldDataStream) |
boolean |
isConfigured() |
public static final String ETLD_DATA
public static final String COMMENT
public static final String DOT_REGEX
public static final String EXCEPTION
public static final String WILD_CARD
public static final char DOT
public static EffectiveTldFinder getInstance()
public boolean initialize(InputStream effectiveTldDataStream)
public static Map<String,EffectiveTldFinder.EffectiveTLD> getEffectiveTLDs()
public static EffectiveTldFinder.EffectiveTLD getEffectiveTLD(String hostname)
hostname
- the hostname for which to find the
EffectiveTldFinder.EffectiveTLD
EffectiveTldFinder.EffectiveTLD
public static String getAssignedDomain(String hostname)
hostname
- a string for which to obtain a NIC-assigned domain namepublic boolean isConfigured()
Copyright © 2009–2016 Crawler-Commons. All rights reserved.