|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPCreateCmd
com.verisign.epp.codec.domain.EPPDomainCreateCmd
public class EPPDomainCreateCmd
Represents an EPP Domain <create> command, which provides a transform
operation that allows a client to create a domain object. In addition to
the standard EPP command elements, the <create> command MUST contain
a <domain:create> element that identifies the domain namespace and
the location of the domain schema. The <domain:create> element MUST
contain the following child elements:
getName
and
setName
to get and set the element.
getPeriod
and
setPeriod
to get and set the element. If return
null
, period has not been specified yet.
getServers
and setServers
to get
and set the elements.
getRegistrant
and
setRegistrant
to get and set the elements.
getContacts
and
setContacts
to get and set the elements. Contacts should only
be specified if the Contact Mapping is supported.
EPPDomainCreateResp
is the concrete EPPReponse
associated with EPPDomainCreateCmd
.
EPPDomainCreateResp
,
Serialized FormField 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 | |
---|---|
EPPDomainCreateCmd()
Allocates a new EPPDomainCreateCmd with default attribute
values. the defaults include the following: name is set to null
period is set to UNSPEC_PERIOD
servers is set to to null
contacts is set to to null
transaction id is set to null . |
|
EPPDomainCreateCmd(java.lang.String aTransId,
java.lang.String aName,
EPPAuthInfo aAuthInfo)
Allocates a new EPPDomainCreateCmd with a domain name. |
|
EPPDomainCreateCmd(java.lang.String aTransId,
java.lang.String aName,
java.util.Vector someServers,
java.util.Vector someContacts,
EPPDomainPeriod aPeriod,
EPPAuthInfo aAuthInfo)
Allocates a new EPPDomainCreateCmd with all attributes
specified by the arguments. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone EPPDomainCreateCmd . |
protected void |
doDecode(org.w3c.dom.Element aElement)
Decode the EPPDomainCreateCmd attributes from the aElement DOM Element tree. |
protected org.w3c.dom.Element |
doEncode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the EPPDomainCreateCmd instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of EPPDomainCreateCmd with this
instance. |
EPPAuthInfo |
getAuthInfo()
Get authorization information |
java.util.Vector |
getContacts()
Gets the contacts. |
java.lang.String |
getName()
Get the domain name to create. |
java.lang.String |
getNamespace()
Get the EPP command Namespace associated with EPPDomainCreateCmd. |
EPPDomainPeriod |
getPeriod()
Gets the registration period in years. |
java.lang.String |
getRegistrant()
Get registrant. |
java.util.Vector |
getServers()
Gets the name servers. |
void |
setAuthInfo(EPPAuthInfo newAuthInfo)
Set authorization information |
void |
setContacts(java.util.Vector aContacts)
Sets the contacts. |
void |
setName(java.lang.String aName)
Set the domain name to create. |
void |
setPeriod(EPPDomainPeriod aPeriod)
Sets the registration period in years. |
void |
setRegistrant(java.lang.String newRegistrant)
Set registrant. |
void |
setServers(java.util.Vector aServers)
Sets the name servers. |
java.lang.String |
toString()
Implementation of Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
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, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EPPDomainCreateCmd()
EPPDomainCreateCmd
with default attribute
values. the defaults include the following: null
UNSPEC_PERIOD
null
null
null
.
encode
.
public EPPDomainCreateCmd(java.lang.String aTransId, java.lang.String aName, EPPAuthInfo aAuthInfo)
EPPDomainCreateCmd
with a domain name. The
other attributes are initialized as follows: UNSPEC_PERIOD
null
null
aTransId
- Transaction Id associated with command.aName
- Domain nameaAuthInfo
- EPPAuthInfo authorization informationpublic EPPDomainCreateCmd(java.lang.String aTransId, java.lang.String aName, java.util.Vector someServers, java.util.Vector someContacts, EPPDomainPeriod aPeriod, EPPAuthInfo aAuthInfo)
EPPDomainCreateCmd
with all attributes
specified by the arguments.
aTransId
- Transaction Id associated with command.aName
- Domain namesomeServers
- Domain name serverssomeContacts
- Domain contacts. Should be null
if the
Contact Mapping is not supported.aPeriod
- Value greater than or equal to MIN_PERIOD
or
less than or equal to MAX_PERIOD
.aAuthInfo
- EPPAuthInfo authorization informationMethod Detail |
---|
public java.lang.String getNamespace()
getNamespace
in interface EPPMessage
getNamespace
in class EPPCommand
EPPDomainMapFactory.NS
public java.lang.String getName()
public void setName(java.lang.String aName)
aName
- Domain Namepublic java.util.Vector getServers()
String
instances containing the fully qualified name of a
known name server host object, or EPPHostAttr
instances
containing the fully qualified name of a host and optionally the host
IP addresses.
Vector
of name server String
instances
for host object references or EPPHostAttr
instances for host attribute values if exists;
null
otherwise.public void setServers(java.util.Vector aServers)
String
instances containing the fully qualified name of a
known name server host object, or EPPHostAttr
instances
containing the fully qualified name of a host and optionally the host
IP addresses.
aServers
- Vector
of name server String
instances for host object references or EPPHostAttr
instances for host attribute values.public java.util.Vector getContacts()
EPPDomainContact
instances if defined;
null
otherwise.public void setContacts(java.util.Vector aContacts)
aContacts
- Vector
of EPPDomainContact
instances.public boolean equals(java.lang.Object aObject)
EPPDomainCreateCmd
with this
instance.
equals
in class EPPCreateCmd
aObject
- Object to compare with.
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPDomainCreateCmd
.
clone
in interface EPPCodecComponent
clone
in class EPPCommand
EPPDomainCreateCmd
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.
toString
in class EPPCommand
String
if successful;
ERROR
otherwise.public EPPAuthInfo getAuthInfo()
public EPPDomainPeriod getPeriod()
public java.lang.String getRegistrant()
public void setAuthInfo(EPPAuthInfo newAuthInfo)
newAuthInfo
- java.lang.Stringpublic void setPeriod(EPPDomainPeriod aPeriod)
aPeriod
- Registration Period in years.public void setRegistrant(java.lang.String newRegistrant)
newRegistrant
- java.lang.Stringprotected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
doEncode
in class EPPCreateCmd
aDocument
- DOM Document that is being built. Used as an Element
factory.
EPPEncodeException
- Unable to encode EPPDomainCreateCmd
instance.protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
doDecode
in class EPPCreateCmd
aElement
- Root DOM Element to decode EPPDomainCreateCmd from.
EPPDecodeException
- Unable to decode aElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |