|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.contact.EPPContactInfoResp
public class EPPContactInfoResp
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:
getId
and setId
to get and set the elements.getStatuses
and setStatuses
to get and set the elements.getPostalInfo
,
addPostalInfo
and setPostalInfo
to get, add and set the elements.getVoice
and setVoice
to get and set the elements.getFax
and setFax
to get and set the elements.getEmail
and
setEmail
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.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 element.getDisclose
and setDisclose
to get and set the element.
EPPContactInfoCmd
,
Serialized FormField Summary |
---|
Fields inherited from class com.verisign.epp.codec.gen.EPPResponse |
---|
extensions, TRANSFER_CLIENT_APPROVED, TRANSFER_CLIENT_CANCELLED, TRANSFER_CLIENT_REJECTED, TRANSFER_PENDING, TRANSFER_SERVER_APPROVED, TRANSFER_SERVER_CANCELLED |
Constructor Summary | |
---|---|
EPPContactInfoResp()
EPPContactInfoResp default 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)
EPPContactInfoResp constructor that sets the required attributes with the parameters. |
Method Summary | |
---|---|
void |
addPostalInfo(EPPContactPostalDefinition aPostalInfo)
Adds contact postal info. |
java.lang.Object |
clone()
Clone EPPContactInfoResp . |
protected void |
doDecode(org.w3c.dom.Element aElement)
Decode the EPPContactInfoResp 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 EPPContactInfoResp instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of EPPContactInfoResp with this instance. |
EPPAuthInfo |
getAuthInfo()
Gets the authorization information. |
java.lang.String |
getClientId()
Gets the contact owning Client Id. |
java.lang.String |
getCreatedBy()
Gets Client Id that created the contact. |
java.util.Date |
getCreatedDate()
Gets the date and time the contact was created. |
EPPContactDisclose |
getDisclose()
Gets the disclose information. |
java.lang.String |
getEmail()
Gets the contact email. |
java.lang.String |
getFax()
Gets the contact fax number. |
java.lang.String |
getFaxExt()
Gets the fax number extension. |
EPPContactPostalDefinition |
getFirstPostalInfo()
Gets the first postal info object. |
java.lang.String |
getId()
Gets the contact identifier. |
java.util.Date |
getLastTransferDate()
Gets the last date and time the contact was successfully transferred. |
java.lang.String |
getLastUpdatedBy()
Gets the Client Id that last updated the contact. |
java.util.Date |
getLastUpdatedDate()
Gets the date and time of the last contact update. |
java.lang.String |
getNamespace()
Gets the EPP command namespace associated with EPPContactInfoResp . |
java.util.Vector |
getPostalInfo()
Gets the contact postal info. |
java.lang.String |
getRoid()
Gets the Registry Object Identifier (ROID). |
java.util.Vector |
getStatuses()
Gets the contact statuses. |
java.lang.String |
getType()
Gets the EPP response type associated with EPPContactInfoResp . |
java.lang.String |
getVoice()
Gets the contact voice number. |
java.lang.String |
getVoiceExt()
Get voice number extension. |
boolean |
hasAuthInfo()
Returns true if the contact has authinfo |
boolean |
hasClientId()
Returns true if the contact has owning client Id. |
boolean |
hasCreatedBy()
Returns true if the contact has client id that created it |
boolean |
hasCreatedDate()
Returns true if the contact has created date |
boolean |
hasDisclose()
Returns true if the contact has disclose flag |
boolean |
hasEmail()
Returns true if the contact has email |
boolean |
hasFax()
Returns true if the contact has fax |
boolean |
hasFaxExt()
Returns true if the contact has fax extension |
boolean |
hasId()
Returns true if the contact has ID |
boolean |
hasLastTransferDate()
Returns true if the contact has the last date/time it was transferred |
boolean |
hasLastUpdatedBy()
Returns true if the contact has client id that last updated it |
boolean |
hasLastUpdatedDate()
Returns true if the contact has last date/time it was updated |
boolean |
hasPostalContacts()
Returns true if the contact has postal info |
boolean |
hasRoid()
Returns true if the contact has Registry Object Identifier (ROID). |
boolean |
hasStatuses()
Returns true if the contact has statuses |
boolean |
hasVoice()
Returns true if the contact has voice |
boolean |
hasVoiceExt()
Returns true if the contact has voice extension |
void |
setAuthInfo(EPPAuthInfo aAuthInfo)
Sets the authorization information. |
void |
setClientId(java.lang.String aClientId)
Sets the contact owning Client Id. |
void |
setCreatedBy(java.lang.String aCreatedBy)
Sets Client Id that created the contact. |
void |
setCreatedDate(java.util.Date aDate)
Sets the date and time the contact was created. |
void |
setDisclose(EPPContactDisclose aDisclose)
Sets the disclose information. |
void |
setEmail(java.lang.String aEmail)
Sets the contact email. |
void |
setFax(java.lang.String aFax)
Sets the contact fax number. |
void |
setFaxExt(java.lang.String aFaxExt)
Sets the fax number extension. |
void |
setId(java.lang.String aId)
Sets the contact identifier. |
void |
setLastTransferDate(java.util.Date aLastTransferDate)
Sets the last date and time the contact was successfully transferred. |
void |
setLastUpdatedBy(java.lang.String aLastUpdatedBy)
Sets the Client Id that last updated the contact. |
void |
setLastUpdatedDate(java.util.Date aLastUpdatedDate)
Sets the last date and time the contact was updated. |
void |
setPostalInfo(java.util.Vector aPostalInfo)
Set contact postal info. |
void |
setRoid(java.lang.String aRoid)
Sets the Registry Object Identifier (ROID). |
void |
setStatuses(java.util.Vector aStatuses)
Sets the contact statuses. |
void |
setVoice(java.lang.String aVoice)
Sets the contact voice number. |
void |
setVoiceExt(java.lang.String aVoiceExt)
Sets the contact voice extension. |
java.lang.String |
toString()
Implementation of Object.toString , which will result in an indented XML String
representation of the concrete EPPCodecComponent . |
Methods inherited from class com.verisign.epp.codec.gen.EPPResponse |
---|
addExtension, decode, encode, 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 |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EPPContactInfoResp()
EPPContactInfoResp
default constructor. Must call required setter methods before invoking
encode
, which include:setTransId
setContact
setClientId
setPostalInfo
addPostalInfo
setCreatedBy
setCreatedDate
setLastUpdatedBy
setLastUpdatedDate
setLastTransferBy
setLastTransferDate
setAuthId
setDisclose
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)
EPPContactInfoResp
constructor that sets the required attributes with the parameters. The following
optional attributes can be set:
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 informationMethod Detail |
---|
public java.lang.String getType()
EPPContactInfoResp
.
getType
in class EPPResponse
EPPContactInfoResp.ELM_NAME
public java.lang.String getNamespace()
EPPContactInfoResp
.
getNamespace
in interface EPPMessage
getNamespace
in class EPPResponse
EPPContactMapFactory.NS
public java.lang.String getClientId()
null
otherwise.public boolean hasClientId()
true
if the contact has owning client Id.
true
if the contact has owning client Id false
otherwisepublic void setClientId(java.lang.String aClientId)
aClientId
- Client Idpublic java.lang.String getCreatedBy()
null
otherwise.public boolean hasCreatedBy()
true
if the contact has client id that created it
true
if the contact has client id that created it false
otherwisepublic void setCreatedBy(java.lang.String aCreatedBy)
aCreatedBy
- Client Id that created the contact if defined; null
otherwise.public java.util.Date getCreatedDate()
null
otherwise.public boolean hasCreatedDate()
true
if the contact has created date
true
if the contact has created date false
otherwisepublic void setCreatedDate(java.util.Date aDate)
aDate
- Date and time the contact was created.public java.lang.String getLastUpdatedBy()
null
otherwise.public boolean hasLastUpdatedBy()
true
if the contact has client id that last updated it
true
if the contact has client id that last updated it false
otherwisepublic void setLastUpdatedBy(java.lang.String aLastUpdatedBy)
aLastUpdatedBy
- Client Id String that last updated the contact.public java.util.Date getLastUpdatedDate()
null
if the contact has not been
updated since creation.
null
otherwise.public boolean hasLastUpdatedDate()
true
if the contact has last date/time it was updated
true
if the contact has last date/time it was updated false
otherwisepublic void setLastUpdatedDate(java.util.Date aLastUpdatedDate)
aLastUpdatedDate
- Date and time of the last contact updatepublic java.util.Date getLastTransferDate()
null
otherwise.public boolean hasLastTransferDate()
true
if the contact has the last date/time it was transferred
true
if the contact has the last date/time it was transferred false
otherwisepublic void setLastTransferDate(java.util.Date aLastTransferDate)
aLastTransferDate
- Date and time of the last successful transfer.protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPContactInfoResp
instance.
doEncode
in class EPPResponse
aDocument
- DOM Document that is being built. Used as an Element factory.
EPPEncodeException
- Unable to encode EPPContactPingMap instance.protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPContactInfoResp
attributes from the aElement DOM Element tree.
doDecode
in class EPPResponse
aElement
- Root DOM Element to decode EPPContactInfoResp
from.
EPPDecodeException
- Unable to decode aElementpublic boolean equals(java.lang.Object aObject)
EPPContactInfoResp
with this instance.
equals
in class EPPResponse
aObject
- Object to compare with.
true
if the objects are equal otherwise false
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPContactInfoResp
.
clone
in interface EPPCodecComponent
clone
in class EPPResponse
EPPContactInfoResp
java.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 EPPResponse
String
if successful; ERROR
otherwise.public java.util.Vector getPostalInfo()
null
otherwisepublic boolean hasPostalContacts()
true
if the contact has postal info
true
if the contact has postal info false
otherwisepublic EPPContactPostalDefinition getFirstPostalInfo()
EPPContactPostalDefinition
) if it exists; null
otherwise.public void setPostalInfo(java.util.Vector aPostalInfo)
aPostalInfo
- Vector
of EPPContactPostalDefinition
objects.public void addPostalInfo(EPPContactPostalDefinition aPostalInfo)
aPostalInfo
- EPPContactPostalDefinition
object to add to Vector
of postal info.public EPPAuthInfo getAuthInfo()
null
otherwise;public boolean hasAuthInfo()
true
if the contact has authinfo
true
if the contact has authinfo false
otherwisepublic void setAuthInfo(EPPAuthInfo aAuthInfo)
aAuthInfo
- Authorization informationpublic EPPContactDisclose getDisclose()
null
otherwise;public boolean hasDisclose()
true
if the contact has disclose flag
true
if the contact has disclose flag false
otherwisepublic void setDisclose(EPPContactDisclose aDisclose)
aDisclose
- Contact disclose informationpublic java.lang.String getEmail()
null
otherwise.public boolean hasEmail()
true
if the contact has email
true
if the contact has email false
otherwisepublic void setEmail(java.lang.String aEmail)
aEmail
- Contact emailpublic java.lang.String getFax()
null
otherwise.public boolean hasFax()
true
if the contact has fax
true
if the contact has fax false
otherwisepublic void setFax(java.lang.String aFax)
aFax
- Contact fax numberpublic java.lang.String getFaxExt()
null
otherwise.public boolean hasFaxExt()
true
if the contact has fax extension
true
if the contact has fax extension false
otherwisepublic void setFaxExt(java.lang.String aFaxExt)
aFaxExt
- Fax number extensionpublic java.lang.String getId()
null
otherwise.public boolean hasId()
true
if the contact has ID
true
if the contact has ID false
otherwisepublic void setId(java.lang.String aId)
aId
- Contact identifierpublic java.util.Vector getStatuses()
Vector
of EPPContactStatus
objects.public boolean hasStatuses()
true
if the contact has statuses
true
if the contact has statues false
otherwisepublic void setStatuses(java.util.Vector aStatuses)
aStatuses
- Vector
of EPPContactStatus
objects.public java.lang.String getVoice()
null
otherwise.public boolean hasVoice()
true
if the contact has voice
true
if the contact has voice false
otherwisepublic void setVoice(java.lang.String aVoice)
aVoice
- contact voice numberpublic java.lang.String getVoiceExt()
null
otherwise.public boolean hasVoiceExt()
true
if the contact has voice extension
true
if the contact has voice extension false
otherwisepublic void setVoiceExt(java.lang.String aVoiceExt)
aVoiceExt
- voice extensionpublic java.lang.String getRoid()
null
otherwise.public boolean hasRoid()
true
if the contact has Registry Object Identifier (ROID).
true
if the contact has Registry Object Identifier (ROID) false
otherwisepublic void setRoid(java.lang.String aRoid)
aRoid
- Registry Object Identifier (ROID)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |