Package com.verisign.epp.codec.domain
Class EPPDomainInfoResp
java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.domain.EPPDomainInfoResp
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP Domain <domain:infData> response to an
EPPDomainInfoCmd. When an <info> command has been processed
successfully, the EPP <resData> element MUST contain a child
<domain:infData> element that identifies the domain namespace and the
location of the domain schema. The <domain:infData> element contains
the following child elements: - A <domain:name> element that contains the fully qualified name of
the domain. Use
getNameandsetNameto get and set the element. - A <domain:roid> element that contains the Repository Object
IDentifier assigned to the domain object when the object was created. Use
getRoidandsetRoidto get and set the element. - One or more <domain:status> elements that contain the current
status descriptors associated with the domain. See the
EPPDomainStatusdescription for a list of valid status values. UsegetStatusandsetStatusto get and set the elements. - If supported by the server, one <domain:registrant> element and one
or more <domain:contact> elements that contain identifiers for the
human or organizational social information objects associated with the domain
object. Use
getContactsandsetContactsto get and set the elements. Contacts should only be specified if the Contact Mapping is supported. - Zero or more <domain:ns> elements that contain the fully qualified
names of the name server objects associated with the domain object. Use
getNsandsetNsto get and set the elements. - Zero or more <domain:host> elements that contain the fully
qualified names of the host objects created under this superordinate domain
object. Use
getHostandsetHostto get and set the elements. - A <domain:clID> element that contains the identifier of the
sponsoring client. Use
getClientIdandsetClientIdto get and set the element. - A <domain:crID> element that contains the identifier of the client
that created the domain name. Use
getCreatedByandsetCreatedByto get and set the element. - A <domain:crDate> element that contains the date and time of domain
creation. Use
getCreatedDateandsetCreatedDateto get and set the element. - A <domain:exDate> element that contains the date and time
identifying the end of the domain's registration period. Use
getExpirationDateandsetExpirationDateto get and set the element. - A <domain:upID> element that contains the identifier of the client
that last updated the domain name. This element MUST NOT be present if the
domain has never been modified. Use
getLastUpdatedByandsetLastUpdatedByto get and set the element. - A <domain:upDate> element that contains the date and time of the
most recent domain modification. This element MUST NOT be present if the
domain has never been modified. Use
getLastUpdatedDateandsetLastUpdatedDateto get and set the element. - A <domain:trDate> elements that contains the date and time of the
most recent successful transfer. This element MUST NOT be provided if the
domain has never been transferred. Use
getLastTransferDateandsetLastTransferDateto get and set the element. - An OPTIONAL <domain:authInfo> element that contains authorization
information associated with the domain object. This element MUST NOT be
provided if the querying client is not the current sponsoring client. Use
getAuthInfoandsetAuthInfoto get and set the elements.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAdmin contact type constant.static final StringBilling contact type constant.static final StringTech contact type constant.static final StringXML local name forEPPDomainInfoResp.static final StringXML Element Name ofEPPDomainInfoResproot element.Fields inherited from class com.verisign.epp.codec.gen.EPPResponse
ELM_EXTENSION, ELM_MESSAGE_QUEUE, ELM_MESSAGE_QUEUE_QDATE, ELM_RESPONSE_DATA, extensions, TRANSFER_CLIENT_APPROVED, TRANSFER_CLIENT_CANCELLED, TRANSFER_CLIENT_REJECTED, TRANSFER_PENDING, TRANSFER_SERVER_APPROVED, TRANSFER_SERVER_CANCELLED -
Constructor Summary
ConstructorsConstructorDescriptionEPPDomainInfoRespdefault constructor.EPPDomainInfoResp(EPPTransId aTransId, String aRoid, String aName, String aClientId, Vector<EPPDomainStatus> aStatuses, String aCreatedBy, Date aCreatedDate, EPPAuthInfo aAuthInfo) EPPDomainInfoRespconstructor that takes the required attribute values as parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContact(EPPDomainContact aContact) Adds a contact to the list of contacts.voidAdds a subordinate host to the list of subordinate hosts.voidAdds a name server object name to the list of name servers.voidaddNsAttr(EPPHostAttr aNsAttr) Adds a name server attribute to the list of name server attributes.voidaddStatus(EPPDomainStatus aStatus) Adds a status to the list of statuses.clone()CloneEPPDomainInfoResp.protected voidDecode theEPPDomainInfoRespattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPDomainInfoRespinstance.booleanCompare an instance ofEPPDomainInfoRespwith this instance.Gets the admin contact if defined.Get authorization informationGets the billing contact if defined.Gets the domain owning Client Id.getContactByType(String aType) Gets a contact by type using one of theCONTACT_TYPEconstants.Gets the ContactsGets Client Id that created the domain.Gets the date and time the domain was created.Gets the expiration date and time of the domain.getHosts()Gets the fully qualified names of the subordinate host objects that exist under the superordinate domain object.Gets the date and time of the last successful domain transfer.Gets the Client Id that last updated the domain.Gets the date and time of the last domain update.getName()Gets the domain nameGets the EPP command namespace associated withEPPDomainInfoResp.Gets the name server attributes.getNses()Gets the name servers.Get registrantgetRoid()Get roid.Get the current associated statusesGets the tech contact if defined.getType()Gets the EPP response type associated withEPPDomainInfoResp.booleanHas the admin contact been set?booleanHas the authorization information been set?booleanHas the billing contact been set?booleanIs at least one contact defined?booleanhasHosts()Is at least one subordinate host object defined?booleanHas the last transfer date been set?booleanHas the last updated by been set?booleanHas the last updated date been set?booleanIs at least one name server attribute defined?booleanhasNses()Is at least one name server defined?booleanHas the registrant been set?booleanhasRoid()Has registry object identifier (roid) been set?booleanIs at least one status defined?booleanHas the tech contact been set?voidsetAuthInfo(EPPAuthInfo aAuthInfo) Set authorization informationvoidsetClientId(String aClientId) Sets the domain owning Client Id.voidsetContacts(Vector<EPPDomainContact> aContacts) Sets the Contacts.voidsetCreatedBy(String aCreatedBy) Sets Client Id that created the domain.voidsetCreatedDate(Date aDate) Sets the date and time the domain was created.voidsetExpirationDate(Date aExpirationDate) Sets the expiration date and time of the domain.voidSets the fully qualified names of the subordinate host objects that exist under the superordinate domain object.voidsetLastTransferDate(Date aLastTransferDate) Sets the last date and time the domain was successfully transferred.voidsetLastUpdatedBy(String aLastUpdatedBy) Sets the Client Id that last updated the domain.voidsetLastUpdatedDate(Date aLastUpdatedDate) Sets the last date and time the domain was updated.voidSets the domain name.voidsetNsAttrs(Vector<EPPHostAttr> aServers) Sets the name server attributes.voidSets the name servers.voidsetRegistrant(String newRegistrant) Set registrants.voidSet registry object identifier (roid).voidsetStatuses(Vector<EPPDomainStatus> aStatuses) Set associated statuses.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPResponse
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getMessageQueue, getMsgQueue, getMsgQueueCount, getMsgQueueDate, getMsgQueueMsg, getQDate, getResult, getResults, getTransId, hasExtension, hasExtensions, hasMessageQueue, hasMsgQueue, hasResultCode, isSuccess, setExtension, setExtensions, setMsgQueue, setResult, setResult, setResult, setResult, setResults, setTransId
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPDomainInfoResp.- See Also:
-
ELM_NAME
XML Element Name ofEPPDomainInfoResproot element.- See Also:
-
CONTACT_TYPE_ADMIN
Admin contact type constant.- See Also:
-
CONTACT_TYPE_TECH
Tech contact type constant.- See Also:
-
CONTACT_TYPE_BILLING
Billing contact type constant.- See Also:
-
-
Constructor Details
-
EPPDomainInfoResp
public EPPDomainInfoResp()EPPDomainInfoRespdefault constructor. Must call required setter methods before invokingencode, which include:
- name -
setName - roid -
setRoid - client id -
setClientId - statuses -
setStatuses - created by -
setCreatedBy - created date -
setCreatedDate - transaction id -
setTransId
- name -
-
EPPDomainInfoResp
public EPPDomainInfoResp(EPPTransId aTransId, String aRoid, String aName, String aClientId, Vector<EPPDomainStatus> aStatuses, String aCreatedBy, Date aCreatedDate, EPPAuthInfo aAuthInfo) EPPDomainInfoRespconstructor that takes the required attribute values as parameters. The setter methods of the optional attributes can be called before invokingencode.- Parameters:
aTransId- Transaction Id associated with response.aRoid- roidaName- Domain nameaClientId- Owning Client IdaStatuses- Current status descriptors associated with the domain.aCreatedBy- Client Id of Registrar that created the domainaCreatedDate- Date the domain was createdaAuthInfo- Authorization info for domain name. Can be set tonull,
-
-
Method Details
-
hasHosts
public boolean hasHosts()Is at least one subordinate host object defined?- Returns:
trueif at least one subordinate host object is defined;falseotherwise.
-
getHosts
Gets the fully qualified names of the subordinate host objects that exist under the superordinate domain object.- Returns:
Vectorof host nameStringinstances for fully qualified names of the subordinate host objects that exist under the superordinate domain object. A non-nullVectoris always returned.
-
setHosts
Sets the fully qualified names of the subordinate host objects that exist under the superordinate domain object.- Parameters:
aHosts-Vectorof host nameStringinstances for fully qualified names of the subordinate host objects that exist under the superordinate domain object. Set tonullif there are no subordinate host objects.
-
addHost
Adds a subordinate host to the list of subordinate hosts.- Parameters:
aHost- Host name of the subordinate host
-
hasNses
public boolean hasNses()Is at least one name server defined?- Returns:
trueif at least one name server is defined;falseotherwise.
-
getNses
Gets the name servers. The name servers are the fully qualified name of a known name server host object.- Returns:
Vectorof name serverStringinstances for host object references. A non-nullVectoris always returned.
-
setNses
Sets the name servers. The name servers are the fully qualified name of a known name server host object.- Parameters:
aServers-Vectorof name serverStringinstances for host object references.
-
addNs
Adds a name server object name to the list of name servers.- Parameters:
aNs- Name server name
-
hasNsAttrs
public boolean hasNsAttrs()Is at least one name server attribute defined?- Returns:
trueif at least one name server attribute is defined;falseotherwise.
-
getNsAttrs
Gets the name server attributes. The name server attributes areEPPHostAttrinstances containing the fully qualified name of a host and optionally the host IP addresses.- Returns:
VectorofEPPHostAttrinstances for host attribute values if exists. A non-nullVectoris always returned.
-
setNsAttrs
Sets the name server attributes. The name server attributes areEPPHostAttrinstances containing the fully qualified name of a host and optionally the host IP addresses.- Parameters:
aServers-VectorofEPPHostAttrinstances for host attribute values. Set tonullif there are no name server attributes.
-
addNsAttr
Adds a name server attribute to the list of name server attributes.- Parameters:
aNsAttr- Name server attribute
-
hasStatuses
public boolean hasStatuses()Is at least one status defined?- Returns:
trueif at least one status is defined;falseotherwise.
-
getStatuses
Get the current associated statuses- Returns:
VectorofEPPDomainStatusinstances. A non-nullVectoris always returned.
-
setStatuses
Set associated statuses.- Parameters:
aStatuses-VectorofEPPDomainStatusinstances. Set tonullto clear the statuses.
-
addStatus
Adds a status to the list of statuses.- Parameters:
aStatus- Status to add to the list of statuses
-
getType
Gets the EPP response type associated withEPPDomainInfoResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPDomainInfoResp.ELM_NAME
-
getNamespace
Gets the EPP command namespace associated withEPPDomainInfoResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPDomainMapFactory.NS
-
equals
Compare an instance ofEPPDomainInfoRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
clone
CloneEPPDomainInfoResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPDomainInfoResp - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPResponse- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getName
Gets the domain name- Returns:
- Domain Name if defined;
nullotherwise.
-
setName
Sets the domain name.- Parameters:
aName- Domain Name
-
getClientId
Gets the domain owning Client Id.- Returns:
- Client Id
-
setClientId
Sets the domain owning Client Id.- Parameters:
aClientId- Client Id
-
hasContacts
public boolean hasContacts()Is at least one contact defined?- Returns:
trueif at least one contact is defined;falseotherwise.
-
getContacts
Gets the Contacts- Returns:
VectorofEPPDomainContactinstances if contacts exist;nullotherwise.
-
getContactByType
Gets a contact by type using one of theCONTACT_TYPEconstants.- Parameters:
aType- Type of constant using one of theCONTACT_TYPEconstants.- Returns:
- Contact by type if found;
nullotherwise.
-
hasAdminContact
public boolean hasAdminContact()Has the admin contact been set?- Returns:
trueif the admin contact has been set;falseotherwise.
-
getAdminContact
Gets the admin contact if defined.- Returns:
- Admin contact if defined;
nullotherwise.
-
hasTechContact
public boolean hasTechContact()Has the tech contact been set?- Returns:
trueif the tech contact has been set;falseotherwise.
-
getTechContact
Gets the tech contact if defined.- Returns:
- Tech contact if defined;
nullotherwise.
-
hasBillingContact
public boolean hasBillingContact()Has the billing contact been set?- Returns:
trueif the billing contact has been set;falseotherwise.
-
getBillingContact
Gets the billing contact if defined.- Returns:
- Billing contact if defined;
nullotherwise.
-
setContacts
Sets the Contacts. This method should only be called if the Contact Namespace supported.- Parameters:
aContacts- -VectorofEPPDomainContactinstances
-
addContact
Adds a contact to the list of contacts.- Parameters:
aContact- Contact to add to the list of contacts
-
getCreatedBy
Gets Client Id that created the domain.- Returns:
- Client Id if defined;
nullotherwise.
-
setCreatedBy
Sets Client Id that created the domain.- Parameters:
aCreatedBy- Client Id that created the domain.
-
getCreatedDate
Gets the date and time the domain was created.- Returns:
- Date and time the domain was created if defined;
nullotherwise.
-
setCreatedDate
Sets the date and time the domain was created.- Parameters:
aDate- Date and time the domain was created.
-
getExpirationDate
Gets the expiration date and time of the domain.- Returns:
- Expiration date and time of the domain if defined;
nullotherwise.
-
setExpirationDate
Sets the expiration date and time of the domain.- Parameters:
aExpirationDate- Expiration date and time of the domain.
-
hasLastUpdatedBy
public boolean hasLastUpdatedBy()Has the last updated by been set?- Returns:
trueif the last updated by has been set;falseotherwise.
-
getLastUpdatedBy
Gets the Client Id that last updated the domain. This will be null if the domain has not been updated since creation.- Returns:
- Client Id that last updated the domain has been updated;
nullotherwise.
-
setLastUpdatedBy
Sets the Client Id that last updated the domain.- Parameters:
aLastUpdatedBy- Client Id String that last updated the domain.
-
hasLastUpdatedDate
public boolean hasLastUpdatedDate()Has the last updated date been set?- Returns:
trueif the last updated date has been set;falseotherwise.
-
getLastUpdatedDate
Gets the date and time of the last domain update. This will benullif the domain has not been updated since creation.- Returns:
- date and time of the last domain update if defined;
nullotherwise.
-
setLastUpdatedDate
Sets the last date and time the domain was updated.- Parameters:
aLastUpdatedDate- Date and time of the last domain update.
-
hasLastTransferDate
public boolean hasLastTransferDate()Has the last transfer date been set?- Returns:
trueif the last transfer date has been set;falseotherwise.
-
getLastTransferDate
Gets the date and time of the last successful domain transfer. This will benullif the domain has not been successfully transferred since creation.- Returns:
- date and time of the last successful transfer if defined;
nullotherwise.
-
setLastTransferDate
Sets the last date and time the domain was successfully transferred.- Parameters:
aLastTransferDate- Date and time of the last succesful transfer
-
hasAuthInfo
public boolean hasAuthInfo()Has the authorization information been set?- Returns:
trueif the authorization information has been set;falseotherwise.
-
getAuthInfo
Get authorization information- Returns:
- Authorization information if defined;
nullotherwise;
-
setAuthInfo
Set authorization information- Parameters:
aAuthInfo- EPPAuthInfo
-
hasRegistrant
public boolean hasRegistrant()Has the registrant been set?- Returns:
trueif the registrant has been set;falseotherwise.
-
getRegistrant
Get registrant- Returns:
- String
-
setRegistrant
Set registrants.- Parameters:
newRegistrant- String
-
hasRoid
public boolean hasRoid()Has registry object identifier (roid) been set?- Returns:
trueif the registry object identifier (roid) has been set;falseotherwise.
-
getRoid
Get roid.- Returns:
- registry object identifier (roid)
-
setRoid
Set registry object identifier (roid).- Parameters:
aRoid- registry object identifier (roid) value
-
doEncode
Encode a DOM Element tree from the attributes of theEPPDomainInfoRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the EPPDomainInfoResp instance.
- Throws:
EPPEncodeException- Unable to encode EPPDomainInfoResp instance.
-
doDecode
Decode theEPPDomainInfoRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPDomainInfoRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-