RDAP: Add registrar entities to nameserver query results

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=211462672
This commit is contained in:
mountford 2018-09-04 08:42:37 -07:00 committed by jianglai
parent c5e6eae555
commit 8d131a52bd
26 changed files with 2153 additions and 67 deletions

View file

@ -696,6 +696,16 @@ public class RdapJsonFormatter {
jsonBuilder.put("ipAddresses", ipAddressesBuilder.build()); jsonBuilder.put("ipAddresses", ipAddressesBuilder.build());
} }
} }
ImmutableList<ImmutableMap<String, Object>> entities =
addRegistrarEntity(
ImmutableList.of(),
hostResource.getPersistedCurrentSponsorClientId(),
linkBase,
whoisServer,
now);
if (!entities.isEmpty()) {
jsonBuilder.put("entities", entities);
}
if (whoisServer != null) { if (whoisServer != null) {
jsonBuilder.put("port43", whoisServer); jsonBuilder.put("port43", whoisServer);
} }

View file

@ -133,20 +133,36 @@ public class RdapJsonFormatterTest {
ImmutableList.of("Somewhere", "Over the Rainbow"), ImmutableList.of("Somewhere", "Over the Rainbow"),
clock.nowUtc().minusYears(4), clock.nowUtc().minusYears(4),
registrar); registrar);
hostResourceIpv4 = makeAndPersistHostResource( hostResourceIpv4 =
"ns1.cat.みんな", "1.2.3.4", clock.nowUtc().minusYears(1)); makeAndPersistHostResource(
hostResourceIpv6 = makeAndPersistHostResource( "ns1.cat.みんな", "1.2.3.4", null, clock.nowUtc().minusYears(1), "unicoderegistrar");
"ns2.cat.みんな", "bad:f00d:cafe:0:0:0:15:beef", clock.nowUtc().minusYears(2)); hostResourceIpv6 =
hostResourceBoth = makeAndPersistHostResource( makeAndPersistHostResource(
"ns3.cat.みんな", "1.2.3.4", "bad:f00d:cafe:0:0:0:15:beef", clock.nowUtc().minusYears(3)); "ns2.cat.みんな",
hostResourceNoAddresses = makeAndPersistHostResource( "bad:f00d:cafe:0:0:0:15:beef",
"ns4.cat.みんな", null, clock.nowUtc().minusYears(4)); null,
hostResourceNotLinked = makeAndPersistHostResource( clock.nowUtc().minusYears(2),
"ns5.cat.みんな", null, clock.nowUtc().minusYears(5)); "unicoderegistrar");
hostResourceSuperordinatePendingTransfer = persistResource( hostResourceBoth =
makeAndPersistHostResource("ns1.dog.みんな", null, clock.nowUtc().minusYears(6)) makeAndPersistHostResource(
"ns3.cat.みんな",
"1.2.3.4",
"bad:f00d:cafe:0:0:0:15:beef",
clock.nowUtc().minusYears(3),
"unicoderegistrar");
hostResourceNoAddresses =
makeAndPersistHostResource(
"ns4.cat.みんな", null, null, clock.nowUtc().minusYears(4), "unicoderegistrar");
hostResourceNotLinked =
makeAndPersistHostResource(
"ns5.cat.みんな", null, null, clock.nowUtc().minusYears(5), "unicoderegistrar");
hostResourceSuperordinatePendingTransfer =
persistResource(
makeAndPersistHostResource(
"ns1.dog.みんな", null, null, clock.nowUtc().minusYears(6), "unicoderegistrar")
.asBuilder() .asBuilder()
.setSuperordinateDomain(Key.create( .setSuperordinateDomain(
Key.create(
persistResource( persistResource(
makeDomainResource( makeDomainResource(
"dog.みんな", "dog.みんな",
@ -158,12 +174,14 @@ public class RdapJsonFormatterTest {
registrar) registrar)
.asBuilder() .asBuilder()
.addStatusValue(StatusValue.PENDING_TRANSFER) .addStatusValue(StatusValue.PENDING_TRANSFER)
.setTransferData(new TransferData.Builder() .setTransferData(
new TransferData.Builder()
.setTransferStatus(TransferStatus.PENDING) .setTransferStatus(TransferStatus.PENDING)
.setGainingClientId("NewRegistrar") .setGainingClientId("NewRegistrar")
.setTransferRequestTime(clock.nowUtc().minusDays(1)) .setTransferRequestTime(clock.nowUtc().minusDays(1))
.setLosingClientId("TheRegistrar") .setLosingClientId("TheRegistrar")
.setPendingTransferExpirationTime(clock.nowUtc().plusYears(100)) .setPendingTransferExpirationTime(
clock.nowUtc().plusYears(100))
.setTransferredRegistrationExpirationTime( .setTransferredRegistrationExpirationTime(
DateTime.parse("2111-10-08T00:44:59Z")) DateTime.parse("2111-10-08T00:44:59Z"))
.build()) .build())

View file

@ -65,7 +65,61 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities": [
{
"objectClassName": "entity",
"status": [ "active" ],
"handle": "1",
"roles": [ "registrar" ],
"links": [
{
"href": "https://example.com/rdap/entity/1",
"type": "application/rdap+json",
"rel": "self",
"value": "https://example.com/rdap/entity/1"
}
],
"vcardArray" : [
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
[
"adr",
{},
"text",
[
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"
]
],
["tel", {"type":["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"publicIds" : [
{
"type": "IANA Registrar ID",
"identifier":"1"
}
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
}, },
{ {
"status": [ "status": [
@ -98,7 +152,61 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities": [
{
"objectClassName": "entity",
"status": [ "active" ],
"handle": "1",
"roles": [ "registrar" ],
"links": [
{
"href": "https://example.com/rdap/entity/1",
"type": "application/rdap+json",
"rel": "self",
"value": "https://example.com/rdap/entity/1"
}
],
"vcardArray" : [
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
[
"adr",
{},
"text",
[
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"
]
],
["tel", {"type":["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"publicIds" : [
{
"type": "IANA Registrar ID",
"identifier":"1"
}
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
} }
], ],
"ldhName": "%NAME%", "ldhName": "%NAME%",

View file

@ -65,7 +65,61 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities": [
{
"objectClassName": "entity",
"status": [ "active" ],
"handle": "1",
"roles": [ "registrar" ],
"links": [
{
"href": "https://example.com/rdap/entity/1",
"type": "application/rdap+json",
"rel": "self",
"value": "https://example.com/rdap/entity/1"
}
],
"vcardArray" : [
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
[
"adr",
{},
"text",
[
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"
]
],
["tel", {"type":["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"publicIds" : [
{
"type": "IANA Registrar ID",
"identifier":"1"
}
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
}, },
{ {
"status": [ "status": [
@ -98,7 +152,61 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities": [
{
"objectClassName": "entity",
"status": [ "active" ],
"handle": "1",
"roles": [ "registrar" ],
"links": [
{
"href": "https://example.com/rdap/entity/1",
"type": "application/rdap+json",
"rel": "self",
"value": "https://example.com/rdap/entity/1"
}
],
"vcardArray" : [
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
[
"adr",
{},
"text",
[
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"
]
],
["tel", {"type":["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"publicIds" : [
{
"type": "IANA Registrar ID",
"identifier":"1"
}
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
} }
], ],
"ldhName": "%NAME%", "ldhName": "%NAME%",

View file

@ -71,7 +71,61 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities": [
{
"objectClassName": "entity",
"status": [ "active" ],
"handle": "1",
"roles": [ "registrar" ],
"links": [
{
"href": "https://example.com/rdap/entity/1",
"type": "application/rdap+json",
"rel": "self",
"value": "https://example.com/rdap/entity/1"
}
],
"vcardArray" : [
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
[
"adr",
{},
"text",
[
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"
]
],
["tel", {"type":["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"publicIds" : [
{
"type": "IANA Registrar ID",
"identifier":"1"
}
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
}, },
{ {
"status": [ "status": [
@ -103,7 +157,61 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities": [
{
"objectClassName": "entity",
"status": [ "active" ],
"handle": "1",
"roles": [ "registrar" ],
"links": [
{
"href": "https://example.com/rdap/entity/1",
"type": "application/rdap+json",
"rel": "self",
"value": "https://example.com/rdap/entity/1"
}
],
"vcardArray" : [
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
[
"adr",
{},
"text",
[
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"
]
],
["tel", {"type":["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"publicIds" : [
{
"type": "IANA Registrar ID",
"identifier":"1"
}
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
} }
], ],
"ldhName": "%NAME%", "ldhName": "%NAME%",

View file

@ -67,7 +67,61 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities": [
{
"objectClassName": "entity",
"status": [ "active" ],
"handle": "1",
"roles": [ "registrar" ],
"links": [
{
"href": "https://example.com/rdap/entity/1",
"type": "application/rdap+json",
"rel": "self",
"value": "https://example.com/rdap/entity/1"
}
],
"vcardArray" : [
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
[
"adr",
{},
"text",
[
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"
]
],
["tel", {"type":["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"publicIds" : [
{
"type": "IANA Registrar ID",
"identifier":"1"
}
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
}, },
{ {
"status": [ "status": [
@ -100,7 +154,61 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities": [
{
"objectClassName": "entity",
"status": [ "active" ],
"handle": "1",
"roles": [ "registrar" ],
"links": [
{
"href": "https://example.com/rdap/entity/1",
"type": "application/rdap+json",
"rel": "self",
"value": "https://example.com/rdap/entity/1"
}
],
"vcardArray" : [
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
[
"adr",
{},
"text",
[
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"
]
],
["tel", {"type":["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"publicIds" : [
{
"type": "IANA Registrar ID",
"identifier":"1"
}
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
} }
], ],
"entities": [ "entities": [

View file

@ -67,7 +67,61 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities": [
{
"objectClassName": "entity",
"status": [ "active" ],
"handle": "1",
"roles": [ "registrar" ],
"links": [
{
"href": "https://example.com/rdap/entity/1",
"type": "application/rdap+json",
"rel": "self",
"value": "https://example.com/rdap/entity/1"
}
],
"vcardArray" : [
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
[
"adr",
{},
"text",
[
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"
]
],
["tel", {"type":["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"publicIds" : [
{
"type": "IANA Registrar ID",
"identifier":"1"
}
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
}, },
{ {
"status": [ "status": [
@ -100,7 +154,61 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities": [
{
"objectClassName": "entity",
"status": [ "active" ],
"handle": "1",
"roles": [ "registrar" ],
"links": [
{
"href": "https://example.com/rdap/entity/1",
"type": "application/rdap+json",
"rel": "self",
"value": "https://example.com/rdap/entity/1"
}
],
"vcardArray" : [
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
[
"adr",
{},
"text",
[
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"
]
],
["tel", {"type":["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"publicIds" : [
{
"type": "IANA Registrar ID",
"identifier":"1"
}
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
} }
], ],
"entities": [ "entities": [

View file

@ -68,7 +68,61 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities": [
{
"objectClassName": "entity",
"status": [ "active" ],
"handle": "1",
"roles": [ "registrar" ],
"links": [
{
"href": "https://example.com/rdap/entity/1",
"type": "application/rdap+json",
"rel": "self",
"value": "https://example.com/rdap/entity/1"
}
],
"vcardArray" : [
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
[
"adr",
{},
"text",
[
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"
]
],
["tel", {"type":["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"publicIds" : [
{
"type": "IANA Registrar ID",
"identifier":"1"
}
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
}, },
{ {
"status": [ "status": [
@ -103,7 +157,61 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities": [
{
"objectClassName": "entity",
"status": [ "active" ],
"handle": "1",
"roles": [ "registrar" ],
"links": [
{
"href": "https://example.com/rdap/entity/1",
"type": "application/rdap+json",
"rel": "self",
"value": "https://example.com/rdap/entity/1"
}
],
"vcardArray" : [
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
[
"adr",
{},
"text",
[
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"
]
],
["tel", {"type":["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"publicIds" : [
{
"type": "IANA Registrar ID",
"identifier":"1"
}
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
} }
], ],
"ldhName": "%PUNYCODENAME%", "ldhName": "%PUNYCODENAME%",

View file

@ -69,7 +69,61 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities": [
{
"objectClassName": "entity",
"status": [ "active" ],
"handle": "1",
"roles": [ "registrar" ],
"links": [
{
"href": "https://example.com/rdap/entity/1",
"type": "application/rdap+json",
"rel": "self",
"value": "https://example.com/rdap/entity/1"
}
],
"vcardArray" : [
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
[
"adr",
{},
"text",
[
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"
]
],
["tel", {"type":["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"publicIds" : [
{
"type": "IANA Registrar ID",
"identifier":"1"
}
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
}, },
{ {
"status": [ "status": [
@ -103,7 +157,61 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities": [
{
"objectClassName": "entity",
"status": [ "active" ],
"handle": "1",
"roles": [ "registrar" ],
"links": [
{
"href": "https://example.com/rdap/entity/1",
"type": "application/rdap+json",
"rel": "self",
"value": "https://example.com/rdap/entity/1"
}
],
"vcardArray" : [
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
[
"adr",
{},
"text",
[
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"
]
],
["tel", {"type":["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"publicIds" : [
{
"type": "IANA Registrar ID",
"identifier":"1"
}
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
} }
], ],
"entities": [ "entities": [

View file

@ -28,5 +28,56 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "https://example.tld/rdap/entity/1",
"rel" : "self",
"href" : "https://example.tld/rdap/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
} }

View file

@ -23,5 +23,56 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "https://example.tld/rdap/entity/1",
"rel" : "self",
"href" : "https://example.tld/rdap/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
} }

View file

@ -29,5 +29,56 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "https://example.tld/rdap/entity/1",
"rel" : "self",
"href" : "https://example.tld/rdap/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
} }

View file

@ -29,5 +29,56 @@
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
], ],
"objectClassName": "nameserver" "objectClassName": "nameserver",
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "https://example.tld/rdap/entity/1",
"rel" : "self",
"href" : "https://example.tld/rdap/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
} }

View file

@ -27,6 +27,57 @@
], ],
"type": "object truncated due to unexplainable reasons" "type": "object truncated due to unexplainable reasons"
} }
],
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "https://example.tld/rdap/entity/1",
"rel" : "self",
"href" : "https://example.tld/rdap/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
] ]
}, },
{ {
@ -56,6 +107,57 @@
], ],
"type": "object truncated due to unexplainable reasons" "type": "object truncated due to unexplainable reasons"
} }
],
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "https://example.tld/rdap/entity/1",
"rel" : "self",
"href" : "https://example.tld/rdap/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
] ]
} }
], ],

View file

@ -27,6 +27,57 @@
], ],
"type": "object truncated due to unexplainable reasons" "type": "object truncated due to unexplainable reasons"
} }
],
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "https://example.tld/rdap/entity/1",
"rel" : "self",
"href" : "https://example.tld/rdap/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
] ]
}, },
{ {
@ -55,6 +106,57 @@
], ],
"type": "object truncated due to unexplainable reasons" "type": "object truncated due to unexplainable reasons"
} }
],
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "https://example.tld/rdap/entity/1",
"rel" : "self",
"href" : "https://example.tld/rdap/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
] ]
}, },
{ {
@ -83,6 +185,57 @@
], ],
"type": "object truncated due to unexplainable reasons" "type": "object truncated due to unexplainable reasons"
} }
],
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "https://example.tld/rdap/entity/1",
"rel" : "self",
"href" : "https://example.tld/rdap/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
] ]
}, },
{ {
@ -111,6 +264,57 @@
], ],
"type": "object truncated due to unexplainable reasons" "type": "object truncated due to unexplainable reasons"
} }
],
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "https://example.tld/rdap/entity/1",
"rel" : "self",
"href" : "https://example.tld/rdap/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
] ]
} }
], ],

View file

@ -27,6 +27,57 @@
], ],
"type": "object truncated due to unexplainable reasons" "type": "object truncated due to unexplainable reasons"
} }
],
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "https://example.tld/rdap/entity/1",
"rel" : "self",
"href" : "https://example.tld/rdap/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
] ]
}, },
{ {
@ -55,6 +106,57 @@
], ],
"type": "object truncated due to unexplainable reasons" "type": "object truncated due to unexplainable reasons"
} }
],
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "https://example.tld/rdap/entity/1",
"rel" : "self",
"href" : "https://example.tld/rdap/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
] ]
}, },
{ {
@ -83,6 +185,57 @@
], ],
"type": "object truncated due to unexplainable reasons" "type": "object truncated due to unexplainable reasons"
} }
],
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "https://example.tld/rdap/entity/1",
"rel" : "self",
"href" : "https://example.tld/rdap/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
] ]
}, },
{ {
@ -111,6 +264,57 @@
], ],
"type": "object truncated due to unexplainable reasons" "type": "object truncated due to unexplainable reasons"
} }
],
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "https://example.tld/rdap/entity/1",
"rel" : "self",
"href" : "https://example.tld/rdap/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "The Registrar"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard",
"Williamsburg",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2223334444"],
["email", {}, "text", "new.registrar@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
] ]
} }
], ],

