public class EPPDomainCreateCmd extends EPPCreateCmd
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 Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPDomainCreateCmd. |
static java.lang.String |
ELM_NAME
XML Element Name of
EPPDomainCreateCmd root element. |
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 and Description |
|---|
EPPDomainCreateCmd()
Allocates a new
EPPDomainCreateCmd with default attribute values. |
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 aServers,
java.util.Vector aContacts,
EPPDomainPeriod aPeriod,
EPPAuthInfo aAuthInfo)
Allocates a new
EPPDomainCreateCmd with all attributes specified
by the arguments. |
| Modifier and Type | Method and Description |
|---|---|
void |
addContact(EPPDomainContact aContact)
Adds a contact to the list of domain contacts.
|
void |
addServer(EPPHostAttr aServer)
Add a name serve attribute instance that is a fully qualified name of a
host and optionally the host IP addresses.
|
void |
addServer(java.lang.String aServer)
Add a name serve instance that is a fully qualified name of a known name
server host object.
|
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 aAuthInfo)
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. |
doGenDecode, doGenEncode, getTypeaddExtension, decode, encode, findDuplicateExtNamespaces, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransIdpublic static final java.lang.String ELM_LOCALNAME
EPPDomainCreateCmd.public static final java.lang.String ELM_NAME
EPPDomainCreateCmd root element.public EPPDomainCreateCmd()
EPPDomainCreateCmd with default attribute values.
the defaults include the following: nullUNSPEC_PERIODnullnullnull.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_PERIODnullnullaTransId - Transaction Id associated with command.aName - Domain nameaAuthInfo - EPPAuthInfo authorization informationpublic EPPDomainCreateCmd(java.lang.String aTransId,
java.lang.String aName,
java.util.Vector aServers,
java.util.Vector aContacts,
EPPDomainPeriod aPeriod,
EPPAuthInfo aAuthInfo)
EPPDomainCreateCmd with all attributes specified
by the arguments.aTransId - Transaction Id associated with command.aName - Domain nameaServers - Domain name serversaContacts - 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 information.public java.lang.String getNamespace()
getNamespace in interface EPPCodecComponentgetNamespace in interface EPPMessagegetNamespace in class EPPCommandEPPDomainMapFactory.NSpublic 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 void addServer(java.lang.String aServer)
aServer - Fully qualified name of a known name server host object.public void addServer(EPPHostAttr aServer)
aServer - A fully qualified name of a host and optionally the host IP
addresses.public java.util.Vector getContacts()
EPPDomainContact instances if defined;
null otherwise.public void setContacts(java.util.Vector aContacts)
aContacts - Vector of EPPDomainContact instances.public void addContact(EPPDomainContact aContact)
aContact - Contact to add to the domain.public boolean equals(java.lang.Object aObject)
EPPDomainCreateCmd with this instance.equals in class EPPCreateCmdaObject - Object to compare with.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPDomainCreateCmd.clone in interface EPPCodecComponentclone in class EPPCommandEPPDomainCreateCmdjava.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 EPPCommandString if successful; ERROR
otherwise.public EPPAuthInfo getAuthInfo()
public EPPDomainPeriod getPeriod()
public java.lang.String getRegistrant()
public void setAuthInfo(EPPAuthInfo aAuthInfo)
aAuthInfo - 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 EPPCreateCmdaDocument - 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 EPPCreateCmdaElement - Root DOM Element to decode EPPDomainCreateCmd from.EPPDecodeException - Unable to decode aElement