Skip to content

Commit

Permalink
new tlds
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdual committed Mar 21, 2021
1 parent 97f0c10 commit 6f6bd5e
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,11 @@ public class TemplateFactory {
tmpl.put("ru", DotRu.class);
tmpl.put("se", DotSe.class);
tmpl.put("sh", DotSh.class);
tmpl.put("shop", DotShop.class);
tmpl.put("sk", DotSk.class);
tmpl.put("soy", Google.class);
tmpl.put("su", DotRu.class);
tmpl.put("st", DotSt.class);
tmpl.put("th", DotTh.class);
tmpl.put("top", DotTop.class);
tmpl.put("tr", DotTr.class);
tmpl.put("tv", DotTv.class);
tmpl.put("tw", DotTw.class);
Expand Down Expand Up @@ -102,6 +101,7 @@ public class TemplateFactory {
tmpl.put("how", Google.class);
tmpl.put("new", Google.class);
tmpl.put("page", Google.class);
tmpl.put("soy", Google.class);
tmpl.put("xn--q9jyb4c", Google.class);

// CentralNic registry
Expand Down Expand Up @@ -474,6 +474,12 @@ public class TemplateFactory {
tmpl.put("theatre", XYZCOM.class);
tmpl.put("xyz", XYZCOM.class);
tmpl.put("yachts", XYZCOM.class);

// GMO registry
tmpl.put("nagoya", GMO.class);
tmpl.put("shop", GMO.class);
tmpl.put("tokyo", GMO.class);
tmpl.put("yokohama", GMO.class);
}

public Template getTemplate(String tld) throws UnsupportedTldException, IllegalAccessException {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.github.iamdual.whoisparser.templates.registry;

import com.github.iamdual.whoisparser.templates.common.CommonDate2;

/**
* A WHOIS pattern of GMO registry.
*
* @author: Ekin Karadeniz <[email protected]>
* @license: Apache-2.0 License
*/

public class GMO extends CommonDate2 {
@Override
public String getWhoisAddress() {
return "whois.nic.%2$s";
}

@Override
public String getRegexAvailable() {
return "^The queried object does not exist";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.github.iamdual.whoisparser.templates.common.CommonDate1;

/**
* A WHOIS pattern of Famous Four Media registry.
* A WHOIS pattern of GRS Domains registry.
*
* @author: Ekin Karadeniz <[email protected]>
* @license: Apache-2.0 License
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
package com.github.iamdual.whoisparser.templates.tld;


import com.github.iamdual.whoisparser.templates.common.CommonDate2;
import com.github.iamdual.whoisparser.templates.common.CommonDate1;

/**
* A WHOIS pattern of .shop TLD.
* A WHOIS pattern of .top TLD.
*
* @author: Ekin Karadeniz <[email protected]>
* @license: Apache-2.0 License
*/

public class DotShop extends CommonDate2 {
public class DotTop extends CommonDate1 {
@Override
public String getWhoisAddress() {
return "whois.nic.shop";
return "whois.nic.top";
}

@Override
Expand Down

0 comments on commit 6f6bd5e

Please sign in to comment.