View file

@ -69,7 +69,59 @@
"ipAddresses" : "ipAddresses" :
{ {
"v4" : ["1.2.3.4"] "v4" : ["1.2.3.4"]
},
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "http://myserver.example.com/entity/1",
"rel" : "self",
"href" : "http://myserver.example.com/entity/1",
"type" : "application/rdap+json"
} }
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "みんな"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard <script>",
"Williamsburg <script>",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2125551212"],
["tel", {"type" : ["fax"]}, "uri", "tel:+1.2125551213"],
["email", {}, "text", "contact-us@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
}, },
{ {
"objectClassName" : "nameserver", "objectClassName" : "nameserver",
@ -100,7 +152,59 @@
"ipAddresses" : "ipAddresses" :
{ {
"v6" : ["bad:f00d:cafe::15:beef"] "v6" : ["bad:f00d:cafe::15:beef"]
},
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "http://myserver.example.com/entity/1",
"rel" : "self",
"href" : "http://myserver.example.com/entity/1",
"type" : "application/rdap+json"
} }
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "みんな"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard <script>",
"Williamsburg <script>",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2125551212"],
["tel", {"type" : ["fax"]}, "uri", "tel:+1.2125551213"],
["email", {}, "text", "contact-us@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
} }
], ],
"entities" : "entities" :

