Package com.verisign.epp.codec.registry
Class EPPRegistryZoneInfo
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryZoneInfo
- All Implemented Interfaces:
EPPCodecComponent,EPPRegistryZoneInterface,Serializable,Cloneable
public class EPPRegistryZoneInfo
extends Object
implements EPPCodecComponent, EPPRegistryZoneInterface
Represents the detailed information of a zone object. Upon receiving an
<info> command, with a <registry:name> element in it, the server
puts a <registry:zone> element in the response.
Each element in the list contains the following info:
Each element in the list contains the following info:
- <registry:name> - fully qualified name of the zone object. Zone
name can be at any level (top level, second level, third level, etc.). Use
getName()andsetName(String)to get and set the element. - <registry:group> - An OPTIONAL server defined grouping of zones.
Zone in one group share similar features and policies. Use
getGroup()andsetGroup(String)to get and set the element. - <registry:subProduct> - An OPTIONAL sub-product identifier used for
the zone and used as the value of the <namestoreExt:subProduct> element of
the NameStore Extension. Use
getSubProduct()andsetSubProduct(String)to get and set the element. - <registry:family> - An OPTIONAL definition of the family of related
zones, where there can be a primary and alternate zone relationship on a per
domain basis. The primary domain name is the first one created and the last
one deleted in the family of domain names. The alternate domain names can be
enabled / disabled when the primary domain name exists. Use
getRelated()andsetRelated(EPPRegistryRelated)to get and set the element. - <services> - Zero or more elements that defines a phase of the zone
based on the phases defined in the Launch Phase Mapping for the Extensible
Provisioning Protocol (EPP). Use
getPhases()andsetPhases(List)to get and set the element. UseaddPhase(EPPRegistryPhase)to append on phase to an existing phase list. - <registry:services> - The OPTIONAL EPP namespace URIs of the
objects and object extensions supported by the server based on RFC 5730. Use
getServices()andsetServices(EPPRegistryServices)to get and set the element. - <registry:slaInfo> - The OPTIONAL Service-Level Agreement (SLA)
information for the zone. The SLA information CAN include availability as
well as response time SLA's. Use
getSlaInfo()andsetSlaInfo(EPPRegistrySLAInfo)to get and set the element. - <registry:crID> - The OPTIONAL identifier of the client that
created the zone. Use
getCreatedBy()andsetCreatedBy(String)to get and set the element. - <registry:crDate> - The date and time of zone object creation. Use
getCreatedDate()andsetCreatedDate(Date)to get and set the element. - <registry:upID> - The OPTIONAL identifier of the client that last
updated the zone object.This element MUST NOT be present if the zone has
never been modified. Use
getLastUpdatedBy()andsetLastUpdatedBy(String)to get and set the element. - <registry:upDate> - The OPTIONAL date and time of the most recent
zone object modification. This element MUST NOT be present if the zone object
has never been modified. Use
getLastUpdatedDate()andsetLastUpdatedDate(Date)to get and set the element. - <registry:domain> - The domain name object policy information per
RFC 5731. Use
getDomain()andsetDomain(EPPRegistryDomain)to get and set the element. - <registry:host> - The host object policy information per RFC 5732.
Use
getHost()andsetHost(EPPRegistryHost)to get and set the element. - <registry:contact> - The contact object policy information per RFC
5733. Use
getContact()andsetContact(EPPRegistryContact)to get and set the element.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPRegistryZoneInfo(String name) Construct anEPPRegistryZoneInfoinstance using a zone name.EPPRegistryZoneInfo(String name, String aCreatedBy, Date aCreatedDate) Construct anEPPRegistryZoneInfoinstance using a zone name, a create id and a create date. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPhase(EPPRegistryPhase phase) Append a zone phase to existingListof phases.clone()CloneEPPRegistryZoneInfo.voidDecode theEPPRegistryZoneInfoattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryZoneInfoinstance.booleanimplements a deepEPPRegistryZoneInfocompare.Get the contact object policy information.Get the identifier of the client that created the zone.Get zone creation date.Get the domain name object policy information.getGroup()Get zone group.getHost()Get the host object policy information.Get the identifier of the client that last updated the zone object.Get the zone last updated date.getName()Get name of zone.Returns the XML namespace associated with theEPPCodecComponent.GetListof zone phases.Gets the related zones.Get services supported by the zoneGet the Service-Level Agreement (SLA) information for the zone.Get the sub-product identifier used for the zone.booleanIs related defined?voidsetContact(EPPRegistryContact contact) Set the contact object policy information.voidsetCreatedBy(String createdBy) Set the identifier of the client that created the zonevoidsetCreatedDate(Date createdDate) set zone create date.voidsetDomain(EPPRegistryDomain domain) Set the domain name object policy information.voidSet zone group.voidsetHost(EPPRegistryHost host) Set the host object policy information.voidsetLastUpdatedBy(String lastUpdatedBy) Set the identifier of the client that last updated the zone object.voidsetLastUpdatedDate(Date lastUpdatedDate) Set the zone last updated date.voidSet name of zone.voidSetListof zone phases.voidsetRelated(EPPRegistryRelated aRelated) Sets the related zones.voidsetServices(EPPRegistryServices services) Set services supported by the zonevoidsetSlaInfo(EPPRegistrySLAInfo slaInfo) Set the Service-Level Agreement (SLA) information for the zone.voidsetSubProduct(String subProduct) Set the sub-product identifier used for the zone.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Constructor Details
-
EPPRegistryZoneInfo
public EPPRegistryZoneInfo()Default constructor. All non list attributes are initialized tonull.phasesis initialized to emptyList.
Please make sure to set the required attributes before calling theencode(Document)method: -
EPPRegistryZoneInfo
Construct anEPPRegistryZoneInfoinstance using a zone name.
All other non list attributes are initialized tonull.phasesis initialized to emptyList.
Please make sure to set the required attributes before calling theencode(Document)method:- Parameters:
name- fully qualified name of the zone object
-
EPPRegistryZoneInfo
Construct anEPPRegistryZoneInfoinstance using a zone name, a create id and a create date.
All other non list attributes are initialized tonull.phasesis initialized to emptyList.
Please make sure to set the required attributes before calling theencode(Document)method:- Parameters:
name- fully qualified name of the zoneaCreatedBy- identifier of the client that created the zoneaCreatedDate- creation date of the zone
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryZoneInfoinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryZoneInfoinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryZoneInfoinstance.
-
decode
Decode theEPPRegistryZoneInfoattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryZoneInfofrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
implements a deepEPPRegistryZoneInfocompare. -
clone
CloneEPPRegistryZoneInfo.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryZoneInfo - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getName
Get name of zone.- Returns:
- fully qualified zone name
-
setName
Set name of zone.- Parameters:
name- fully qualified zone name
-
getRelated
Gets the related zones.- Returns:
- Related zones if defined;
nullotherwise.
-
hasRelated
public boolean hasRelated()Is related defined?- Returns:
trueif related is defined;falseotherwise.
-
setRelated
Sets the related zones.- Parameters:
aRelated- Related zones
-
getPhases
GetListof zone phases.- Returns:
- List of zone phases defined in the "Launch Phase Mapping for the Extensible Provisioning Protocol (EPP)"
-
setPhases
SetListof zone phases.- Parameters:
phases- List of zone phases defined in the "Launch Phase Mapping for the Extensible Provisioning Protocol (EPP)"
-
addPhase
Append a zone phase to existingListof phases.- Parameters:
phase- define attributes of one phase
-
getServices
Get services supported by the zone- Returns:
- instance of
EPPRegistryServicesthat lists namespace URIs of the objects and object extensions supported by the zone
-
setServices
Set services supported by the zone- Parameters:
services- instance ofEPPRegistryServicesthat lists namespace URIs of the objects and object extensions supported by the zone
-
getCreatedBy
Get the identifier of the client that created the zone.- Returns:
- the identifier of the client that created the zone
-
setCreatedBy
Set the identifier of the client that created the zone- Parameters:
createdBy- the identifier of the client that created the zone
-
getCreatedDate
Get zone creation date.- Returns:
- zone creation date
-
setCreatedDate
set zone create date.- Parameters:
createdDate- zone creation date
-
getLastUpdatedBy
Get the identifier of the client that last updated the zone object.- Returns:
- the identifier of the client that last updated the zone object, or
nullif the zone object has never been updated.
-
setLastUpdatedBy
Set the identifier of the client that last updated the zone object.- Parameters:
lastUpdatedBy- the identifier of the client that last updated the zone object
-
getLastUpdatedDate
Get the zone last updated date.- Returns:
- the last updated date of the zone object, or
nullif the zone has never been updated.
-
setLastUpdatedDate
Set the zone last updated date.- Parameters:
lastUpdatedDate- the last updated date of the zone object
-
getDomain
Get the domain name object policy information.- Returns:
- the domain name object policy information per RFC 5731
-
setDomain
Set the domain name object policy information.- Parameters:
domain- the domain name object policy information per RFC 5731
-
getHost
Get the host object policy information.- Returns:
- the host object policy information per RFC 5732
-
setHost
Set the host object policy information.- Parameters:
host- the host object policy information per RFC 5732
-
getContact
Get the contact object policy information.- Returns:
- the contact object policy information per RFC 5733.
-
setContact
Set the contact object policy information.- Parameters:
contact- the contact object policy information per RFC 5733.
-
getSlaInfo
Get the Service-Level Agreement (SLA) information for the zone.- Returns:
- the Service-Level Agreement (SLA) information for the zone.
-
setSlaInfo
Set the Service-Level Agreement (SLA) information for the zone.- Parameters:
slaInfo- the Service-Level Agreement (SLA) information for the zone.
-
getSubProduct
Get the sub-product identifier used for the zone.- Returns:
- sub-product identifier used for the zone and used as the value of the <namestoreExt:subProduct> element of the NameStore Extension
-
setSubProduct
Set the sub-product identifier used for the zone.- Parameters:
subProduct- sub-product identifier used for the zone and used as the value of the <namestoreExt:subProduct> element of the NameStore Extension
-
getGroup
Get zone group.- Returns:
- server defined grouping of zones that the zone belongs to with similar features and policies
-
setGroup
Set zone group.- Parameters:
group- server defined grouping of zones that the zone belongs to with similar features and policies
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-