Package com.verisign.epp.codec.host
Class EPPHostCreateCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPCreateCmd
com.verisign.epp.codec.host.EPPHostCreateCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP Host <create> command, which provides a transform
operation that allows a client to create a host object. The
<host:create> element MUST contain the following child elements:
It is important to note that the transaction identifier associated with successful creation of a host object becomes the authorization identifier return in the <info-data> of a EPP Host <info> response and most likely will be required for future transform operations. A client MUST retain all transaction identifiers associated with host object creation and protect them from disclosure. A client MUST also provide a copy of the transaction identifier information to the host registrant, who will need this information to request a host transfer through a different client.
- A <host:name> element that contains the fully qualified host name
of the object to be created. Use
getNameandsetNameto get and set the element. - Zero or more <host:addr> elements that contain the IP addresses to be associated with the host. If the host name exists in a name space for which the server is not authoritative, then the superordinate domain of the host MUST be known to the server before the host object can be created. For example, if the server is authoritative for the ".com" name space and the name of the server is "ns1.example.com.au", the server is not required to produce DNS glue records for the name server and IP addresses for the server are not required by the DNS.
It is important to note that the transaction identifier associated with successful creation of a host object becomes the authorization identifier return in the <info-data> of a EPP Host <info> response and most likely will be required for future transform operations. A client MUST retain all transaction identifiers associated with host object creation and protect them from disclosure. A client MUST also provide a copy of the transaction identifier information to the host registrant, who will need this information to request a host transfer through a different client.
EPPReponse is the response associated with EPPHostCreateCmd.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPHostCreateCmd.static final StringXML Element Name ofEPPHostCreateCmdroot 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 newEPPHostCreateCmdwith default attribute values.EPPHostCreateCmd(String aTransId, String aName) Allocates a newEPPHostCreateCmdwith a host name.EPPHostCreateCmd(String aTransId, String aName, Vector<EPPHostAddress> aAddresses) Allocates a newEPPHostCreateCmdwith all attributes specified by the arguments. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAddress(EPPHostAddress aAddress) Add an address to the list of addresses.clone()CloneEPPHostCreateCmd.protected voidDecode the EPPHostCreateCmd attributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of the EPPHostCreateCmd instance.booleanCompare an instance ofEPPHostCreateCmdwith this instance.Gets the host addresses.getKey()Gets the key for the host object, which is the host name.getName()Get the host name to create.Get the EPP command Namespace associated with EPPHostCreateCmd.booleanAre addresses set?voidsetAddresses(Vector<EPPHostAddress> aAddresses) Sets the host addresses.voidSet the host name to create.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
-
ELM_LOCALNAME
XML local name forEPPHostCreateCmd.- See Also:
-
ELM_NAME
XML Element Name ofEPPHostCreateCmdroot element.- See Also:
-
-
Constructor Details
-
EPPHostCreateCmd
public EPPHostCreateCmd()Allocates a newEPPHostCreateCmdwith default attribute values. the defaults include the following:
- name is set to
null - addresses is set to to
null - transaction id is set to
null.
The name must be set before invokingencode. - name is set to
-
EPPHostCreateCmd
Allocates a newEPPHostCreateCmdwith a host name. The other attributes are initialized as follows:
- addresses is set to
null
- Parameters:
aTransId- Transaction Id associated with command.aName- Host name
- addresses is set to
-
EPPHostCreateCmd
Allocates a newEPPHostCreateCmdwith all attributes specified by the arguments.- Parameters:
aTransId- Transaction Id associated with command.aName- Host nameaAddresses-VectorofEPPHostAddressinstances.
-
-
Method Details
-
getNamespace
Get the EPP command Namespace associated with EPPHostCreateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPHostMapFactory.NS
-
getKey
Gets the key for the host object, which is the host name.- Overrides:
getKeyin classEPPCommand- Returns:
- The host name if set;
nullotherwise.
-
doEncode
Encode a DOM Element tree from the attributes of the EPPHostCreateCmd instance.- Specified by:
doEncodein classEPPCreateCmd- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the EPPHostCreateCmd instance.
- Throws:
EPPEncodeException- Unable to encode EPPHostCreateCmd instance.
-
doDecode
Decode the EPPHostCreateCmd attributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPCreateCmd- Parameters:
aElement- - Root DOM Element to decode EPPHostCreateCmd from.- Throws:
EPPDecodeException- Unable to decode aElement
-
getName
Get the host name to create.- Returns:
- Host Name
-
setName
Set the host name to create.- Parameters:
aName- Host Name
-
hasAddresses
public boolean hasAddresses()Are addresses set?- Returns:
trueif addresses are set;falseotherwise.
-
addAddress
Add an address to the list of addresses.- Parameters:
aAddress- Address to add
-
getAddresses
Gets the host addresses.- Returns:
- Vector of
EPPHostAddressinstances if defined;nullotherwise.
-
setAddresses
Sets the host addresses.- Parameters:
aAddresses- Vector ofEPPHostAddressinstances.
-
equals
Compare an instance ofEPPHostCreateCmdwith this instance.- Overrides:
equalsin classEPPCreateCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
clone
CloneEPPHostCreateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPHostCreateCmd - 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.
-