View file

@ -69,7 +69,59 @@
"ipAddresses" : "ipAddresses" :
{ {
"v4" : ["1.2.3.4"] "v4" : ["1.2.3.4"]
},
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "http://myserver.example.com/entity/1",
"rel" : "self",
"href" : "http://myserver.example.com/entity/1",
"type" : "application/rdap+json"
} }
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "みんな"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard <script>",
"Williamsburg <script>",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2125551212"],
["tel", {"type" : ["fax"]}, "uri", "tel:+1.2125551213"],
["email", {}, "text", "contact-us@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
}, },
{ {
"objectClassName" : "nameserver", "objectClassName" : "nameserver",
@ -100,7 +152,59 @@
"ipAddresses" : "ipAddresses" :
{ {
"v6" : ["bad:f00d:cafe::15:beef"] "v6" : ["bad:f00d:cafe::15:beef"]
},
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "http://myserver.example.com/entity/1",
"rel" : "self",
"href" : "http://myserver.example.com/entity/1",
"type" : "application/rdap+json"
} }
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "みんな"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard <script>",
"Williamsburg <script>",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2125551212"],
["tel", {"type" : ["fax"]}, "uri", "tel:+1.2125551213"],
["email", {}, "text", "contact-us@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
} }
], ],
"entities": [ "entities": [

View file

@ -28,5 +28,57 @@
{ {
"v4" : ["1.2.3.4"], "v4" : ["1.2.3.4"],
"v6" : ["bad:f00d:cafe::15:beef"] "v6" : ["bad:f00d:cafe::15:beef"]
},
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "http://myserver.example.com/entity/1",
"rel" : "self",
"href" : "http://myserver.example.com/entity/1",
"type" : "application/rdap+json"
} }
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "みんな"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard <script>",
"Williamsburg <script>",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2125551212"],
["tel", {"type" : ["fax"]}, "uri", "tel:+1.2125551213"],
["email", {}, "text", "contact-us@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
} }

