Package com.verisign.epp.codec.contact
Class EPPContactInfoResp
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPResponse
-
- com.verisign.epp.codec.contact.EPPContactInfoResp
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
public class EPPContactInfoResp extends EPPResponse
Represents a <contact:infData> response to anEPPContactInfoCmd. When an <info> command has been processed successfully, the EPP <resData> element MUST contain a child <contact:infData> element that identifies the contact namespace and the location of the contact schema. The <contact:infData> element SHALL contain the following child elements:
- A <contact:id> element that contains the server-unique identifier of the contact object. Use
getIdandsetIdto get and set the elements. - One or more <contact:status> elements that describe the status of the contact object. Use
getStatusesandsetStatusesto get and set the elements. - A <contact:postalInfo> element that contains the postal contacts. Use
getPostalInfo,addPostalInfoandsetPostalInfoto get, add and set the elements. - An OPTIONAL <contact:voice> element that contains the contact's voice telephone number. Use
getVoiceandsetVoiceto get and set the elements. - An OPTIONAL <contact:fax> element that contains the contact's facsimile telephone number. Use
getFaxandsetFaxto get and set the elements. - A <contact:email> element that contains the contact's e-mail address. Use
getEmailandsetEmailto get and set the elements. - A <contact:clID> element that contains the identifier of the sponsoring client. The sponsoring client is
the client that has administrative privileges to manage the object. Use
getClientIdandsetClientIdto get and set the element. - A <contact:crID> element that contains the identifier of the client that created the contact name. Use
getCreatedByandsetCreatedByto get and set the element. - A <contact:crDate> element that contains the date and time of contact creation. Use
getCreatedDateandsetCreatedDateto get and set the element. - A <contact:upID> element that contains the identifier of the client that last updated the contact name.
This element MUST NOT be present if the contact has never been modified. Use
getLastUpdatedByandsetLastUpdatedByto get and set the element. - A <contact:upDate> element that contains the date and time of the most recent contact modification. This
element MUST NOT be present if the contact has never been modified. Use
getLastUpdatedDateandsetLastUpdatedDateto get and set the element. - A <contact:trDate> element that contains the date and time of the most recent successful transfer. This
element MUST NOT be provided if the contact has never been transferred. Use
getLastTransferDateandsetLastTransferDateto get and set the element. - An OPTIONAL <contact:authInfo> element that contains authorization information associated with the contact
object. This element MUST NOT be provided if the querying client is not the current sponsoring client. Use
getAuthInfoandsetAuthInfoto get and set the element. - An OPTIONAL <contact:disclose> element that contains disclose information associated with the contact
object. Use
getDiscloseandsetDiscloseto get and set the element.
- See Also:
EPPContactInfoCmd, Serialized Form
-
-
Field Summary
-
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
Constructors Constructor Description EPPContactInfoResp()EPPContactInfoRespdefault constructor.EPPContactInfoResp(EPPTransId aTransId, java.lang.String aRoid, java.lang.String aId, java.util.Vector newStatuses, EPPContactPostalDefinition aPostalInfo, java.lang.String aEmail, java.lang.String aClientId, java.lang.String aCreatedBy, java.util.Date aCreatedDate, EPPAuthInfo aAuthInfo)EPPContactInfoRespconstructor that sets the required attributes with the parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPostalInfo(EPPContactPostalDefinition aPostalInfo)Adds contact postal info.java.lang.Objectclone()CloneEPPContactInfoResp.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPContactInfoRespattributes from the aElement DOM Element tree.protected org.w3c.dom.ElementdoEncode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPContactInfoRespinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPContactInfoRespwith this instance.EPPAuthInfogetAuthInfo()Gets the authorization information.java.lang.StringgetClientId()Gets the contact owning Client Id.java.lang.StringgetCreatedBy()Gets Client Id that created the contact.java.util.DategetCreatedDate()Gets the date and time the contact was created.EPPContactDisclosegetDisclose()Gets the disclose information.java.lang.StringgetEmail()Gets the contact email.java.lang.StringgetFax()Gets the contact fax number.java.lang.StringgetFaxExt()Gets the fax number extension.EPPContactPostalDefinitiongetFirstPostalInfo()Gets the first postal info object.java.lang.StringgetId()Gets the contact identifier.java.util.DategetLastTransferDate()Gets the last date and time the contact was successfully transferred.java.lang.StringgetLastUpdatedBy()Gets the Client Id that last updated the contact.java.util.DategetLastUpdatedDate()Gets the date and time of the last contact update.java.lang.StringgetNamespace()Gets the EPP command namespace associated withEPPContactInfoResp.java.util.VectorgetPostalInfo()Gets the contact postal info.java.lang.StringgetRoid()Gets the Registry Object Identifier (ROID).java.util.VectorgetStatuses()Gets the contact statuses.java.lang.StringgetType()Gets the EPP response type associated withEPPContactInfoResp.java.lang.StringgetVoice()Gets the contact voice number.java.lang.StringgetVoiceExt()Get voice number extension.booleanhasAuthInfo()Returnstrueif the contact has authinfobooleanhasClientId()Returnstrueif the contact has owning client Id.booleanhasCreatedBy()Returnstrueif the contact has client id that created itbooleanhasCreatedDate()Returnstrueif the contact has created datebooleanhasDisclose()Returnstrueif the contact has disclose flagbooleanhasEmail()Returnstrueif the contact has emailbooleanhasFax()Returnstrueif the contact has faxbooleanhasFaxExt()Returnstrueif the contact has fax extensionbooleanhasId()Returnstrueif the contact has IDbooleanhasLastTransferDate()Returnstrueif the contact has the last date/time it was transferredbooleanhasLastUpdatedBy()Returnstrueif the contact has client id that last updated itbooleanhasLastUpdatedDate()Returnstrueif the contact has last date/time it was updatedbooleanhasPostalContacts()Returnstrueif the contact has postal infobooleanhasRoid()Returnstrueif the contact has Registry Object Identifier (ROID).booleanhasStatuses()Returnstrueif the contact has statusesbooleanhasVoice()Returnstrueif the contact has voicebooleanhasVoiceExt()Returnstrueif the contact has voice extensionvoidsetAuthInfo(EPPAuthInfo aAuthInfo)Sets the authorization information.voidsetClientId(java.lang.String aClientId)Sets the contact owning Client Id.voidsetCreatedBy(java.lang.String aCreatedBy)Sets Client Id that created the contact.voidsetCreatedDate(java.util.Date aDate)Sets the date and time the contact was created.voidsetDisclose(EPPContactDisclose aDisclose)Sets the disclose information.voidsetEmail(java.lang.String aEmail)Sets the contact email.voidsetFax(java.lang.String aFax)Sets the contact fax number.voidsetFaxExt(java.lang.String aFaxExt)Sets the fax number extension.voidsetId(java.lang.String aId)Sets the contact identifier.voidsetLastTransferDate(java.util.Date aLastTransferDate)Sets the last date and time the contact was successfully transferred.voidsetLastUpdatedBy(java.lang.String aLastUpdatedBy)Sets the Client Id that last updated the contact.voidsetLastUpdatedDate(java.util.Date aLastUpdatedDate)Sets the last date and time the contact was updated.voidsetPostalInfo(java.util.Vector aPostalInfo)Set contact postal info.voidsetRoid(java.lang.String aRoid)Sets the Registry Object Identifier (ROID).voidsetStatuses(java.util.Vector aStatuses)Sets the contact statuses.voidsetVoice(java.lang.String aVoice)Sets the contact voice number.voidsetVoiceExt(java.lang.String aVoiceExt)Sets the contact voice extension.java.lang.StringtoString()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
-
-
-
-
Constructor Detail
-
EPPContactInfoResp
public EPPContactInfoResp()
EPPContactInfoRespdefault constructor. Must call required setter methods before invokingencode, which include:
- transaction id -
setTransId - contact -
setContact - client id -
setClientId - postalInfo -
setPostalInfo - postalInfo -
addPostalInfo - created by -
setCreatedBy - created date -
setCreatedDate
The following optional attributes can be set:
- last updated by -
setLastUpdatedBy - last updated date -
setLastUpdatedDate - last transfer by -
setLastTransferBy - last transfer date -
setLastTransferDate - authorization id -
setAuthId - disclose -
setDisclose
- transaction id -
-
EPPContactInfoResp
public EPPContactInfoResp(EPPTransId aTransId, java.lang.String aRoid, java.lang.String aId, java.util.Vector newStatuses, EPPContactPostalDefinition aPostalInfo, java.lang.String aEmail, java.lang.String aClientId, java.lang.String aCreatedBy, java.util.Date aCreatedDate, EPPAuthInfo aAuthInfo)
EPPContactInfoRespconstructor that sets the required attributes with the parameters. The following optional attributes can be set:- Parameters:
aTransId- command transaction idaRoid- roidaId- contact IDnewStatuses- contact statusesaPostalInfo- postal element of contactaEmail- contact emailaClientId- contact sponsoring client identifieraCreatedBy- identifier of the client that created the contact nameaCreatedDate- Date and time of contact creationaAuthInfo- authorization information
-
-
Method Detail
-
getType
public java.lang.String getType()
Gets the EPP response type associated withEPPContactInfoResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPContactInfoResp.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command namespace associated withEPPContactInfoResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPContactMapFactory.NS
-
getClientId
public java.lang.String getClientId()
Gets the contact owning Client Id.- Returns:
- Client Id if defined;
nullotherwise.
-
hasClientId
public boolean hasClientId()
Returnstrueif the contact has owning client Id.- Returns:
trueif the contact has owning client Idfalseotherwise
-
setClientId
public void setClientId(java.lang.String aClientId)
Sets the contact owning Client Id.- Parameters:
aClientId- Client Id
-
getCreatedBy
public java.lang.String getCreatedBy()
Gets Client Id that created the contact.- Returns:
- Client Id if defined;
nullotherwise.
-
hasCreatedBy
public boolean hasCreatedBy()
Returnstrueif the contact has client id that created it- Returns:
trueif the contact has client id that created itfalseotherwise
-
setCreatedBy
public void setCreatedBy(java.lang.String aCreatedBy)
Sets Client Id that created the contact.- Parameters:
aCreatedBy- Client Id that created the contact if defined;nullotherwise.
-
getCreatedDate
public java.util.Date getCreatedDate()
Gets the date and time the contact was created.- Returns:
- Date and time the contact was created if defined;
nullotherwise.
-
hasCreatedDate
public boolean hasCreatedDate()
Returnstrueif the contact has created date- Returns:
trueif the contact has created datefalseotherwise
-
setCreatedDate
public void setCreatedDate(java.util.Date aDate)
Sets the date and time the contact was created.- Parameters:
aDate- Date and time the contact was created.
-
getLastUpdatedBy
public java.lang.String getLastUpdatedBy()
Gets the Client Id that last updated the contact. This will be null if the contact has not been updated since creation.- Returns:
- Client Id that last updated the contact has been updated;
nullotherwise.
-
hasLastUpdatedBy
public boolean hasLastUpdatedBy()
Returnstrueif the contact has client id that last updated it- Returns:
trueif the contact has client id that last updated itfalseotherwise
-
setLastUpdatedBy
public void setLastUpdatedBy(java.lang.String aLastUpdatedBy)
Sets the Client Id that last updated the contact.- Parameters:
aLastUpdatedBy- Client Id String that last updated the contact.
-
getLastUpdatedDate
public java.util.Date getLastUpdatedDate()
Gets the date and time of the last contact update. This will benullif the contact has not been updated since creation.- Returns:
- date and time of the last contact update if defined;
nullotherwise.
-
hasLastUpdatedDate
public boolean hasLastUpdatedDate()
Returnstrueif the contact has last date/time it was updated- Returns:
trueif the contact has last date/time it was updatedfalseotherwise
-
setLastUpdatedDate
public void setLastUpdatedDate(java.util.Date aLastUpdatedDate)
Sets the last date and time the contact was updated.- Parameters:
aLastUpdatedDate- Date and time of the last contact update
-
getLastTransferDate
public java.util.Date getLastTransferDate()
Gets the last date and time the contact was successfully transferred.- Returns:
- Date and time of the last successful transfer if defined;
nullotherwise.
-
hasLastTransferDate
public boolean hasLastTransferDate()
Returnstrueif the contact has the last date/time it was transferred- Returns:
trueif the contact has the last date/time it was transferredfalseotherwise
-
setLastTransferDate
public void setLastTransferDate(java.util.Date aLastTransferDate)
Sets the last date and time the contact was successfully transferred.- Parameters:
aLastTransferDate- Date and time of the last successful transfer.
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPContactInfoRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the EPPContactPingMap instance.
- Throws:
EPPEncodeException- Unable to encode EPPContactPingMap instance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPContactInfoRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPContactInfoRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPContactInfoRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
- boolean
trueif the objects are equal otherwisefalse
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPContactInfoResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPContactInfoResp - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPResponse- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getPostalInfo
public java.util.Vector getPostalInfo()
Gets the contact postal info.- Returns:
- Postal info if set;
nullotherwise
-
hasPostalContacts
public boolean hasPostalContacts()
Returnstrueif the contact has postal info- Returns:
trueif the contact has postal infofalseotherwise
-
getFirstPostalInfo
public EPPContactPostalDefinition getFirstPostalInfo()
Gets the first postal info object.- Returns:
- First postal info object (
EPPContactPostalDefinition) if it exists;nullotherwise.
-
setPostalInfo
public void setPostalInfo(java.util.Vector aPostalInfo)
Set contact postal info.- Parameters:
aPostalInfo-VectorofEPPContactPostalDefinitionobjects.
-
addPostalInfo
public void addPostalInfo(EPPContactPostalDefinition aPostalInfo)
Adds contact postal info.- Parameters:
aPostalInfo-EPPContactPostalDefinitionobject to add toVectorof postal info.
-
getAuthInfo
public EPPAuthInfo getAuthInfo()
Gets the authorization information.- Returns:
- Authorization information if defined;
nullotherwise;
-
hasAuthInfo
public boolean hasAuthInfo()
Returnstrueif the contact has authinfo- Returns:
trueif the contact has authinfofalseotherwise
-
setAuthInfo
public void setAuthInfo(EPPAuthInfo aAuthInfo)
Sets the authorization information.- Parameters:
aAuthInfo- Authorization information
-
getDisclose
public EPPContactDisclose getDisclose()
Gets the disclose information.- Returns:
- Disclose information if defined;
nullotherwise;
-
hasDisclose
public boolean hasDisclose()
Returnstrueif the contact has disclose flag- Returns:
trueif the contact has disclose flagfalseotherwise
-
setDisclose
public void setDisclose(EPPContactDisclose aDisclose)
Sets the disclose information.- Parameters:
aDisclose- Contact disclose information
-
getEmail
public java.lang.String getEmail()
Gets the contact email.- Returns:
- Contact email if defined:
nullotherwise.
-
hasEmail
public boolean hasEmail()
Returnstrueif the contact has email- Returns:
trueif the contact has emailfalseotherwise
-
setEmail
public void setEmail(java.lang.String aEmail)
Sets the contact email.- Parameters:
aEmail- Contact email
-
getFax
public java.lang.String getFax()
Gets the contact fax number.- Returns:
- Contact fax number if defined;
nullotherwise.
-
hasFax
public boolean hasFax()
Returnstrueif the contact has fax- Returns:
trueif the contact has faxfalseotherwise
-
setFax
public void setFax(java.lang.String aFax)
Sets the contact fax number.- Parameters:
aFax- Contact fax number
-
getFaxExt
public java.lang.String getFaxExt()
Gets the fax number extension.- Returns:
- fax number extension if defined;
nullotherwise.
-
hasFaxExt
public boolean hasFaxExt()
Returnstrueif the contact has fax extension- Returns:
trueif the contact has fax extensionfalseotherwise
-
setFaxExt
public void setFaxExt(java.lang.String aFaxExt)
Sets the fax number extension.- Parameters:
aFaxExt- Fax number extension
-
getId
public java.lang.String getId()
Gets the contact identifier.- Returns:
- Contact identifier if defined;
nullotherwise.
-
hasId
public boolean hasId()
Returnstrueif the contact has ID- Returns:
trueif the contact has IDfalseotherwise
-
setId
public void setId(java.lang.String aId)
Sets the contact identifier.- Parameters:
aId- Contact identifier
-
getStatuses
public java.util.Vector getStatuses()
Gets the contact statuses.- Returns:
VectorofEPPContactStatusobjects.
-
hasStatuses
public boolean hasStatuses()
Returnstrueif the contact has statuses- Returns:
trueif the contact has statuesfalseotherwise
-
setStatuses
public void setStatuses(java.util.Vector aStatuses)
Sets the contact statuses.- Parameters:
aStatuses-VectorofEPPContactStatusobjects.
-
getVoice
public java.lang.String getVoice()
Gets the contact voice number.- Returns:
- Contact voice number if defined;
nullotherwise.
-
hasVoice
public boolean hasVoice()
Returnstrueif the contact has voice- Returns:
trueif the contact has voicefalseotherwise
-
setVoice
public void setVoice(java.lang.String aVoice)
Sets the contact voice number.- Parameters:
aVoice- contact voice number
-
getVoiceExt
public java.lang.String getVoiceExt()
Get voice number extension.- Returns:
- Voice number extension if defined;
nullotherwise.
-
hasVoiceExt
public boolean hasVoiceExt()
Returnstrueif the contact has voice extension- Returns:
trueif the contact has voice extensionfalseotherwise
-
setVoiceExt
public void setVoiceExt(java.lang.String aVoiceExt)
Sets the contact voice extension.- Parameters:
aVoiceExt- voice extension
-
getRoid
public java.lang.String getRoid()
Gets the Registry Object Identifier (ROID).- Returns:
- Registry Object Identifier (ROID) if defined;
nullotherwise.
-
hasRoid
public boolean hasRoid()
Returnstrueif the contact has Registry Object Identifier (ROID).- Returns:
trueif the contact has Registry Object Identifier (ROID)falseotherwise
-
setRoid
public void setRoid(java.lang.String aRoid)
Sets the Registry Object Identifier (ROID).- Parameters:
aRoid- Registry Object Identifier (ROID)
-
-