Package com.verisign.epp.codec.defReg
Class EPPDefRegInfoResp
java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.defReg.EPPDefRegInfoResp
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP DefReg
<defReg:infData> response to an
EPPDefRegInfoCmd. When an <info> command has been
processed successfully, the EPP <resData> element MUST contain a child
<defReg:infData> element that identifies the defReg namespace. The
<defReg:infData> element contains the following child elements:-
A
<defReg:roid>element that contains the Repository Object Identifier assigned to the defReg object then the object was created. -
A
<defReg:name>element that contains the name of the defReg object. -
An OPTIONAL
<defReg:registrant>element that contains the identifier for the human or organizational social information (contact) object to be associated with the defReg object as the object registrant. This object identifier MUST be known to the server before the contact object can be associated with the defReg object. -
An OPTIONAL
<defReg:tm>element that contains the Trademark Identifier (ID) associated with the defReg object. -
An OPTIONAL
<defReg:tmCountry>element that indicates the country which issued the trademark associated with the defReg object. -
An OPTIONAL
<defReg:tmDate>element that indicates the date the trademark was issued. -
An OPTIONAL
<defReg:adminContact>element that contains the identifier of the administrator associated with the defReg object. -
Zero or more OPTIONAL
<defReg:status>elements that contain the current status descriptors associated with the defReg. -
A
<defReg:clID>element that contains the identifier of the sponsoring client. -
An OPTIONAL
<defReg:crID>element that contains the identifier of the client that created the defReg. -
An OPTIONAL
<defReg:crDate>element that contains the date and time of defReg object creation. -
An OPTIONAL
<defReg:upID>element that contains the identifier of the client that last updated the defReg object. This element MUST NOT be present if the defReg has never been modified. -
An OPTIONAL
<defReg:upDate>element that contains the date and time of the most recent defReg object modification. This element MUST NOT be present if the defReg has never been modified. -
An OPTIONAL
<defReg:exDate>element that contains the date and time identifying the end of the defReg object's registration period. -
An OPTIONAL
<defReg:trDate>element that contains the date and time of the most recent successful defReg object transfer. This element MUST NOT be provided if the defReg object has never been transferred. -
An OPTIONAL
<defReg:authInfo>element that contains authorization information associated with the defReg object. This element MUST NOT be provided if the querying client is not the current sponsoring client, or if the client supplied valid authorization information with the command.
- 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
ConstructorsConstructorDescriptionEPPDefRegInfoRespdefault constructor.EPPDefRegInfoResp(EPPTransId aTransId, EPPDefRegName aName, String aRoid, String aClientId) EPPDefRegInfoRespconstuctor that takes the required attribute values as parameters.EPPDefRegInfoResp(EPPTransId aTransId, EPPDefRegName aName, String aRoid, String aRegistrant, String aTm, String aTmCountry, Date aTmDate, String aAdminContact, Vector aSomeStatuses, String aClientId, String aCreatedBy, Date aCreatedDate, EPPAuthInfo aAuthInfo) EPPDefRegInfoRespconstuctor that takes the required attribute and most used optional values as parameters. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPDefRegInfoResp.protected voidDecode theEPPDefRegInfoRespattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPDefRegInfoRespinstance.booleanCompare an instance ofEPPDefRegInfoRespwith this instance.Get the AdminContact informnation.Get authorization informationGets Client Id that created the defReg.Gets Create Id that created the defReg.Gets the date and time the defReg was created.Gets the expiration date and time of the defReg.Gets the date and time of the last successful defReg transfer.Gets the Client Id that last updated the defReg.Gets the date and time of the last defReg update.getName()Gets the defReg nameGets the EPP command namespace associated withEPPDefRegInfoResp.Get the registrant informnation.getRoid()Get roid.Get the current associated statusesgetTm()Get the trademark informnation.Get the trademark country informnation.Get the trademark date informnation.getType()Gets the EPP response type associated withEPPDefRegInfoResp.voidsetAdminContact(String aAdminContact) Set the AdminContact informnation.voidsetAuthInfo(EPPAuthInfo newAuthInfo) Set authorization informationvoidsetClientId(String aClientId) Sets Client Id that created the defReg.voidsetCreatedBy(String aCreatedBy) Sets Client Id that created the defReg.voidsetCreatedDate(Date aDate) Sets the date and time the defReg was created.voidsetExpirationDate(Date aExpirationDate) Sets the expiration date and time of the defReg.voidsetLastTransferDate(Date aLastTransferDate) Sets the last date and time the defReg was successfully transferred.voidsetLastUpdatedBy(String aLastUpdatedBy) Sets the Client Id that last updated the defReg.voidsetLastUpdatedDate(Date aLastUpdatedDate) Sets the last date and time the defReg was updated.voidsetName(EPPDefRegName aName) Sets the defReg name.voidsetRegistrant(String aRegistrant) Set the registrant informnation.voidSet roid.voidsetStatuses(Vector newStatuses) Set associated statuses.voidSet the trademark informnation.voidsetTmCountry(String aTmCountry) Set the trademark country informnation.voidSet the trademark date informnation.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
-
EPPDefRegInfoResp
public EPPDefRegInfoResp()EPPDefRegInfoRespdefault constructor. Must call required setter methods before invokingencode, which include:
- name -
setName - registrant is set to
null - period is set to
UNSPEC_PERIOD - tm is set to
null. - tmcountry is set to
null. - tmdate is set to
null. - admincontact is set to
null. - roid -
setRoid - statuses -
setStatuses - created by -
setCreatedBy - created date -
setCreatedDate - transaction id -
setTransId
- name -
-
EPPDefRegInfoResp
EPPDefRegInfoRespconstuctor 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- DefReg nameaRoid- roidaClientId- Expirate date of the defReg
-
EPPDefRegInfoResp
public EPPDefRegInfoResp(EPPTransId aTransId, EPPDefRegName aName, String aRoid, String aRegistrant, String aTm, String aTmCountry, Date aTmDate, String aAdminContact, Vector aSomeStatuses, String aClientId, String aCreatedBy, Date aCreatedDate, EPPAuthInfo aAuthInfo) EPPDefRegInfoRespconstuctor that takes the required attribute and most used optional values as parameters. The setter methods of the optional attributes can be called before invokingencode.- Parameters:
aTransId- Transaction Id associated with response.aName- DefReg nameaRoid- roidaRegistrant- DefReg RegistrantaTm- DefReg TradeMarkaTmCountry- DefReg TradeMarkCountryaTmDate- DefReg TradeMarkDateaAdminContact- DefReg AdminContactaSomeStatuses- Current status descriptors associated with the defReg.aClientId- Expirate date of the defRegaCreatedBy- Client Id of Registrar that created the defRegaCreatedDate- Date the defReg was createdaAuthInfo- DOCUMENT ME!
-
-
Method Details
-
getStatuses
Get the current associated statuses- Returns:
- java.util.Vector
-
setStatuses
Set associated statuses.- Parameters:
newStatuses- java.util.Vector
-
getType
Gets the EPP response type associated withEPPDefRegInfoResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPDefRegInfoResp.ELM_NAME
-
getNamespace
Gets the EPP command namespace associated withEPPDefRegInfoResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPDefRegMapFactory.NS
-
equals
Compare an instance ofEPPDefRegInfoRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPDefRegInfoResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPDefRegInfoResp - 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 defReg name- Returns:
- DefReg Name if defined;
nullotherwise.
-
setName
Sets the defReg name.- Parameters:
aName- DefReg Name
-
getRegistrant
Get the registrant informnation.- Returns:
- DefReg registrant
-
setRegistrant
Set the registrant informnation.- Parameters:
aRegistrant- DefReg registrant
-
getTm
Get the trademark informnation.- Returns:
- DefReg tradeMark
-
setTm
Set the trademark informnation.- Parameters:
aTm- DefReg registrant
-
getTmCountry
Get the trademark country informnation.- Returns:
- DefReg trademark country
-
setTmCountry
Set the trademark country informnation.- Parameters:
aTmCountry- DefReg trademark country
-
getTmDate
Get the trademark date informnation.- Returns:
- DefReg trademark date
-
setTmDate
Set the trademark date informnation.- Parameters:
aTmDate- DefReg trademark date
-
getAdminContact
Get the AdminContact informnation.- Returns:
- DefReg AdminContact
-
setAdminContact
Set the AdminContact informnation.- Parameters:
aAdminContact- DefReg AdminContact
-
getAuthInfo
Get authorization information- Returns:
- EPPAuthInfo
-
setAuthInfo
Set authorization information- Parameters:
newAuthInfo- java.lang.String
-
setClientId
Sets Client Id that created the defReg.- Parameters:
aClientId- Client Id that associated with the defReg.
-
getClientId
Gets Client Id that created the defReg.- Returns:
- Client Id if defined;
nullotherwise.
-
getCreatedBy
Gets Create Id that created the defReg.- Returns:
- Create Id if defined;
nullotherwise.
-
setCreatedBy
Sets Client Id that created the defReg.- Parameters:
aCreatedBy- Client Id that created the defReg.
-
getCreatedDate
Gets the date and time the defReg was created.- Returns:
- Date and time the defReg was created if defined;
nullotherwise.
-
setCreatedDate
Sets the date and time the defReg was created.- Parameters:
aDate- Date and time the defReg was created.
-
getExpirationDate
Gets the expiration date and time of the defReg.- Returns:
- Expiration date and time of the defReg if defined;
nullotherwise.
-
setExpirationDate
Sets the expiration date and time of the defReg.- Parameters:
aExpirationDate- Expiration date and time of the defReg.
-
getLastUpdatedBy
Gets the Client Id that last updated the defReg. This will be null if the defReg has not been updated since creation.- Returns:
- Client Id that last updated the defReg has been updated;
nullotherwise.
-
setLastUpdatedBy
Sets the Client Id that last updated the defReg.- Parameters:
aLastUpdatedBy- Client Id String that last updated the defReg.
-
getLastUpdatedDate
Gets the date and time of the last defReg update. This will benullif the defReg has not been updated since creation.- Returns:
- date and time of the last defReg update if defined;
nullotherwise.
-
setLastUpdatedDate
Sets the last date and time the defReg was updated.- Parameters:
aLastUpdatedDate- Date and time of the last defReg update.
-
getLastTransferDate
Gets the date and time of the last successful defReg transfer. This will benullif the defReg 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 defReg was successfully transferred.- Parameters:
aLastTransferDate- Date and time of the last succesful transfer
-
getRoid
Get roid.- Returns:
- java.lang.String
-
setRoid
Set roid.- Parameters:
newRoid- java.lang.String
-
doEncode
Encode a DOM Element tree from the attributes of theEPPDefRegInfoRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the EPPDefRegInfoResp instance.
- Throws:
EPPEncodeException- Unable to encode EPPDefRegInfoResp instance.
-
doDecode
Decode theEPPDefRegInfoRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPDefRegInfoRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-