Plugin of Domain definition suggested

Description

After fixing bug #915 we can define domains by any suffix like .co.uk or .dk by
inputting a list in settings.
However a much better solution would be to make the definition of domains
pluggable so any definition is possible. The plugin would encompass the two
methods from Domain: isValidDomainName and domainNameFromHostname
A better implementation of the plugin than the current is to use the list from
http://wiki.mozilla.org/Gecko:Effective_TLD_Service
NOTE: This bug is originally from Bugzilla bug_id=1072.
This bug was previously assigned to Unassigned.

Checklist

Activity

Show:

SrAugust 19, 2016 at 4:12 PM

Duplicate of

MJune 8, 2009 at 8:40 AM

##############
Gforge Tracker Custom Fields
##############
#####
Module : Harvester
######
#####
Status : 587
######
#####
Version : 3.2
######

MJune 8, 2009 at 8:40 AM

##############
Gforge Tracker Followups
##############
###############
svc - svc.dk - 09/28/2007 12:01:42

  • Adding settings for the DomainDefinition plugin.

  • Creating the DomainDefinition interface.

  • Refactoring the existing methods Domain.isValidDomainName and
    domainNameFromHostname as a DomainDefinition plugin
    Estimated 2.0 MD
    ###############
    ###############
    svc - svc.dk - 09/28/2007 12:12:57
    The interface could look like this:
    public abstract class TldDomainDefinition extends
    SettingsFactory<TldDomainDefinition> {
    private static TldDomainDefinition instance;
    /** Get the singleton instance of the TldDomainDefinition implementation class
    *

  • @return An instance of TldDomainDefinition that implements

  • a certain way of defining a TLD
    */
    public static synchronized TldDomainDefinition getInstance() {
    if (instance == null) {
    instance = getInstance(Settings.TLD_DOMAIN_DEFINITION_CLASS);
    }
    return instance;
    }
    public abstract boolean isValidDomainName();
    public abstract String domainNameFromHostname(String hostname);


###############

MJune 8, 2009 at 8:40 AM

##############
Gforge Tracker Field History
##############
kfc - 08/20/2008 11:20:13 - Module old value 'None'
kfc - 06/08/2009 10:40:23 - priority old value '3'
kfc - 08/20/2008 12:25:07 - assigned_to old value '100'
kfc - 11/19/2008 15:27:22 - priority old value '4'
svc - 09/28/2007 12:01:42 - assigned_to old value 'svc@kb.dk'
svc - 03/13/2009 14:08:30 - Status old value 'New'
svc - 09/28/2007 12:01:42 - keywords old value ' '
bja - 09/18/2007 08:07:17 - keywords old value ' '
bja - 09/18/2007 08:07:17 - priority old value 'P3'

Duplicate

Details

Assignee

Reporter

Components

Sprint

Fix versions

Affects versions

Priority

Checklist

Created September 14, 2007 at 6:34 AM
Updated September 20, 2016 at 12:22 PM
Resolved August 19, 2016 at 4:12 PM