Package com.verisign.epp.codec.defReg
Class EPPDefRegCreateCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPCreateCmd
com.verisign.epp.codec.defReg.EPPDefRegCreateCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPPDefReg
It is important to note that the transaction identifier associated with successful creation of a defReg object becomes the authorization identifier required to transfer sponsorship of the defReg object. A client MUST retain all transaction identifiers associated with defReg object creation and protect them from disclosure. A client MUST also provide a copy of the transaction identifier information to the defReg registrant, who will need this information to request a defReg transfer through a different client.
<create> command, which provides a transform
operation that allows a client to create a defReg object. In addition to
the standard EPP command elements, the <create> command MUST contain
a <defReg:create> element that identifies the defReg namespace.
The <defReg:create> element
MUST contain the following child elements:-
A
<defReg:name>element that contains the name of the defReg object to be created. -
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 when the trademark was issued for the defReg object. -
An OPTIONAL
<defReg:period>element that contains the initial registration period of the defReg object. A server MAY define a default initial registration period if not specified by the client. -
An OPTIONAL
<defReg:adminContact>element that contains the identifier for the administrator associated with the defReg object. -
A
<defReg:authInfo>element that contains authorization information to be associated with the defReg object.
It is important to note that the transaction identifier associated with successful creation of a defReg object becomes the authorization identifier required to transfer sponsorship of the defReg object. A client MUST retain all transaction identifiers associated with defReg object creation and protect them from disclosure. A client MUST also provide a copy of the transaction identifier information to the defReg registrant, who will need this information to request a defReg transfer through a different client.
EPPDefRegCreateResp is the concrete EPPReponse
associated with EPPDefRegCreateCmd.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringXML Element roid attribute name ofEPPAuthInforoot element.Fields inherited from class com.verisign.epp.codec.gen.EPPCommand
extensions, OP_APPROVE, OP_CANCEL, OP_QUERY, OP_REJECT, OP_REQUEST, transId, TYPE_CHECK, TYPE_CREATE, TYPE_DELETE, TYPE_INFO, TYPE_LOGIN, TYPE_LOGOUT, TYPE_POLL, TYPE_RENEW, TYPE_TRANSFER, TYPE_UPDATE -
Constructor Summary
ConstructorsConstructorDescriptionAllocates a newEPPDefRegCreateCmdwith default attribute values.EPPDefRegCreateCmd(String aTransId, EPPDefRegName aDefRegName, String aRegistrant, String aTm, String aTmCountry, Date aTmDate, String aAdminContact, EPPDefRegPeriod aPeriod, EPPAuthInfo aAuthInfo) Allocates a newEPPDefRegCreateCmdwith all attributes specified by the arguments. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPDefRegCreateCmd.protected voidDecode the EPPDefRegCreateCmd attributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of the EPPDefRegCreateCmd instance.booleanCompare an instance ofEPPDefRegCreateCmdwith this instance.Get the AdminContact information.Get authorization informationGet the EPPDefRegName information.getKey()Gets the key for the defensive registration object, which is the defensive registration name.Get the EPP command Namespace associated with EPPDefRegCreateCmd.Gets the registration period in years.Get the registrant information.getTm()Get the trademark information.Get the trademark country information.Get the trademark date information.voidsetAuthInfo(EPPAuthInfo newAuthInfo) Set authorization informationvoidsetDefRegName(EPPDefRegName aName) Set the defRegName information.voidsetPeriod(EPPDefRegPeriod aPeriod) Sets the registration period in years.voidsetRegistrant(String aRegistrant) Set the registrant information.voidSet the trademark information.voidsetTmCountry(String aTmCountry) Set the trademark country information.voidSet the trademark date information.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPCreateCmd
doGenDecode, doGenEncode, getTypeMethods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
Field Details
-
ATTR_LEVELID
XML Element roid attribute name ofEPPAuthInforoot element.- See Also:
-
-
Constructor Details
-
EPPDefRegCreateCmd
public EPPDefRegCreateCmd()Allocates a newEPPDefRegCreateCmdwith default attribute values. the defaults include the following:
-
name is set to
null -
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.
The name must be set before invokingencode. -
name is set to
-
EPPDefRegCreateCmd
public EPPDefRegCreateCmd(String aTransId, EPPDefRegName aDefRegName, String aRegistrant, String aTm, String aTmCountry, Date aTmDate, String aAdminContact, EPPDefRegPeriod aPeriod, EPPAuthInfo aAuthInfo) Allocates a newEPPDefRegCreateCmdwith all attributes specified by the arguments.- Parameters:
aTransId- Transaction Id associated with command.aDefRegName- EPPDefRegName nameaRegistrant- DefReg RegistrantaTm- DefReg TradeMarkaTmCountry- DefReg TradeMarkCountryaTmDate- DefReg TradeMarkDateaAdminContact- DefReg AdminContactaPeriod- DefReg Registration Period.aAuthInfo- EPPAuthInfo authorization information
-
-
Method Details
-
getNamespace
Get the EPP command Namespace associated with EPPDefRegCreateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPDefRegMapFactory.NS
-
getKey
Gets the key for the defensive registration object, which is the defensive registration name.- Overrides:
getKeyin classEPPCommand- Returns:
- The defensive registration name if set;
nullotherwise.
-
getDefRegName
Get the EPPDefRegName information.- Returns:
- EPPDefRegName element
-
setDefRegName
Set the defRegName information.- Parameters:
aName- EPPDefRegName name object
-
getRegistrant
Get the registrant information.- Returns:
- DefReg registrant
-
setRegistrant
Set the registrant information.- Parameters:
aRegistrant- DefReg registrant
-
getTm
Get the trademark information.- Returns:
- DefReg tradeMark
-
setTm
Set the trademark information.- Parameters:
aTm- DefReg registrant
-
getTmCountry
Get the trademark country information.- Returns:
- DefReg trademark country
-
setTmCountry
Set the trademark country information.- Parameters:
aTmCountry- DefReg trademark country
-
getTmDate
Get the trademark date information.- Returns:
- DefReg trademark date
-
setTmDate
Set the trademark date information.- Parameters:
aTmDate- DefReg trademark date
-
getAdminContact
Get the AdminContact information.- Returns:
- DefReg AdminContact
-
getAuthInfo
Get authorization information- Returns:
- EPPAuthInfo
-
getPeriod
Gets the registration period in years.- Returns:
- Registration Period in years.
-
setAuthInfo
Set authorization information- Parameters:
newAuthInfo- java.lang.String
-
setPeriod
Sets the registration period in years.- Parameters:
aPeriod- Registration Period in years.
-
equals
Compare an instance ofEPPDefRegCreateCmdwith this instance.- Overrides:
equalsin classEPPCreateCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise
-
clone
CloneEPPDefRegCreateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPDefRegCreateCmd - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
doEncode
Encode a DOM Element tree from the attributes of the EPPDefRegCreateCmd instance.- Specified by:
doEncodein classEPPCreateCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the EPPDefRegCreateCmd instance.
- Throws:
EPPEncodeException- Unable to encode EPPDefRegCreateCmd instance.
-
doDecode
Decode the EPPDefRegCreateCmd attributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPCreateCmd- Parameters:
aElement- Root DOM Element to decode EPPDefELM_DEFREGRegCreateCmd from.- Throws:
EPPDecodeException- Unable to decode aElement
-