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,Serializable,Cloneable
Represents a <contact:infData> response to an
EPPContactInfoCmd. 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:
-
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
ConstructorsConstructorDescriptionEPPContactInfoRespdefault constructor.EPPContactInfoResp(EPPTransId aTransId, String aRoid, String aId, Vector newStatuses, EPPContactPostalDefinition aPostalInfo, String aEmail, String aClientId, String aCreatedBy, Date aCreatedDate, EPPAuthInfo aAuthInfo) EPPContactInfoRespconstructor that sets the required attributes with the parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPostalInfo(EPPContactPostalDefinition aPostalInfo) Adds contact postal info.clone()CloneEPPContactInfoResp.protected voidDecode theEPPContactInfoRespattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPContactInfoRespinstance.booleanCompare an instance ofEPPContactInfoRespwith this instance.Gets the authorization information.Gets the contact owning Client Id.Gets Client Id that created the contact.Gets the date and time the contact was created.Gets the disclose information.getEmail()Gets the contact email.getFax()Gets the contact fax number.Gets the fax number extension.Gets the first postal info object.getId()Gets the contact identifier.Gets the last date and time the contact was successfully transferred.Gets the Client Id that last updated the contact.Gets the date and time of the last contact update.Gets the EPP command namespace associated withEPPContactInfoResp.Gets the contact postal info.getRoid()Gets the Registry Object Identifier (ROID).Gets the contact statuses.getType()Gets the EPP response type associated withEPPContactInfoResp.getVoice()Gets the contact voice number.Get voice number extension.booleanReturnstrueif the contact has authinfobooleanReturnstrueif the contact has owning client Id.booleanReturnstrueif the contact has client id that created itbooleanReturnstrueif the contact has created datebooleanReturnstrueif the contact has disclose flagbooleanhasEmail()Returnstrueif the contact has emailbooleanhasFax()Returnstrueif the contact has faxbooleanReturnstrueif the contact has fax extensionbooleanhasId()Returnstrueif the contact has IDbooleanReturnstrueif the contact has the last date/time it was transferredbooleanReturnstrueif the contact has client id that last updated itbooleanReturnstrueif the contact has last date/time it was updatedbooleanReturnstrueif the contact has postal infobooleanhasRoid()Returnstrueif the contact has Registry Object Identifier (ROID).booleanReturnstrueif the contact has statusesbooleanhasVoice()Returnstrueif the contact has voicebooleanReturnstrueif the contact has voice extensionvoidsetAuthInfo(EPPAuthInfo aAuthInfo) Sets the authorization information.voidsetClientId(String aClientId) Sets the contact owning Client Id.voidsetCreatedBy(String aCreatedBy) Sets Client Id that created the contact.voidsetCreatedDate(Date aDate) Sets the date and time the contact was created.voidsetDisclose(EPPContactDisclose aDisclose) Sets the disclose information.voidSets the contact email.voidSets the contact fax number.voidSets the fax number extension.voidSets the contact identifier.voidsetLastTransferDate(Date aLastTransferDate) Sets the last date and time the contact was successfully transferred.voidsetLastUpdatedBy(String aLastUpdatedBy) Sets the Client Id that last updated the contact.voidsetLastUpdatedDate(Date aLastUpdatedDate) Sets the last date and time the contact was updated.voidsetPostalInfo(Vector aPostalInfo) Set contact postal info.voidSets the Registry Object Identifier (ROID).voidsetStatuses(Vector aStatuses) Sets the contact statuses.voidSets the contact voice number.voidsetVoiceExt(String aVoiceExt) Sets the contact voice extension.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
-
Constructor Details
-
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, String aRoid, String aId, Vector newStatuses, EPPContactPostalDefinition aPostalInfo, String aEmail, String aClientId, String aCreatedBy, 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 Details
-
getType
Gets the EPP response type associated withEPPContactInfoResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPContactInfoResp.ELM_NAME
-
getNamespace
Gets the EPP command namespace associated withEPPContactInfoResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPContactMapFactory.NS
-
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
Sets the contact owning Client Id.- Parameters:
aClientId- Client Id
-
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
Sets Client Id that created the contact.- Parameters:
aCreatedBy- Client Id that created the contact if defined;nullotherwise.
-
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
Sets the date and time the contact was created.- Parameters:
aDate- Date and time the contact was created.
-
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
Sets the Client Id that last updated the contact.- Parameters:
aLastUpdatedBy- Client Id String that last updated the contact.
-
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
Sets the last date and time the contact was updated.- Parameters:
aLastUpdatedDate- Date and time of the last contact update
-
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
Sets the last date and time the contact was successfully transferred.- Parameters:
aLastTransferDate- Date and time of the last successful transfer.
-
doEncode
Encode 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
Decode theEPPContactInfoRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPContactInfoRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
Compare an instance ofEPPContactInfoRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
- boolean
trueif the objects are equal otherwisefalse
-
clone
CloneEPPContactInfoResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPContactInfoResp - 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.
-
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
Gets the first postal info object.- Returns:
- First postal info object (
EPPContactPostalDefinition) if it exists;nullotherwise.
-
setPostalInfo
Set contact postal info.- Parameters:
aPostalInfo-VectorofEPPContactPostalDefinitionobjects.
-
addPostalInfo
Adds contact postal info.- Parameters:
aPostalInfo-EPPContactPostalDefinitionobject to add toVectorof postal info.
-
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
Sets the authorization information.- Parameters:
aAuthInfo- Authorization information
-
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
Sets the disclose information.- Parameters:
aDisclose- Contact disclose information
-
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
Sets the contact email.- Parameters:
aEmail- Contact email
-
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
Sets the contact fax number.- Parameters:
aFax- Contact fax number
-
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
Sets the fax number extension.- Parameters:
aFaxExt- Fax number extension
-
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
Sets the contact identifier.- Parameters:
aId- Contact identifier
-
getStatuses
Gets the contact statuses.- Returns:
VectorofEPPContactStatusobjects.
-
hasStatuses
public boolean hasStatuses()Returnstrueif the contact has statuses- Returns:
trueif the contact has statuesfalseotherwise
-
setStatuses
Sets the contact statuses.- Parameters:
aStatuses-VectorofEPPContactStatusobjects.
-
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
Sets the contact voice number.- Parameters:
aVoice- contact voice number
-
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
Sets the contact voice extension.- Parameters:
aVoiceExt- voice extension
-
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
Sets the Registry Object Identifier (ROID).- Parameters:
aRoid- Registry Object Identifier (ROID)
-