View file

@ -18,6 +18,56 @@
"v4" : ["1.2.3.4"], "v4" : ["1.2.3.4"],
"v6" : ["bad:f00d:cafe::15:beef"] "v6" : ["bad:f00d:cafe::15:beef"]
}, },
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
],
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "http://myserver.example.com/entity/1",
"rel" : "self",
"href" : "http://myserver.example.com/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "みんな"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard <script>",
"Williamsburg <script>",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2125551212"],
["tel", {"type" : ["fax"]}, "uri", "tel:+1.2125551213"],
["email", {}, "text", "contact-us@example.com"]
]
],
"remarks": [ "remarks": [
{ {
"title": "Incomplete Data", "title": "Incomplete Data",
@ -28,3 +78,5 @@
} }
] ]
} }
]
}

View file

@ -27,5 +27,57 @@
"ipAddresses" : "ipAddresses" :
{ {
"v4" : ["1.2.3.4"] "v4" : ["1.2.3.4"]
},
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "http://myserver.example.com/entity/1",
"rel" : "self",
"href" : "http://myserver.example.com/entity/1",
"type" : "application/rdap+json"
} }
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "みんな"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard <script>",
"Williamsburg <script>",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2125551212"],
["tel", {"type" : ["fax"]}, "uri", "tel:+1.2125551213"],
["email", {}, "text", "contact-us@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
} }

