Package com.verisign.epp.codec.emailFwd
Class EPPEmailFwdCreateCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPCreateCmd
com.verisign.epp.codec.emailFwd.EPPEmailFwdCreateCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP EmailFwd <create> command, which provides a
transform operation that allows a client to create a emailFwd object.
In addition to the standard EPP command elements, the <create>
command MUST contain a <emailFwd:create> element that identifies the
emailFwd namespace and the location of the emailFwd schema. The
<emailFwd:create> element MUST contain the following child
elements:
It is important to note that the transaction identifier associated with successful creation of a emailFwd object becomes the authorization identifier required to transfer sponsorship of the emailFwd object. A client MUST retain all transaction identifiers associated with emailFwd object creation and protect them from disclosure. A client MUST also provide a copy of the transaction identifier information to the emailFwd registrant, who will need this information to request a emailFwd transfer through a different client.
-
A <emailFwd:name> element that contains the fully qualified emailFwd
name of the object to be created. Use
getNameandsetNameto get and set the element. -
An <emailFwd:fwdTo> element that contain the forwardTo Addresses/
.Use
getEmailForwardToandsetEmailForwardToto get and set the forwardTo addresses. -
An OPTIONAL <emailFwd:period> element that contains the initial
registration period of the emailFwd object. Use
getPeriodandsetPeriodto get and set the element. If returnnull, period has not been specified yet. -
An OPTIONAL <emailFwd:registrant> element that contains the identifier
for the human or organizational social information (contact) object to be
associated with the emailFwd object as the object registrant. This object
identifier MUST be known to the server before the contact object can be
associated with the emailFwd object. Use
getRegistrantandsetRegistrantto get and set the elements. -
Zero or more <emailFwd:contact> elements that contain the registrant,
administrative, technical, and billing contact identifiers to be associated
with the emailFwd. A contact identifier MUST be known to the server before
the contact can be associated with the emailFwd. Only one contact
identifier of each type MAY be specified. A server MAY provide contact
object services when providing emailFwd 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 <emailFwd:authInfo> element that contains authorization information to be associated with the emailFwd object.
It is important to note that the transaction identifier associated with successful creation of a emailFwd object becomes the authorization identifier required to transfer sponsorship of the emailFwd object. A client MUST retain all transaction identifiers associated with emailFwd object creation and protect them from disclosure. A client MUST also provide a copy of the transaction identifier information to the emailFwd registrant, who will need this information to request a emailFwd transfer through a different client.
EPPEmailFwdCreateResp is the concrete EPPReponse
associated with EPPEmailFwdCreateCmd. - See Also:
-
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
ConstructorsConstructorDescriptionAllocates a newEPPEmailFwdCreateCmdwith default attribute values.EPPEmailFwdCreateCmd(String aTransId, String aName, String aForwardTo, EPPAuthInfo aAuthInfo) Allocates a newEPPEmailFwdCreateCmdwith a emailFwd name.EPPEmailFwdCreateCmd(String aTransId, String aName, String aForwardTo, Vector someContacts, EPPEmailFwdPeriod aPeriod, EPPAuthInfo aAuthInfo) Allocates a newEPPEmailFwdCreateCmdwith all attributes specified by the arguments. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPEmailFwdCreateCmd.protected voidDecode the EPPEmailFwdCreateCmd attributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of the EPPEmailFwdCreateCmd instance.booleanCompare an instance ofEPPEmailFwdCreateCmdwith this instance.Get authorization informationGets the contacts.Get the emailFwd to.getKey()Gets the key for the emailFwd object, which is the emailFwd name.getName()Get the emailFwd name to create.Get the EPP command Namespace associated with EPPEmailFwdCreateCmd.Gets the registration period in years.Get registrant.voidsetAuthInfo(EPPAuthInfo newAuthInfo) Set authorization informationvoidsetContacts(Vector aContacts) Sets the contacts.voidsetForwardTo(String aForwardTo) Set the emailFwd name to create.voidSet the emailFwd name to create.voidsetPeriod(EPPEmailFwdPeriod aPeriod) Sets the registration period in years.voidsetRegistrant(String newRegistrant) Set registrant.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
-
Constructor Details
-
EPPEmailFwdCreateCmd
public EPPEmailFwdCreateCmd()Allocates a newEPPEmailFwdCreateCmdwith default attribute values. the defaults include the following:
-
name is set to
null -
forwardTo is set to
null -
period is set to
UNSPEC_PERIOD -
contacts is set to to
null -
transaction id is set to
null.
The name must be set before invokingencode. -
name is set to
-
EPPEmailFwdCreateCmd
public EPPEmailFwdCreateCmd(String aTransId, String aName, String aForwardTo, EPPAuthInfo aAuthInfo) Allocates a newEPPEmailFwdCreateCmdwith a emailFwd name. The other attributes are initialized as follows:
-
period is set to
UNSPEC_PERIOD -
servers is set to
null -
contacts is set to
null
- Parameters:
aTransId- Transaction Id associated with command.aName- EmailFwd nameaForwardTo- EmailFwdTo addressaAuthInfo- EPPAuthInfo authorization information
-
period is set to
-
EPPEmailFwdCreateCmd
public EPPEmailFwdCreateCmd(String aTransId, String aName, String aForwardTo, Vector someContacts, EPPEmailFwdPeriod aPeriod, EPPAuthInfo aAuthInfo) Allocates a newEPPEmailFwdCreateCmdwith all attributes specified by the arguments.- Parameters:
aTransId- Transaction Id associated with command.aName- EmailFwd nameaForwardTo- EmailFwdTo namesomeContacts- EmailFwd contacts. Should benullif the Contact Mapping is not supported.aPeriod- Value greater than or equal toMIN_PERIODor less than or equal toMAX_PERIOD.aAuthInfo- EPPAuthInfo authorization information
-
-
Method Details
-
getNamespace
Get the EPP command Namespace associated with EPPEmailFwdCreateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPEmailFwdMapFactory.NS
-
getKey
Gets the key for the emailFwd object, which is the emailFwd name.- Overrides:
getKeyin classEPPCommand- Returns:
- The emailFwd name if set;
nullotherwise.
-
getName
Get the emailFwd name to create.- Returns:
- EmailFwd Name
-
getForwardTo
Get the emailFwd to.- Returns:
- EmailFwdTo
-
setName
Set the emailFwd name to create.- Parameters:
aName- EmailFwd Name
-
setForwardTo
Set the emailFwd name to create.- Parameters:
aForwardTo- EmailFwd Name
-
getContacts
Gets the contacts.- Returns:
- Vector of
EPPEmailFwdContactinstances if defined;nullotherwise.
-
setContacts
Sets the contacts.- Parameters:
aContacts-VectorofEPPEmailFwdContactinstances
-
equals
Compare an instance ofEPPEmailFwdCreateCmdwith this instance.- Overrides:
equalsin classEPPCreateCmd- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPEmailFwdCreateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPEmailFwdCreateCmd - 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.
-
getAuthInfo
Get authorization information- Returns:
- EPPAuthInfo
-
getPeriod
Gets the registration period in years.- Returns:
- Registration Period in years.
-
getRegistrant
Get registrant.- Returns:
- java.lang.String
-
setAuthInfo
Set authorization information- Parameters:
newAuthInfo- java.lang.String
-
setPeriod
Sets the registration period in years.- Parameters:
aPeriod- Registration Period in years.
-
setRegistrant
Set registrant.- Parameters:
newRegistrant- java.lang.String
-
doEncode
Encode a DOM Element tree from the attributes of the EPPEmailFwdCreateCmd instance.- Specified by:
doEncodein classEPPCreateCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the EPPEmailFwdCreateCmd instance.
- Throws:
EPPEncodeException- Unable to encode EPPEmailFwdCreateCmd instance.
-
doDecode
Decode the EPPEmailFwdCreateCmd attributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPCreateCmd- Parameters:
aElement- Root DOM Element to decode EPPEmailFwdCreateCmd from.- Throws:
EPPDecodeException- Unable to decode aElement
-