mirror of
https://github.com/google/nomulus.git
synced 2025-07-20 09:46:03 +02:00
The ICANN RDAP Profile (dated 3 December 2015) requires certain boilerplate entries at the top level of the JSON object. Specifically: 1.4.4. The terms of service of the RDAP service MUST be specified in the notices object in the topmost JSON object of the response. The notices object MUST contain a links object [RFC7483]. The links object MUST contain an URL of the contracted party providing the RDAP service. 1.4.10. An RDAP response MUST contain a remarks member with a description containing the string “This response conforms to the RDAP Operational Profile for gTLD Registries and Registrars version 1.0”. 1.5.18. A domain name RDAP response MUST contain a remarks member with a title “EPP Status Codes”, a description containing the string “For more information on domain status codes, please visit https://icann.org/epp” and a links member with the https://icann.org/epp URL. 1.5.20. A domain name RDAP response MUST contain a remarks member with a title “Whois Inaccuracy Complaint Form”, a description containing the string “URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf” and a links member with the https://www.icann.org/wicf URL. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=116389950
74 lines
3 KiB
Java
74 lines
3 KiB
Java
// Copyright 2016 Google Inc. All Rights Reserved.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
package com.google.domain.registry.rdap;
|
|
|
|
import com.google.common.collect.ImmutableList;
|
|
import com.google.common.collect.ImmutableMap;
|
|
|
|
/**
|
|
* This file contains boilerplate required by the ICANN RDAP Profile.
|
|
*
|
|
* @see "https://whois.icann.org/sites/default/files/files/gtld-rdap-operational-profile-draft-03dec15-en.pdf"
|
|
*/
|
|
|
|
public class RdapIcannStandardInformation {
|
|
|
|
/** Required by ICANN RDAP Profile section 1.4.10. */
|
|
private static final ImmutableMap<String, Object> CONFORMANCE_REMARK =
|
|
ImmutableMap.<String, Object>of(
|
|
"description",
|
|
ImmutableList.of(
|
|
"This response conforms to the RDAP Operational Profile for gTLD Registries and"
|
|
+ " Registrars version 1.0"));
|
|
|
|
/** Required by ICANN RDAP Profile section 1.5.18. */
|
|
private static final ImmutableMap<String, Object> DOMAIN_STATUS_CODES_REMARK =
|
|
ImmutableMap.<String, Object> of(
|
|
"title",
|
|
"EPP Status Codes",
|
|
"description",
|
|
ImmutableList.of(
|
|
"For more information on domain status codes, please visit https://icann.org/epp"),
|
|
"links",
|
|
ImmutableList.of(
|
|
ImmutableMap.of(
|
|
"value", "https://icann.org/epp",
|
|
"rel", "alternate",
|
|
"href", "https://icann.org/epp",
|
|
"type", "text/html")));
|
|
|
|
/** Required by ICANN RDAP Profile section 1.5.20. */
|
|
private static final ImmutableMap<String, Object> INACCURACY_COMPLAINT_FORM_REMARK =
|
|
ImmutableMap.<String, Object> of(
|
|
"description",
|
|
ImmutableList.of(
|
|
"URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf"),
|
|
"links",
|
|
ImmutableList.of(
|
|
ImmutableMap.of(
|
|
"value", "https://www.icann.org/wicf",
|
|
"rel", "alternate",
|
|
"href", "https://www.icann.org/wicf",
|
|
"type", "text/html")));
|
|
|
|
/** Boilerplate remarks required by domain responses. */
|
|
static final ImmutableList<ImmutableMap<String, Object>> domainBoilerplateRemarks =
|
|
ImmutableList.of(
|
|
CONFORMANCE_REMARK, DOMAIN_STATUS_CODES_REMARK, INACCURACY_COMPLAINT_FORM_REMARK);
|
|
|
|
/** Boilerplate remarks required by non-domain responses. */
|
|
static final ImmutableList<ImmutableMap<String, Object>> nonDomainBoilerplateRemarks =
|
|
ImmutableList.of(CONFORMANCE_REMARK);
|
|
}
|