View file

@ -27,5 +27,57 @@
"ipAddresses" : "ipAddresses" :
{ {
"v6" : ["bad:f00d:cafe::15:beef"] "v6" : ["bad:f00d:cafe::15:beef"]
},
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "http://myserver.example.com/entity/1",
"rel" : "self",
"href" : "http://myserver.example.com/entity/1",
"type" : "application/rdap+json"
} }
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "みんな"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard <script>",
"Williamsburg <script>",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2125551212"],
["tel", {"type" : ["fax"]}, "uri", "tel:+1.2125551213"],
["email", {}, "text", "contact-us@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
]
} }

View file

@ -23,5 +23,57 @@
"eventAction": "last update of RDAP database", "eventAction": "last update of RDAP database",
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
],
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "http://myserver.example.com/entity/1",
"rel" : "self",
"href" : "http://myserver.example.com/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "みんな"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard <script>",
"Williamsburg <script>",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2125551212"],
["tel", {"type" : ["fax"]}, "uri", "tel:+1.2125551213"],
["email", {}, "text", "contact-us@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
] ]
} }

View file

@ -23,5 +23,57 @@
"eventAction": "last update of RDAP database", "eventAction": "last update of RDAP database",
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
],
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "http://myserver.example.com/entity/1",
"rel" : "self",
"href" : "http://myserver.example.com/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "みんな"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard <script>",
"Williamsburg <script>",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2125551212"],
["tel", {"type" : ["fax"]}, "uri", "tel:+1.2125551213"],
["email", {}, "text", "contact-us@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
] ]
} }

