Package com.verisign.epp.codec.registry
Class EPPRegistryContact
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryContact
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents the optional contact object policy information per RFC 5733. The
<registry:contact> element contains the following child elements:
- <registry:contactIdRegEx> - The OPTIONAL regular expression used to validate the <contact:id> element defined in RFC 5733.
-
<registry:sharePolicy> - The OPTIONAL policy for the sharing of
contacts in the server. The possible shared policy values include:
- "perZone" - The contacts are shared across all objects of the zone. There is a single pool of contacts defined for the zone.
- "perSystem" - The contacts are shared across all zones of the system. There is a single pool of contacts across all of the zones supported by the system.
- <registry:intSupport> - A boolean value that defines whether the server supports the internationalized form of postal-address information using the type="int" attribute of RFC 5733.
- <registry:locSupport> - A boolean value that defines whether the server supports the localized form of postal-address information using the type="loc" attribute of RFC 5733.
- <registry:postalInfo> - The postal-address information policy information.
- <registry:maxCheckContact> - The maximum number of contact identifiers (<contact:id> elements) that can be included in a contact check command defined in RFC 5733.
- <registry:authInfoRegex> - The OPTIONAL regular expression used to validate the contact object authorization information value.
- <registry:clientDisclosureSupported> - The OPTIONAL flag that
indicates whether the server supports the client to identify elements that
require exception server-operator handling to allow or restrict disclosure to
third parties defined in RFC 5733. Default value is
false. - <registry:supportedStatus> - The OPTIONAL set of supported contact statuses defined in RFC 5733.
- <registry:transferHoldPeriod> - The OPTIONAL period of time a contact object is in the pending transfer before the transfer is auto approved by the server. The <registry:transferHoldPeriod> element MUST have the "unit" attribute with the possible values of "y" for year, "m" for month, and "d" for day.
- <registry:customData> - The OPTIONAL set of custom data using key, value pairs.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name for the authInfoRegexstatic final StringXML local name for the contactIdRegexstatic final StringXML local name for the clientDisclosureSupportedstatic final StringXML local name for the customDatastatic final StringXML local name for the intSupportstatic final StringXML local name for the locSupportstatic final StringConstant for the status local namestatic final StringXML local name for the maxCheckContactstatic final StringConstant for the contact (prefix and local name)static final StringXML local name for the sharePolicystatic final StringConstant for share policy where contacts are shared across all zones of the system.static final StringConstant for share policy where contacts are shared across all objects of the zone. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryContact.voidDecode theEPPRegistryContactattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryContactinstance.booleanimplements a deepEPPRegistryContactcompare.Gets authInfo regular expression.Gets client disclosure flag.Get info about regular expression used to validate the contact object contact Id value.Gets set of custom data using key, value pairs.Gets flag for internationalization supportGets flag for localization supportGets maximum number of contacts allowed in the check command.Returns the XML namespace associated with theEPPCodecComponent.Gets postal-address information policy information.Gets the policy for the sharing of contacts in the server.Gets a set of supported host statuses defined in RFC 5733.Get the period of time a contact object is in the pending transfer before the transfer is auto approved by the servervoidsetAuthInfoRegex(EPPRegistryRegex authInfoRegex) Gets authInfo regular expression.voidsetClientDisclosureSupported(Boolean clientDisclosureSupported) Sets client disclosure flag.voidsetContactIdRegex(EPPRegistryRegex aContactIdRegex) Set info about regular expression used to validate the contact object contact Id value.voidsetCustomData(EPPRegistryCustomData customData) Set set of custom data using key, value pairs.voidsetIntSupport(Boolean intSupport) Sets flag for internationalization supportvoidsetLocSupport(Boolean locSupport) Sets flag for localization supportvoidsetMaxCheckContact(Integer maxCheckContact) Gets maximum number of contacts allowed in the check command.voidsetPostalInfo(EPPRegistryPostal postalInfo) Sets postal-address information policy information.voidsetSharePolicy(String aSharePolicy) Sets the policy for the sharing of contacts in the server.voidsetSupportedStatus(EPPRegistrySupportedStatus supportedStatus) Sets a set of supported host statuses defined in RFC 5733.voidsetTransferHoldPeriod(EPPRegistryTransferHoldPeriodType transferHoldPeriod) Set the period of time a contact object is in the pending transfer before the transfer is auto approved by the servertoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
TYPE_PER_ZONE
Constant for share policy where contacts are shared across all objects of the zone. There is a single pool of contacts defined for the zone.- See Also:
-
TYPE_PER_SYSTEM
Constant for share policy where contacts are shared across all zones of the system. There is a single pool of contacts across all of the zones supported by the system.- See Also:
-
ELM_LOCALNAME
Constant for the status local name- See Also:
-
ELM_NAME
Constant for the contact (prefix and local name)- See Also:
-
ELM_CONTACT_ID_REGEX
XML local name for the contactIdRegex- See Also:
-
ELM_SHARE_POLICY
XML local name for the sharePolicy- See Also:
-
ELM_INT_SUPPORT
XML local name for the intSupport- See Also:
-
ELM_LOC_SUPPORT
XML local name for the locSupport- See Also:
-
ELM_MAX_CHECK
XML local name for the maxCheckContact- See Also:
-
ELM_AUTH_INFO_REGEX
XML local name for the authInfoRegex- See Also:
-
ELM_CUSTOM_DATA
XML local name for the customData- See Also:
-
ELM_CUSTOM_CLIENT_DISCLOSURE_SUPPORTED
XML local name for the clientDisclosureSupported- See Also:
-
-
Constructor Details
-
EPPRegistryContact
public EPPRegistryContact()
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryContactinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryContactinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryContactinstance.
-
decode
Decode theEPPRegistryContactattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryContactfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryContact.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryContact - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryContactcompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getContactIdRegex
Get info about regular expression used to validate the contact object contact Id value.- Returns:
- instance of
EPPRegistryRegexthat specifies regular expression used to validate the domain object authorization information value
-
setContactIdRegex
Set info about regular expression used to validate the contact object contact Id value.- Parameters:
aContactIdRegex- instance ofEPPRegistryRegexthat specifies regular expression used to validate the contact object contact Id value
-
getIntSupport
Gets flag for internationalization support- Returns:
trueif internationalized form of postal-address is supported.falseotherwise
-
setIntSupport
Sets flag for internationalization support- Parameters:
intSupport-trueif internationalized form of postal-address is supported.falseotherwise
-
getLocSupport
Gets flag for localization support- Returns:
trueif localized form of postal-address is supported.falseotherwise
-
setLocSupport
Sets flag for localization support- Parameters:
locSupport-trueif localized form of postal-address is supported.falseotherwise
-
getMaxCheckContact
Gets maximum number of contacts allowed in the check command.- Returns:
- maximum number of contact identifiers (<contact:id> elements) that can be included in a contact check command defined in RFC 5733
-
setMaxCheckContact
Gets maximum number of contacts allowed in the check command.- Parameters:
maxCheckContact- maximum number of contact identifiers (<contact:id> elements) that can be included in a contact check command defined in RFC 5733
-
getAuthInfoRegex
Gets authInfo regular expression.- Returns:
- regular expression used to validate the contact object authorization information value
-
setAuthInfoRegex
Gets authInfo regular expression.- Parameters:
authInfoRegex- regular expression used to validate the contact object authorization information value
-
getCustomData
Gets set of custom data using key, value pairs.- Returns:
- instance of
EPPRegistryCustomDatathat gives users the ability to specify custom data with key/value pairs
-
setCustomData
Set set of custom data using key, value pairs.- Parameters:
customData- instance ofEPPRegistryCustomDatathat gives users the ability to specify custom data with key/value pairs
-
getPostalInfo
Gets postal-address information policy information.- Returns:
- the postal-address information policy information
-
setPostalInfo
Sets postal-address information policy information.- Parameters:
postalInfo- the postal-address information policy information
-
getClientDisclosureSupported
Gets client disclosure flag.- Returns:
trueif the server supports the client to identify elements that require exception server-operator handling to allow or restrict disclosure to third parties defined in RFC 5733.falseotherwise
-
setClientDisclosureSupported
Sets client disclosure flag.- Parameters:
clientDisclosureSupported-trueif the server supports the client to identify elements that require exception server-operator handling to allow or restrict disclosure to third parties defined in RFC 5733.falseotherwise
-
getSupportedStatus
Gets a set of supported host statuses defined in RFC 5733.- Returns:
- set of supported host statuses defined in RFC 5733
-
setSupportedStatus
Sets a set of supported host statuses defined in RFC 5733.- Parameters:
supportedStatus- set of supported host statuses defined in RFC 5733
-
getTransferHoldPeriod
Get the period of time a contact object is in the pending transfer before the transfer is auto approved by the server- Returns:
- instance of
EPPRegistryTransferHoldPeriodType
-
setTransferHoldPeriod
Set the period of time a contact object is in the pending transfer before the transfer is auto approved by the server- Parameters:
transferHoldPeriod- instance ofEPPRegistryTransferHoldPeriodType
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-