Package com.verisign.epp.codec.nameWatch
Class EPPNameWatchCreateCmd
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPCommand
-
- com.verisign.epp.codec.gen.EPPCreateCmd
-
- com.verisign.epp.codec.nameWatch.EPPNameWatchCreateCmd
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
public class EPPNameWatchCreateCmd extends EPPCreateCmd
Represents an EPP NameWatch <create> command, which provides a transform operation that allows a client to create a nameWatch object. In addition to the standard EPP command elements, the <create> command MUST contain a <nameWatch:create> element that identifies the nameWatch namespace and the location of the nameWatch schema. The <nameWatch:create> element MUST contain the following child elements:
-
A <nameWatch:name> element that contains the fully qualified nameWatch
name of the object to be created. Use
getNameandsetNameto get and set the element. -
An OPTIONAL <nameWatch:period> element that contains the initial
registration period of the nameWatch object. Use
getPeriodandsetPeriodto get and set the element. If returnnull, period has not been specified yet. -
Zero or more <nameWatch:ns> elements that contain the fully qualified
host name of a known host object to provide resolution services for the
nameWatch. A host object MUST be known to the server before a nameWatch
can be delegated to the host. A server MUST provide host object services
to provide nameWatch name services. The EPP mapping for host objects is
described in [EPP-H]. Use
getServersandsetServersto get and set the elements. -
An OPTIONAL <nameWatch:registrant> element that contains the
identifier for the human or organizational social information (contact)
object to be associated with the nameWatch object as the object registrant.
This object identifier MUST be known to the server before the contact
object can be associated with the nameWatch object. Use
getRegistrantandsetRegistrantto get and set the elements. -
Zero or more <nameWatch:contact> elements that contain the registrant,
administrative, technical, and billing contact identifiers to be associated
with the nameWatch. A contact identifier MUST be known to the server
before the contact can be associated with the nameWatch. Only one contact
identifier of each type MAY be specified. A server MAY provide contact
object services when providing nameWatch name object services. The EPP
mapping for contact objects is described in [EPP-C]. Use
getContactsandsetContactsto get and set the elements. Contacts should only be specified if the Contact Mapping is supported. - A <nameWatch:authInfo> element that contains authorization information to be associated with the nameWatch object.
It is important to note that the transaction identifier associated with successful creation of a nameWatch object becomes the authorization identifier required to transfer sponsorship of the nameWatch object. A client MUST retain all transaction identifiers associated with nameWatch object creation and protect them from disclosure. A client MUST also provide a copy of the transaction identifier information to the nameWatch registrant, who will need this information to request a nameWatch transfer through a different client.
EPPNameWatchCreateRespis the concreteEPPReponseassociated withEPPNameWatchCreateCmd.- See Also:
EPPNameWatchCreateResp, Serialized Form
-
-
Field Summary
-
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
Constructors Constructor Description EPPNameWatchCreateCmd()Allocates a newEPPNameWatchCreateCmdwith default attribute values.EPPNameWatchCreateCmd(java.lang.String aTransId, java.lang.String aName)Allocates a newEPPNameWatchCreateCmdwith default attribute values.EPPNameWatchCreateCmd(java.lang.String aTransId, java.lang.String aName, java.lang.String aRegistrant, EPPNameWatchRptTo aRptTo, EPPAuthInfo aAuthInfo)Allocates a newEPPNameWatchCreateCmdwith a nameWatch name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPNameWatchCreateCmd.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPNameWatchCreateCmdattributes 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 theEPPNameWatchCreateCmdinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPNameWatchCreateCmdwith this instance.EPPAuthInfogetAuthInfo()Get authorization informationjava.lang.StringgetKey()Gets the key for the NameWatch object, which is the NameWatch name.java.lang.StringgetName()Gets NameWatch name.java.lang.StringgetNamespace()Get the EPP command Namespace associated with EPPNameWatchCreateCmd.EPPNameWatchPeriodgetPeriod()Get NameWatch period.java.lang.StringgetRegistrant()Get registrant.EPPNameWatchRptTogetRptTo()Gets NameWatch report to specification, which includes the e-mail address and the frequency.voidsetAuthInfo(EPPAuthInfo newAuthInfo)Set authorization informationvoidsetName(java.lang.String aName)Sets NameWatch name.voidsetPeriod(EPPNameWatchPeriod newPeriod)Set NameWatch period.voidsetRegistrant(java.lang.String newRegistrant)Set registrant.voidsetRptTo(EPPNameWatchRptTo aRptTo)Sets NameWatch Report to specification, which includes the e-mail address and frequency.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.EPPCreateCmd
doGenDecode, doGenEncode, getType
-
Methods 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
-
-
-
-
Constructor Detail
-
EPPNameWatchCreateCmd
public EPPNameWatchCreateCmd()
Allocates a newEPPNameWatchCreateCmdwith default attribute values. the defaults include the following:
-
name is set to
null -
registrant is set to to
null -
rptTo is set to
null - period is set to 0
-
authInfo is set to
null
The name, registrant, rptTo, and authInfo must be set before invokingencode. -
name is set to
-
EPPNameWatchCreateCmd
public EPPNameWatchCreateCmd(java.lang.String aTransId, java.lang.String aName)Allocates a newEPPNameWatchCreateCmdwith default attribute values. the defaults include the following:
-
registrant is set to to
null -
rptTo is set to
null -
period is set to
null -
authInfo is set to
null
The registrant, rptTo, and authInfo must be set before invokingencode.- Parameters:
aTransId- DOCUMENT ME!aName- DOCUMENT ME!
-
registrant is set to to
-
EPPNameWatchCreateCmd
public EPPNameWatchCreateCmd(java.lang.String aTransId, java.lang.String aName, java.lang.String aRegistrant, EPPNameWatchRptTo aRptTo, EPPAuthInfo aAuthInfo)Allocates a newEPPNameWatchCreateCmdwith a nameWatch name. The other attributes are initialized as follows:
- period is default to 0
- Parameters:
aTransId- Transaction Id associated with command.aName- NameWatch nameaRegistrant- NameWatch registrantaRptTo- EPPNameWatchRptTo rptToaAuthInfo- EPPAuthInfo authorization information
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Get the EPP command Namespace associated with EPPNameWatchCreateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPNameWatchMapFactory.NS
-
getKey
public java.lang.String getKey()
Gets the key for the NameWatch object, which is the NameWatch name.- Overrides:
getKeyin classEPPCommand- Returns:
- The NameWatch name if set;
nullotherwise.
-
getName
public java.lang.String getName()
Gets NameWatch name.- Returns:
- NameWatch Name
-
setName
public void setName(java.lang.String aName)
Sets NameWatch name.- Parameters:
aName- NameWatch Name
-
getRptTo
public EPPNameWatchRptTo getRptTo()
Gets NameWatch report to specification, which includes the e-mail address and the frequency.- Returns:
- Report to specification if defined;
nullotherwise.
-
setRptTo
public void setRptTo(EPPNameWatchRptTo aRptTo)
Sets NameWatch Report to specification, which includes the e-mail address and frequency.- Parameters:
aRptTo- to specification.
-
getPeriod
public EPPNameWatchPeriod getPeriod()
Get NameWatch period.- Returns:
- period if defined;
nullotherwise.
-
setPeriod
public void setPeriod(EPPNameWatchPeriod newPeriod)
Set NameWatch period.- Parameters:
newPeriod- NameWatch period
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPNameWatchCreateCmdwith this instance.- Overrides:
equalsin classEPPCreateCmd- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPNameWatchCreateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPNameWatchCreateCmd - 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 classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getAuthInfo
public EPPAuthInfo getAuthInfo()
Get authorization information- Returns:
- EPPAuthInfo
-
getRegistrant
public java.lang.String getRegistrant()
Get registrant.- Returns:
- registrant
-
setAuthInfo
public void setAuthInfo(EPPAuthInfo newAuthInfo)
Set authorization information- Parameters:
newAuthInfo- EPPAuthInfo
-
setRegistrant
public void setRegistrant(java.lang.String newRegistrant)
Set registrant.- Parameters:
newRegistrant- NameWatch registrant
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPNameWatchCreateCmdinstance.- Specified by:
doEncodein classEPPCreateCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the EPPNameWatchCreateCmd instance.
- Throws:
EPPEncodeException- Unable to encode EPPNameWatchCreateCmd instance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPNameWatchCreateCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPCreateCmd- Parameters:
aElement- Root DOM Element to decodeEPPNameWatchCreateCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
-