View file

@ -23,5 +23,57 @@
"eventAction": "last update of RDAP database", "eventAction": "last update of RDAP database",
"eventDate": "2000-01-01T00:00:00.000Z" "eventDate": "2000-01-01T00:00:00.000Z"
} }
],
"entities" : [
{
"objectClassName" : "entity",
"handle" : "1",
"status" : ["active"],
"roles" : ["registrar"],
"links" :
[
{
"value" : "http://myserver.example.com/entity/1",
"rel" : "self",
"href" : "http://myserver.example.com/entity/1",
"type" : "application/rdap+json"
}
],
"publicIds" :
[
{
"type" : "IANA Registrar ID",
"identifier" : "1"
}
],
"vcardArray" :
[
"vcard",
[
["version", {}, "text", "4.0"],
["fn", {}, "text", "みんな"],
["adr", {}, "text", [
"",
"",
"123 Example Boulevard <script>",
"Williamsburg <script>",
"NY",
"11211",
"United States"]],
["tel", {"type" : ["voice"]}, "uri", "tel:+1.2125551212"],
["tel", {"type" : ["fax"]}, "uri", "tel:+1.2125551213"],
["email", {}, "text", "contact-us@example.com"]
]
],
"remarks": [
{
"title": "Incomplete Data",
"description": [
"Summary data only. For complete data, send a specific query for the object."
],
"type": "object truncated due to unexplainable reasons"
}
]
}
] ]
} }

