public class EPPDomainInfoResp extends EPPResponse
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: getName and setName to get and set the
element.getRoid and setRoid to get and set the element.EPPDomainStatus description for a list of valid status values. Use
getStatus and setStatus to get and set the elements.getContacts and setContacts to get and set the
elements. Contacts should only be specified if the Contact Mapping is
supported.getNs and setNs to get and set the elements.getHost and setHost to get and set the
elements.getClientId and setClientId to get and
set the element.getCreatedBy and
setCreatedBy to get and set the element.getCreatedDate and setCreatedDate to get and
set the element.getExpirationDate and setExpirationDate to get and set the
element.getLastUpdatedBy and
setLastUpdatedBy to get and set the element.getLastUpdatedDate and
setLastUpdatedDate to get and set the element.getLastTransferDate and
setLastTransferDate to get and set the element.getAuthInfo and setAuthInfo to get and set the elements.EPPDomainInfoCmd,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTACT_TYPE_ADMIN
Admin contact type constant.
|
static java.lang.String |
CONTACT_TYPE_BILLING
Billing contact type constant.
|
static java.lang.String |
CONTACT_TYPE_TECH
Tech contact type constant.
|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPDomainInfoResp. |
static java.lang.String |
ELM_NAME
XML Element Name of
EPPDomainInfoResp root element. |
extensions, TRANSFER_CLIENT_APPROVED, TRANSFER_CLIENT_CANCELLED, TRANSFER_CLIENT_REJECTED, TRANSFER_PENDING, TRANSFER_SERVER_APPROVED, TRANSFER_SERVER_CANCELLED| Constructor and Description |
|---|
EPPDomainInfoResp()
EPPDomainInfoResp default constructor. |
EPPDomainInfoResp(EPPTransId aTransId,
java.lang.String aRoid,
java.lang.String aName,
java.lang.String aClientId,
java.util.Vector someStatuses,
java.lang.String aCreatedBy,
java.util.Date aCreatedDate,
EPPAuthInfo aAuthInfo)
EPPDomainInfoResp constuctor that takes the required attribute
values as parameters. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPDomainInfoResp. |
protected void |
doDecode(org.w3c.dom.Element aElement)
Decode the
EPPDomainInfoResp attributes from the aElement DOM
Element tree. |
protected org.w3c.dom.Element |
doEncode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPDomainInfoResp instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPDomainInfoResp with this instance. |
EPPDomainContact |
getAdminContact()
Gets the admin contact if defined.
|
EPPAuthInfo |
getAuthInfo()
Get authorization information
|
EPPDomainContact |
getBillingContact()
Gets the billing contact if defined.
|
java.lang.String |
getClientId()
Gets the domain owning Client Id.
|
EPPDomainContact |
getContactByType(java.lang.String aType)
Gets a contact by type using one of the
CONTACT_TYPE constants. |
java.util.Vector |
getContacts()
Gets the Contacts
|
java.lang.String |
getCreatedBy()
Gets Client Id that created the domain.
|
java.util.Date |
getCreatedDate()
Gets the date and time the domain was created.
|
java.util.Date |
getExpirationDate()
Gets the expiration date and time of the domain.
|
java.util.Vector |
getHosts()
Get host names
|
java.util.Date |
getLastTransferDate()
Gets the date and time of the last successful domain transfer.
|
java.lang.String |
getLastUpdatedBy()
Gets the Client Id that last updated the domain.
|
java.util.Date |
getLastUpdatedDate()
Gets the date and time of the last domain update.
|
java.lang.String |
getName()
Gets the domain name
|
java.lang.String |
getNamespace()
Gets the EPP command namespace associated with
EPPDomainInfoResp. |
java.util.Vector |
getNses()
Gets the name servers.
|
java.lang.String |
getRegistrant()
Get registrant
|
java.lang.String |
getRoid()
Get roid.
|
java.util.Vector |
getStatuses()
Get the current associated statuses
|
EPPDomainContact |
getTechContact()
Gets the tech contact if defined.
|
java.lang.String |
getType()
Gets the EPP response type associated with
EPPDomainInfoResp . |
boolean |
hasAdminContact()
Has the admin contact been set?
|
boolean |
hasAuthInfo()
Has the authorization information been set?
|
boolean |
hasBillingContact()
Has the billing contact been set?
|
boolean |
hasLastTransferDate()
Has the last transfer date been set?
|
boolean |
hasLastUpdatedBy()
Has the last updated by been set?
|
boolean |
hasLastUpdatedDate()
Has the last updated date been set?
|
boolean |
hasRegistrant()
Has the registrant been set?
|
boolean |
hasRoid()
Has registry object identifier (roid) been set?
|
boolean |
hasTechContact()
Has the tech contact been set?
|
void |
setAuthInfo(EPPAuthInfo aAuthInfo)
Set authorization information
|
void |
setClientId(java.lang.String aClientId)
Sets the domain owning Client Id.
|
void |
setContacts(java.util.Vector aContacts)
Sets the Contacts.
|
void |
setCreatedBy(java.lang.String aCreatedBy)
Sets Client Id that created the domain.
|
void |
setCreatedDate(java.util.Date aDate)
Sets the date and time the domain was created.
|
void |
setExpirationDate(java.util.Date aExpirationDate)
Sets the expiration date and time of the domain.
|
void |
setHosts(java.util.Vector newHosts)
Set host names
|
void |
setLastTransferDate(java.util.Date aLastTransferDate)
Sets the last date and time the domain was successfully transferred.
|
void |
setLastUpdatedBy(java.lang.String aLastUpdatedBy)
Sets the Client Id that last updated the domain.
|
void |
setLastUpdatedDate(java.util.Date aLastUpdatedDate)
Sets the last date and time the domain was updated.
|
void |
setName(java.lang.String aName)
Sets the domain name.
|
void |
setNses(java.util.Vector aServers)
Sets the name servers.
|
void |
setRegistrant(java.lang.String newRegistrant)
Set registrants.
|
void |
setRoid(java.lang.String aRoid)
Set registry object identifier (roid).
|
void |
setStatuses(java.util.Vector newStatuses)
Set associated statuses.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
addExtension, decode, encode, findDuplicateExtNamespaces, 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, setTransIdpublic static final java.lang.String ELM_LOCALNAME
EPPDomainInfoResp.public static final java.lang.String ELM_NAME
EPPDomainInfoResp root element.public static final java.lang.String CONTACT_TYPE_ADMIN
public static final java.lang.String CONTACT_TYPE_TECH
public static final java.lang.String CONTACT_TYPE_BILLING
public EPPDomainInfoResp()
EPPDomainInfoResp default constructor. Must call required setter
methods before invoking encode, which include:setNamesetRoidsetClientIdsetStatusessetCreatedBysetCreatedDatesetTransIdpublic EPPDomainInfoResp(EPPTransId aTransId, java.lang.String aRoid, java.lang.String aName, java.lang.String aClientId, java.util.Vector someStatuses, java.lang.String aCreatedBy, java.util.Date aCreatedDate, EPPAuthInfo aAuthInfo)
EPPDomainInfoResp constuctor that takes the required attribute
values as parameters. The setter methods of the optional attributes can be
called before invoking encode.aTransId - Transaction Id associated with response.aRoid - roidaName - Domain nameaClientId - Owning Client IdsomeStatuses - Current status descriptors associated with the domain.aCreatedBy - Client Id of Registrar that created the domainaCreatedDate - Date the domain was createdaAuthInfo - Expirate date of the domainpublic java.util.Vector getHosts()
public java.util.Vector getNses()
String
instances containing the fully qualified name of a known name server host
object, or EPPHostAttr instances containing the fully qualified
name of a host and optionally the host IP addresses.Vector of name server String instances for host
object references or EPPHostAttr instances for host
attribute values if exists.public java.util.Vector getStatuses()
public void setHosts(java.util.Vector newHosts)
newHosts - java.util.Vectorpublic void setNses(java.util.Vector aServers)
String
instances containing the fully qualified name of a known name server host
object, or EPPHostAttr instances containing the fully qualified
name of a host and optionally the host IP addresses.aServers - Vector of name server String instances for host
object references or EPPHostAttr instances for host
attribute values.public void setStatuses(java.util.Vector newStatuses)
newStatuses - java.util.Vectorpublic java.lang.String getType()
EPPDomainInfoResp .getType in class EPPResponseEPPDomainInfoResp.ELM_NAMEpublic java.lang.String getNamespace()
EPPDomainInfoResp.getNamespace in interface EPPCodecComponentgetNamespace in interface EPPMessagegetNamespace in class EPPResponseEPPDomainMapFactory.NSpublic boolean equals(java.lang.Object aObject)
EPPDomainInfoResp with this instance.equals in class EPPResponseaObject - Object to compare with.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPDomainInfoResp.clone in interface EPPCodecComponentclone in class EPPResponseEPPDomainInfoRespjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class EPPResponseString if successful; ERROR
otherwise.public java.lang.String getName()
null otherwise.public void setName(java.lang.String aName)
aName - Domain Namepublic java.lang.String getClientId()
public void setClientId(java.lang.String aClientId)
aClientId - Client Idpublic java.util.Vector getContacts()
EPPDomainContact instances if defined;
null otherwise.public EPPDomainContact getContactByType(java.lang.String aType)
CONTACT_TYPE constants.aType - Type of constant using one of the CONTACT_TYPE
constants.null otherwise.public boolean hasAdminContact()
true if the admin contact has been set; false
otherwise.public EPPDomainContact getAdminContact()
null otherwise.public boolean hasTechContact()
true if the tech contact has been set; false
otherwise.public EPPDomainContact getTechContact()
null otherwise.public boolean hasBillingContact()
true if the billing contact has been set; false
otherwise.public EPPDomainContact getBillingContact()
null otherwise.public void setContacts(java.util.Vector aContacts)
aContacts - - Vector of EPPDomainContact instancespublic java.lang.String getCreatedBy()
null otherwise.public void setCreatedBy(java.lang.String aCreatedBy)
aCreatedBy - Client Id that created the domain.public java.util.Date getCreatedDate()
null
otherwise.public void setCreatedDate(java.util.Date aDate)
aDate - Date and time the domain was created.public java.util.Date getExpirationDate()
null
otherwise.public void setExpirationDate(java.util.Date aExpirationDate)
aExpirationDate - Expiration date and time of the domain.public boolean hasLastUpdatedBy()
true if the last updated by has been set; false
otherwise.public java.lang.String getLastUpdatedBy()
null otherwise.public void setLastUpdatedBy(java.lang.String aLastUpdatedBy)
aLastUpdatedBy - Client Id String that last updated the domain.public boolean hasLastUpdatedDate()
true if the last updated date has been set; false
otherwise.public java.util.Date getLastUpdatedDate()
null if the domain has not been updated since creation.null
otherwise.public void setLastUpdatedDate(java.util.Date aLastUpdatedDate)
aLastUpdatedDate - Date and time of the last domain update.public boolean hasLastTransferDate()
true if the last transfer date has been set; false
otherwise.public java.util.Date getLastTransferDate()
null if the domain has not been successfully transferred since
creation.null otherwise.public void setLastTransferDate(java.util.Date aLastTransferDate)
aLastTransferDate - Date and time of the last succesful transferpublic boolean hasAuthInfo()
true if the authorization information has been set;
false otherwise.public EPPAuthInfo getAuthInfo()
null otherwise;public void setAuthInfo(EPPAuthInfo aAuthInfo)
aAuthInfo - EPPAuthInfopublic boolean hasRegistrant()
true if the registrant has been set; false
otherwise.public java.lang.String getRegistrant()
public void setRegistrant(java.lang.String newRegistrant)
newRegistrant - Stringpublic boolean hasRoid()
true if the registry object identifier (roid) has been
set; false otherwise.public java.lang.String getRoid()
public void setRoid(java.lang.String aRoid)
aRoid - registry object identifier (roid) valueprotected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPDomainInfoResp instance.doEncode in class EPPResponseaDocument - DOM Document that is being built. Used as an Element factory.EPPEncodeException - Unable to encode EPPDomainInfoResp instance.protected void doDecode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPDomainInfoResp attributes from the aElement DOM
Element tree.doDecode in class EPPResponseaElement - Root DOM Element to decode EPPDomainInfoResp from.EPPDecodeException - Unable to decode aElement