Package com.verisign.epp.codec.registry
Class EPPRegistryContact
- java.lang.Object
-
- com.verisign.epp.codec.registry.EPPRegistryContact
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryContact extends java.lang.Object implements EPPCodecComponent
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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_AUTH_INFO_REGEXXML local name for the authInfoRegexstatic java.lang.StringELM_CONTACT_ID_REGEXXML local name for the contactIdRegexstatic java.lang.StringELM_CUSTOM_CLIENT_DISCLOSURE_SUPPORTEDXML local name for the clientDisclosureSupportedstatic java.lang.StringELM_CUSTOM_DATAXML local name for the customDatastatic java.lang.StringELM_INT_SUPPORTXML local name for the intSupportstatic java.lang.StringELM_LOC_SUPPORTXML local name for the locSupportstatic java.lang.StringELM_LOCALNAMEConstant for the status local namestatic java.lang.StringELM_MAX_CHECKXML local name for the maxCheckContactstatic java.lang.StringELM_NAMEConstant for the contact (prefix and local name)static java.lang.StringELM_SHARE_POLICYXML local name for the sharePolicystatic java.lang.StringTYPE_PER_SYSTEMConstant for share policy where contacts are shared across all zones of the system.static java.lang.StringTYPE_PER_ZONEConstant for share policy where contacts are shared across all objects of the zone.
-
Constructor Summary
Constructors Constructor Description EPPRegistryContact()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryContact.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryContactattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryContactinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryContactcompare.EPPRegistryRegexgetAuthInfoRegex()Gets authInfo regular expression.java.lang.BooleangetClientDisclosureSupported()Gets client disclosure flag.EPPRegistryRegexgetContactIdRegex()Get info about regular expression used to validate the contact object contact Id value.EPPRegistryCustomDatagetCustomData()Gets set of custom data using key, value pairs.java.lang.BooleangetIntSupport()Gets flag for internationalization supportjava.lang.BooleangetLocSupport()Gets flag for localization supportjava.lang.IntegergetMaxCheckContact()Gets maximum number of contacts allowed in the check command.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.EPPRegistryPostalgetPostalInfo()Gets postal-address information policy information.java.lang.StringgetSharePolicy()Gets the policy for the sharing of contacts in the server.EPPRegistrySupportedStatusgetSupportedStatus()Gets a set of supported host statuses defined in RFC 5733.EPPRegistryTransferHoldPeriodTypegetTransferHoldPeriod()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(java.lang.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(java.lang.Boolean intSupport)Sets flag for internationalization supportvoidsetLocSupport(java.lang.Boolean locSupport)Sets flag for localization supportvoidsetMaxCheckContact(java.lang.Integer maxCheckContact)Gets maximum number of contacts allowed in the check command.voidsetPostalInfo(EPPRegistryPostal postalInfo)Sets postal-address information policy information.voidsetSharePolicy(java.lang.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 serverjava.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
TYPE_PER_ZONE
public static final java.lang.String 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:
- Constant Field Values
-
TYPE_PER_SYSTEM
public static final java.lang.String 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:
- Constant Field Values
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
Constant for the status local name- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the contact (prefix and local name)- See Also:
- Constant Field Values
-
ELM_CONTACT_ID_REGEX
public static final java.lang.String ELM_CONTACT_ID_REGEX
XML local name for the contactIdRegex- See Also:
- Constant Field Values
-
ELM_SHARE_POLICY
public static final java.lang.String ELM_SHARE_POLICY
XML local name for the sharePolicy- See Also:
- Constant Field Values
-
ELM_INT_SUPPORT
public static final java.lang.String ELM_INT_SUPPORT
XML local name for the intSupport- See Also:
- Constant Field Values
-
ELM_LOC_SUPPORT
public static final java.lang.String ELM_LOC_SUPPORT
XML local name for the locSupport- See Also:
- Constant Field Values
-
ELM_MAX_CHECK
public static final java.lang.String ELM_MAX_CHECK
XML local name for the maxCheckContact- See Also:
- Constant Field Values
-
ELM_AUTH_INFO_REGEX
public static final java.lang.String ELM_AUTH_INFO_REGEX
XML local name for the authInfoRegex- See Also:
- Constant Field Values
-
ELM_CUSTOM_DATA
public static final java.lang.String ELM_CUSTOM_DATA
XML local name for the customData- See Also:
- Constant Field Values
-
ELM_CUSTOM_CLIENT_DISCLOSURE_SUPPORTED
public static final java.lang.String ELM_CUSTOM_CLIENT_DISCLOSURE_SUPPORTED
XML local name for the clientDisclosureSupported- See Also:
- Constant Field Values
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryContact.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryContact - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryContactcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryContactinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getContactIdRegex
public EPPRegistryRegex 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
public void setContactIdRegex(EPPRegistryRegex aContactIdRegex)
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
-
getSharePolicy
public java.lang.String getSharePolicy()
Gets the policy for the sharing of contacts in the server.- Returns:
TYPE_PER_ZONEto share contacts per zone,TYPE_PER_SYSTEMto share contact for all zones of the system if defined;nullotherwise.
-
setSharePolicy
public void setSharePolicy(java.lang.String aSharePolicy)
Sets the policy for the sharing of contacts in the server.- Parameters:
aSharePolicy-TYPE_PER_ZONEto share contacts per zone orTYPE_PER_SYSTEMto share contact for all zones of the system
-
getIntSupport
public java.lang.Boolean getIntSupport()
Gets flag for internationalization support- Returns:
trueif internationalized form of postal-address is supported.falseotherwise
-
setIntSupport
public void setIntSupport(java.lang.Boolean intSupport)
Sets flag for internationalization support- Parameters:
intSupport-trueif internationalized form of postal-address is supported.falseotherwise
-
getLocSupport
public java.lang.Boolean getLocSupport()
Gets flag for localization support- Returns:
trueif localized form of postal-address is supported.falseotherwise
-
setLocSupport
public void setLocSupport(java.lang.Boolean locSupport)
Sets flag for localization support- Parameters:
locSupport-trueif localized form of postal-address is supported.falseotherwise
-
getMaxCheckContact
public java.lang.Integer 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
public void setMaxCheckContact(java.lang.Integer maxCheckContact)
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
public EPPRegistryRegex getAuthInfoRegex()
Gets authInfo regular expression.- Returns:
- regular expression used to validate the contact object authorization information value
-
setAuthInfoRegex
public void setAuthInfoRegex(EPPRegistryRegex authInfoRegex)
Gets authInfo regular expression.- Parameters:
authInfoRegex- regular expression used to validate the contact object authorization information value
-
getCustomData
public EPPRegistryCustomData 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
public void setCustomData(EPPRegistryCustomData customData)
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
public EPPRegistryPostal getPostalInfo()
Gets postal-address information policy information.- Returns:
- the postal-address information policy information
-
setPostalInfo
public void setPostalInfo(EPPRegistryPostal postalInfo)
Sets postal-address information policy information.- Parameters:
postalInfo- the postal-address information policy information
-
getClientDisclosureSupported
public java.lang.Boolean 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
public void setClientDisclosureSupported(java.lang.Boolean clientDisclosureSupported)
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
public EPPRegistrySupportedStatus getSupportedStatus()
Gets a set of supported host statuses defined in RFC 5733.- Returns:
- set of supported host statuses defined in RFC 5733
-
setSupportedStatus
public void setSupportedStatus(EPPRegistrySupportedStatus supportedStatus)
Sets a set of supported host statuses defined in RFC 5733.- Parameters:
supportedStatus- set of supported host statuses defined in RFC 5733
-
getTransferHoldPeriod
public EPPRegistryTransferHoldPeriodType 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
public void setTransferHoldPeriod(EPPRegistryTransferHoldPeriodType transferHoldPeriod)
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
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-