Package com.verisign.epp.codec.nameWatch
Class EPPNameWatchInfoResp
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPResponse
-
- com.verisign.epp.codec.nameWatch.EPPNameWatchInfoResp
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
public class EPPNameWatchInfoResp extends EPPResponse
Represents an EPP NameWatch <nameWatch:infData> response to anEPPNameWatchInfoCmd. When an <info> command has been processed successfully, the EPP <resData> element MUST contain a child <nameWatch:infData> element that identifies the nameWatch namespace and the location of the nameWatch schema. The <nameWatch:infData> element contains the following child elements:
-
A <nameWatch:name> element that contains the fully qualified name of
the nameWatch. Use
getNameandsetNameto get and set the element. -
A <nameWatch:roid> element that contains the Repository Object
IDentifier assigned to the nameWatch object when the object was created.
Use
getRoidandsetRoidto get and set the element. -
A <nameWatch:registrant> elements that contain identifiers for the
human or organizational social information objects associated with the
nameWatch object. Use
getRegistrantandsetRegistrantto get and set the element. -
A <nameWatch> element that contains the report to descriptors
associated with the nameWatch. See the
EPPNameWatchRptTodescription for detail. UsegetRptToandsetRptToto get and set the element. -
One or more <nameWatch:status> elements that contain the current
status descriptors associated with the nameWatch. See the
EPPNameWatchStatusdescription for a list of valid status values. UsegetStatusandsetStatusto get and set the elements. -
A <nameWatch:clID> element that contains the identifier of the
sponsoring client. Use
getClientIdandsetClientIdto get and set the element. -
A <nameWatch:crID> element that contains the identifier of the client
that created the nameWatch name. Use
getCreatedByandsetCreatedByto get and set the element. -
A <nameWatch:crDate> element that contains the date and time of
nameWatch creation. Use
getCreatedDateandsetCreatedDateto get and set the element. -
An OPTIONAL <nameWatch:upID> element that contains the identifier of
the client that last updated the nameWatch name. This element MUST NOT be
present if the nameWatch has never been modified. Use
getLastUpdatedByandsetLastUpdatedByto get and set the element. -
An OPTIONAL <nameWatch:upDate> element that contains the date and time
of the most recent nameWatch modification. This element MUST NOT be
present if the nameWatch has never been modified. Use
getLastUpdatedDateandsetLastUpdatedDateto get and set the element. -
A <nameWatch:exDate> element that contains the date and time
identifying the end of the nameWatch's registration period. Use
getExpirationDateandsetExpirationDateto get and set the element. -
An OPTIONAL <nameWatch:trDate> elements that contains the date and
time of the most recent successful transfer. This element MUST NOT be
provided if the nameWatch has never been transferred. Use
getLastTransferDateandsetLastTransferDateto get and set the element. -
An OPTIONAL <nameWatch:authInfo> element that contains authorization
information associated with the nameWatch 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:
EPPNameWatchInfoCmd, 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 EPPNameWatchInfoResp()EPPNameWatchInfoRespdefault constructor.EPPNameWatchInfoResp(EPPTransId aTransId, java.lang.String aName)EPPNameWatchInfoRespdefault constructor.EPPNameWatchInfoResp(EPPTransId aTransId, java.lang.String aName, java.lang.String aRoid, java.lang.String aClientId)EPPNameWatchInfoRespconstuctor that takes the required attribute values as parameters.EPPNameWatchInfoResp(EPPTransId aTransId, java.lang.String aName, java.lang.String aRoid, java.lang.String aRegistrant, EPPNameWatchRptTo aRptTo, java.util.Vector someStatuses, java.lang.String aClientId, java.lang.String aCreatedBy, java.util.Date aCreatedDate, java.util.Date aExpirationDate)EPPNameWatchInfoRespconstuctor that takes the required and most used optional attribute values as parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPNameWatchInfoResp.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPNameWatchInfoRespattributes 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 theEPPNameWatchInfoRespinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPNameWatchInfoRespwith this instance.EPPAuthInfogetAuthInfo()Gets authorization informationjava.lang.StringgetClientId()Gets the nameWatch owning Client Id.java.lang.StringgetCreatedBy()Gets Client Id that created the nameWatch.java.util.DategetCreatedDate()Gets the date and time the nameWatch was created.java.util.DategetExpirationDate()Gets the expiration date and time of the nameWatch.java.util.DategetLastTransferDate()Gets the date and time of the last successful nameWatch transfer.java.lang.StringgetLastUpdatedBy()Gets the Client Id that last updated the nameWatch.java.util.DategetLastUpdatedDate()Gets the date and time of the last nameWatch update.java.lang.StringgetName()Gets the nameWatch namejava.lang.StringgetNamespace()Gets the EPP command namespace associated withEPPNameWatchInfoResp.java.lang.StringgetRegistrant()Gets the nameWatch registrantjava.lang.StringgetRoid()Gets roid.EPPNameWatchRptTogetRptTo()Gets the EPPNameWatchRptTo.java.util.VectorgetStatuses()Get the current associated statusesjava.lang.StringgetType()Gets the EPP response type associated withEPPNameWatchInfoResp.voidsetAuthInfo(EPPAuthInfo newAuthInfo)Sets authorization informationvoidsetClientId(java.lang.String aClientId)Sets the nameWatch owning Client Id.voidsetCreatedBy(java.lang.String aCreatedBy)Sets Client Id that created the nameWatch.voidsetCreatedDate(java.util.Date aDate)Sets the date and time the nameWatch was created.voidsetExpirationDate(java.util.Date aExpirationDate)Sets the expiration date and time of the nameWatch.voidsetLastTransferDate(java.util.Date aLastTransferDate)Sets the last date and time the nameWatch was successfully transferred.voidsetLastUpdatedBy(java.lang.String aLastUpdatedBy)Sets the Client Id that last updated the nameWatch.voidsetLastUpdatedDate(java.util.Date aLastUpdatedDate)Sets the last date and time the nameWatch was updated.voidsetName(java.lang.String aName)Sets the nameWatch name.voidsetRegistrant(java.lang.String aRegistrant)Sets the nameWatch registrantvoidsetRoid(java.lang.String newRoid)Sets roid.voidsetRptTo(EPPNameWatchRptTo aRptTo)Sets the rptTo.voidsetStatuses(java.util.Vector newStatuses)Set associated statuses.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
-
EPPNameWatchInfoResp
public EPPNameWatchInfoResp()
EPPNameWatchInfoRespdefault constructor. Must call required setter methods before invokingencode, which include:
-
transaction id -
setTransId -
name -
setName -
roid -
setRoid -
client id -
setClientId
-
transaction id -
-
EPPNameWatchInfoResp
public EPPNameWatchInfoResp(EPPTransId aTransId, java.lang.String aName)
EPPNameWatchInfoRespdefault constructor. Must call required setter methods before invokingencode, which include:
-
roid -
setRoid -
client id -
setClientId
- Parameters:
aTransId- DOCUMENT ME!aName- DOCUMENT ME!
-
roid -
-
EPPNameWatchInfoResp
public EPPNameWatchInfoResp(EPPTransId aTransId, java.lang.String aName, java.lang.String aRoid, java.lang.String aClientId)
EPPNameWatchInfoRespconstuctor 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.aName- NameWatch nameaRoid- roidaClientId- Owning Client Id
-
EPPNameWatchInfoResp
public EPPNameWatchInfoResp(EPPTransId aTransId, java.lang.String aName, java.lang.String aRoid, java.lang.String aRegistrant, EPPNameWatchRptTo aRptTo, java.util.Vector someStatuses, java.lang.String aClientId, java.lang.String aCreatedBy, java.util.Date aCreatedDate, java.util.Date aExpirationDate)
EPPNameWatchInfoRespconstuctor that takes the required and most used optional attribute values as parameters. The setter methods of the optional attributes can be called before invokingencode.- Parameters:
aTransId- Transaction Id associated with response.aName- NameWatch nameaRoid- roidaRegistrant- NameWatch registrantaRptTo- EPPNameWatchRptTo rptTosomeStatuses- Current status descriptors associated with the nameWatch.aClientId- Owning Client IdaCreatedBy- Client Id of Registrar that created the nameWatchaCreatedDate- Date the nameWatch was createdaExpirationDate- Expirate date of the nameWatch
-
-
Method Detail
-
getStatuses
public java.util.Vector getStatuses()
Get the current associated statuses- Returns:
- NameWatch status
-
setStatuses
public void setStatuses(java.util.Vector newStatuses)
Set associated statuses.- Parameters:
newStatuses- NameWatch status
-
getType
public java.lang.String getType()
Gets the EPP response type associated withEPPNameWatchInfoResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPNameWatchInfoResp.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command namespace associated withEPPNameWatchInfoResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPNameWatchMapFactory.NS
-
getRptTo
public EPPNameWatchRptTo getRptTo()
Gets the EPPNameWatchRptTo.- Returns:
- instance of
EPPNameWatchRptToinstances if defined;nullotherwise.
-
setRptTo
public void setRptTo(EPPNameWatchRptTo aRptTo)
Sets the rptTo.- Parameters:
aRptTo- ofEPPNameWatchRptTo.
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPNameWatchInfoRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPNameWatchInfoResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPNameWatchInfoResp - 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.
-
getName
public java.lang.String getName()
Gets the nameWatch name- Returns:
- NameWatch Name if defined;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
Sets the nameWatch name.- Parameters:
aName- NameWatch Name
-
setRegistrant
public void setRegistrant(java.lang.String aRegistrant)
Sets the nameWatch registrant- Parameters:
aRegistrant- NameWatch Registrant
-
getRegistrant
public java.lang.String getRegistrant()
Gets the nameWatch registrant- Returns:
- NameWatch Registrant if defined;
nullotherwise.
-
getClientId
public java.lang.String getClientId()
Gets the nameWatch owning Client Id.- Returns:
- Client Id
-
setClientId
public void setClientId(java.lang.String aClientId)
Sets the nameWatch owning Client Id.- Parameters:
aClientId- Client Id
-
getCreatedBy
public java.lang.String getCreatedBy()
Gets Client Id that created the nameWatch.- Returns:
- Client Id if defined;
nullotherwise.
-
setCreatedBy
public void setCreatedBy(java.lang.String aCreatedBy)
Sets Client Id that created the nameWatch.- Parameters:
aCreatedBy- Client Id that created the nameWatch.
-
getCreatedDate
public java.util.Date getCreatedDate()
Gets the date and time the nameWatch was created.- Returns:
- Date and time the nameWatch was created if defined;
nullotherwise.
-
setCreatedDate
public void setCreatedDate(java.util.Date aDate)
Sets the date and time the nameWatch was created.- Parameters:
aDate- Date and time the nameWatch was created.
-
getExpirationDate
public java.util.Date getExpirationDate()
Gets the expiration date and time of the nameWatch.- Returns:
- Expiration date and time of the nameWatch if defined;
nullotherwise.
-
setExpirationDate
public void setExpirationDate(java.util.Date aExpirationDate)
Sets the expiration date and time of the nameWatch.- Parameters:
aExpirationDate- Expiration date and time of the nameWatch.
-
getLastUpdatedBy
public java.lang.String getLastUpdatedBy()
Gets the Client Id that last updated the nameWatch. This will be null if the nameWatch has not been updated since creation.- Returns:
- Client Id that last updated the nameWatch has been updated;
nullotherwise.
-
setLastUpdatedBy
public void setLastUpdatedBy(java.lang.String aLastUpdatedBy)
Sets the Client Id that last updated the nameWatch.- Parameters:
aLastUpdatedBy- Client Id String that last updated the nameWatch.
-
getLastUpdatedDate
public java.util.Date getLastUpdatedDate()
Gets the date and time of the last nameWatch update. This will benullif the nameWatch has not been updated since creation.- Returns:
- date and time of the last nameWatch update if defined;
nullotherwise.
-
setLastUpdatedDate
public void setLastUpdatedDate(java.util.Date aLastUpdatedDate)
Sets the last date and time the nameWatch was updated.- Parameters:
aLastUpdatedDate- Date and time of the last nameWatch update.
-
getLastTransferDate
public java.util.Date getLastTransferDate()
Gets the date and time of the last successful nameWatch transfer. This will benullif the nameWatch has not been successfully transferred since creation.- Returns:
- date and time of the last successful transfer if defined;
nullotherwise.
-
setLastTransferDate
public void setLastTransferDate(java.util.Date aLastTransferDate)
Sets the last date and time the nameWatch was successfully transferred.- Parameters:
aLastTransferDate- Date and time of the last succesful transfer
-
getAuthInfo
public EPPAuthInfo getAuthInfo()
Gets authorization information- Returns:
- Authorization information if defined;
nullotherwise;
-
setAuthInfo
public void setAuthInfo(EPPAuthInfo newAuthInfo)
Sets authorization information- Parameters:
newAuthInfo- EPPAuthInfo
-
getRoid
public java.lang.String getRoid()
Gets roid.- Returns:
- NameWatch roid
-
setRoid
public void setRoid(java.lang.String newRoid)
Sets roid.- Parameters:
newRoid- NameWatch roid
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPNameWatchInfoRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the EPPNameWatchInfoResp instance.
- Throws:
EPPEncodeException- Unable to encode EPPNameWatchInfoResp instance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPNameWatchInfoRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPNameWatchInfoRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
-