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,Serializable,Cloneable
Represents an EPP NameWatch <nameWatch:infData> response to an
EPPNameWatchInfoCmd. 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:
-
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
ConstructorsConstructorDescriptionEPPNameWatchInfoRespdefault constructor.EPPNameWatchInfoResp(EPPTransId aTransId, String aName) EPPNameWatchInfoRespdefault constructor.EPPNameWatchInfoResp(EPPTransId aTransId, String aName, String aRoid, String aClientId) EPPNameWatchInfoRespconstuctor that takes the required attribute values as parameters.EPPNameWatchInfoResp(EPPTransId aTransId, String aName, String aRoid, String aRegistrant, EPPNameWatchRptTo aRptTo, Vector someStatuses, String aClientId, String aCreatedBy, Date aCreatedDate, Date aExpirationDate) EPPNameWatchInfoRespconstuctor that takes the required and most used optional attribute values as parameters. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPNameWatchInfoResp.protected voidDecode theEPPNameWatchInfoRespattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPNameWatchInfoRespinstance.booleanCompare an instance ofEPPNameWatchInfoRespwith this instance.Gets authorization informationGets the nameWatch owning Client Id.Gets Client Id that created the nameWatch.Gets the date and time the nameWatch was created.Gets the expiration date and time of the nameWatch.Gets the date and time of the last successful nameWatch transfer.Gets the Client Id that last updated the nameWatch.Gets the date and time of the last nameWatch update.getName()Gets the nameWatch nameGets the EPP command namespace associated withEPPNameWatchInfoResp.Gets the nameWatch registrantgetRoid()Gets roid.getRptTo()Gets the EPPNameWatchRptTo.Get the current associated statusesgetType()Gets the EPP response type associated withEPPNameWatchInfoResp.voidsetAuthInfo(EPPAuthInfo newAuthInfo) Sets authorization informationvoidsetClientId(String aClientId) Sets the nameWatch owning Client Id.voidsetCreatedBy(String aCreatedBy) Sets Client Id that created the nameWatch.voidsetCreatedDate(Date aDate) Sets the date and time the nameWatch was created.voidsetExpirationDate(Date aExpirationDate) Sets the expiration date and time of the nameWatch.voidsetLastTransferDate(Date aLastTransferDate) Sets the last date and time the nameWatch was successfully transferred.voidsetLastUpdatedBy(String aLastUpdatedBy) Sets the Client Id that last updated the nameWatch.voidsetLastUpdatedDate(Date aLastUpdatedDate) Sets the last date and time the nameWatch was updated.voidSets the nameWatch name.voidsetRegistrant(String aRegistrant) Sets the nameWatch registrantvoidSets roid.voidsetRptTo(EPPNameWatchRptTo aRptTo) Sets the rptTo.voidsetStatuses(Vector newStatuses) Set associated statuses.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
-
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
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
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, String aName, String aRoid, String aRegistrant, EPPNameWatchRptTo aRptTo, Vector someStatuses, String aClientId, String aCreatedBy, Date aCreatedDate, 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 Details
-
getStatuses
Get the current associated statuses- Returns:
- NameWatch status
-
setStatuses
Set associated statuses.- Parameters:
newStatuses- NameWatch status
-
getType
Gets the EPP response type associated withEPPNameWatchInfoResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPNameWatchInfoResp.ELM_NAME
-
getNamespace
Gets the EPP command namespace associated withEPPNameWatchInfoResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPNameWatchMapFactory.NS
-
getRptTo
Gets the EPPNameWatchRptTo.- Returns:
- instance of
EPPNameWatchRptToinstances if defined;nullotherwise.
-
setRptTo
Sets the rptTo.- Parameters:
aRptTo- ofEPPNameWatchRptTo.
-
equals
Compare an instance ofEPPNameWatchInfoRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPNameWatchInfoResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPNameWatchInfoResp - 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.
-
getName
Gets the nameWatch name- Returns:
- NameWatch Name if defined;
nullotherwise.
-
setName
Sets the nameWatch name.- Parameters:
aName- NameWatch Name
-
setRegistrant
Sets the nameWatch registrant- Parameters:
aRegistrant- NameWatch Registrant
-
getRegistrant
Gets the nameWatch registrant- Returns:
- NameWatch Registrant if defined;
nullotherwise.
-
getClientId
Gets the nameWatch owning Client Id.- Returns:
- Client Id
-
setClientId
Sets the nameWatch owning Client Id.- Parameters:
aClientId- Client Id
-
getCreatedBy
Gets Client Id that created the nameWatch.- Returns:
- Client Id if defined;
nullotherwise.
-
setCreatedBy
Sets Client Id that created the nameWatch.- Parameters:
aCreatedBy- Client Id that created the nameWatch.
-
getCreatedDate
Gets the date and time the nameWatch was created.- Returns:
- Date and time the nameWatch was created if defined;
nullotherwise.
-
setCreatedDate
Sets the date and time the nameWatch was created.- Parameters:
aDate- Date and time the nameWatch was created.
-
getExpirationDate
Gets the expiration date and time of the nameWatch.- Returns:
- Expiration date and time of the nameWatch if defined;
nullotherwise.
-
setExpirationDate
Sets the expiration date and time of the nameWatch.- Parameters:
aExpirationDate- Expiration date and time of the nameWatch.
-
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
Sets the Client Id that last updated the nameWatch.- Parameters:
aLastUpdatedBy- Client Id String that last updated the nameWatch.
-
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
Sets the last date and time the nameWatch was updated.- Parameters:
aLastUpdatedDate- Date and time of the last nameWatch update.
-
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
Sets the last date and time the nameWatch was successfully transferred.- Parameters:
aLastTransferDate- Date and time of the last succesful transfer
-
getAuthInfo
Gets authorization information- Returns:
- Authorization information if defined;
nullotherwise;
-
setAuthInfo
Sets authorization information- Parameters:
newAuthInfo- EPPAuthInfo
-
getRoid
Gets roid.- Returns:
- NameWatch roid
-
setRoid
Sets roid.- Parameters:
newRoid- NameWatch roid
-
doEncode
Encode 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
Decode theEPPNameWatchInfoRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPNameWatchInfoRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-