View file

@ -126,11 +126,17 @@ public final class FullFieldsTestEntityHelper {
public static HostResource makeHostResource( public static HostResource makeHostResource(
String fqhn, @Nullable String ip1, @Nullable String ip2) { String fqhn, @Nullable String ip1, @Nullable String ip2) {
HostResource.Builder builder = new HostResource.Builder() return makeHostResource(fqhn, ip1, ip2, "TheRegistrar");
}
public static HostResource makeHostResource(
String fqhn, @Nullable String ip1, @Nullable String ip2, String registrarClientId) {
HostResource.Builder builder =
new HostResource.Builder()
.setRepoId(generateNewContactHostRoid()) .setRepoId(generateNewContactHostRoid())
.setFullyQualifiedHostName(Idn.toASCII(fqhn)) .setFullyQualifiedHostName(Idn.toASCII(fqhn))
.setCreationTimeForTest(DateTime.parse("2000-10-08T00:45:00Z")) .setCreationTimeForTest(DateTime.parse("2000-10-08T00:45:00Z"))
.setPersistedCurrentSponsorClientId("TheRegistrar"); .setPersistedCurrentSponsorClientId(registrarClientId);
if ((ip1 != null) || (ip2 != null)) { if ((ip1 != null) || (ip2 != null)) {
ImmutableSet.Builder<InetAddress> ipBuilder = new ImmutableSet.Builder<>(); ImmutableSet.Builder<InetAddress> ipBuilder = new ImmutableSet.Builder<>();
if (ip1 != null) { if (ip1 != null) {
@ -151,7 +157,17 @@ public final class FullFieldsTestEntityHelper {
public static HostResource makeAndPersistHostResource( public static HostResource makeAndPersistHostResource(
String fqhn, @Nullable String ip1, @Nullable String ip2, @Nullable DateTime creationTime) { String fqhn, @Nullable String ip1, @Nullable String ip2, @Nullable DateTime creationTime) {
HostResource hostResource = persistResource(makeHostResource(fqhn, ip1, ip2)); return makeAndPersistHostResource(fqhn, ip1, ip2, creationTime, "TheRegistrar");
}
public static HostResource makeAndPersistHostResource(
String fqhn,
@Nullable String ip1,
@Nullable String ip2,
@Nullable DateTime creationTime,
String registrarClientId) {
HostResource hostResource =
persistResource(makeHostResource(fqhn, ip1, ip2, registrarClientId));
if (creationTime != null) { if (creationTime != null) {
persistResource(makeHistoryEntry( persistResource(makeHistoryEntry(
hostResource, HistoryEntry.Type.HOST_CREATE, null, "created", creationTime)); hostResource, HistoryEntry.Type.HOST_CREATE, null, "created", creationTime));