Package com.verisign.epp.codec.emailFwd
Class EPPEmailFwdAddRemove
- java.lang.Object
-
- com.verisign.epp.codec.emailFwd.EPPEmailFwdAddRemove
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPEmailFwdAddRemove extends java.lang.Object implements EPPCodecComponent
Represents attributes to add, remove or change with aEPPEmailFwdUpdateCmd. InEPPEmailFwdUpdateCmd, an instance ofEPPEmailFwdAddRemoveis used to specify the attributes to add; an instance ofEPPEmailFwdAddRemoveis used to specify the attributes to remove, and an instance ofEPPEmailFwdAddRemoveis used to specify the attributes to change
The EmailFwdEmailFwd Mapping Specification describes the following attributes:
-
Zero or more <emailFwd:contact> elements that contain the registrant,
administrative, technical, and billing contact identiEmailFwdfiers to be
associated with the emailFwd. Use
getContactsandsetContactsto get and set the element. This attribute will only be allowed if the Contact Mapping is supported. -
One or two <emailFwd:status> elements that contain status values to be
applied to or removed from the emailFwd object. Use
getStatusesandsetStatusesto get and set the element. -
For
changeonly, A <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. UsegetRegistrantandsetRegistrantto get and set the element. -
For
changeonly, An OPTIONAL <emailFwd:fwdTo> element that contains the email forwardTo addresses. UsegetForwardToandsetForwardToto get and set the forwardTo addresses.
It is important to note that the maximum number of emailFwd attribute elements is subject to the number of values currently associated with the emailFwd object.EPPEmailFwdAddRemovewill delegate the validation of the cardinality of the emailFwd attributes elements to the EPP Server.- See Also:
EPPEmailFwdUpdateCmd, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EPPEmailFwdAddRemove()Default constructor forEPPEmailFwdAddRemove.EPPEmailFwdAddRemove(java.lang.String aRegistrant, java.lang.String aForwardTo, EPPAuthInfo aAuthInfo)Constructor forEPPEmailFwdAddRemovethat includes the attributes as arguments.EPPEmailFwdAddRemove(java.util.Vector someContacts, java.util.Vector someStatuses)Constructor forEPPEmailFwdAddRemovethat includes the attributes as arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPEmailFwdAddRemove.booleancontactsSupported()Return if EmailFwd Contacts is supported.voiddecode(org.w3c.dom.Element aElement)Decode theEPPEmailFwdAddRemoveattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPEmailFwdAddRemoveinstance.booleanequals(java.lang.Object aObject)implements a deepEPPEmailFwdAddRemovecompare.EPPAuthInfogetAuthInfo()Get authorization information for the change modejava.util.VectorgetContacts()Gets the contacts to add or remove.java.lang.StringgetForwardTo()Get forwardTo Addressjava.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetRegistrant()Get registrant for the change modejava.util.VectorgetStatuses()Gets the statuses to add or remove.voidsetAuthInfo(EPPAuthInfo newAuthInfo)Set authorization information for the change modevoidsetContacts(java.util.Vector aContacts)Sets the contacts to add or remove.voidsetForwardTo(java.lang.String newForwardTo)Set forwardTo Address for the change modevoidsetRegistrant(java.lang.String newRegistrant)Set registrant for the change modevoidsetStatuses(java.util.Vector aStatuses)Sets the statuses to add or remove.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Constructor Detail
-
EPPEmailFwdAddRemove
public EPPEmailFwdAddRemove()
Default constructor forEPPEmailFwdAddRemove. All of the attribute default tonullto indicate no modification.
-
EPPEmailFwdAddRemove
public EPPEmailFwdAddRemove(java.util.Vector someContacts, java.util.Vector someStatuses)Constructor forEPPEmailFwdAddRemovethat includes the attributes as arguments.- Parameters:
someContacts- Vector ofEPPEmailFwdContactinstances. Isnullor empty for no modifications. If the Contact Mapping is not supported, this value should benull.someStatuses- Vector of statusString's. One of theEPPEmailFwdInfoResp.STATUS_contants can be used for each of the status values. Isnullor empty for no modifications.
-
EPPEmailFwdAddRemove
public EPPEmailFwdAddRemove(java.lang.String aRegistrant, java.lang.String aForwardTo, EPPAuthInfo aAuthInfo)Constructor forEPPEmailFwdAddRemovethat includes the attributes as arguments.- Parameters:
aRegistrant-Stringregistrant for the change modeaForwardTo-StringforwardTo address of the email.aAuthInfo-EPPAuthInfoauthorization information for the change mode
-
-
Method Detail
-
getContacts
public java.util.Vector getContacts()
Gets the contacts to add or remove.- Returns:
- Vector of
EPPEmailFwdContactinstances.
-
setContacts
public void setContacts(java.util.Vector aContacts)
Sets the contacts to add or remove.- Parameters:
aContacts- DOCUMENT ME!
-
getStatuses
public java.util.Vector getStatuses()
Gets the statuses to add or remove. TheEPPEmailFwdInfoResp.STATUS_constants can be used for the statuses.- Returns:
- Vector of status
Stringinstances.
-
setStatuses
public void setStatuses(java.util.Vector aStatuses)
Sets the statuses to add or remove. TheEPPEmailFwdInfoResp.STATUS_constants can be used for the statuses.- Parameters:
aStatuses- Vector of statusStringinstances.
-
contactsSupported
public boolean contactsSupported()
Return if EmailFwd Contacts is supported.- Returns:
trueif contacts are supported;falseotherwise.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPEmailFwdAddRemoveinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPEmailFwdAddRemoveinstance. - Throws:
EPPEncodeException- Unable to encodeEPPEmailFwdAddRemoveinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPEmailFwdAddRemoveattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPEmailFwdAddRemovefrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPEmailFwdAddRemovecompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPEmailFwdAddRemoveinstance to compare with- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPEmailFwdAddRemove.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPEmailFwdAddRemove - 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 classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getAuthInfo
public EPPAuthInfo getAuthInfo()
Get authorization information for the change mode- Returns:
- com.verisign.epp.codec.emailFwd.EPPEmailFwdAuthInfo
-
getRegistrant
public java.lang.String getRegistrant()
Get registrant for the change mode- Returns:
- java.lang.String
-
getForwardTo
public java.lang.String getForwardTo()
Get forwardTo Address- Returns:
- java.lang.String
-
setAuthInfo
public void setAuthInfo(EPPAuthInfo newAuthInfo)
Set authorization information for the change mode- Parameters:
newAuthInfo- com.verisign.epp.codec.emailFwd.EPPEmailFwdAuthInfo
-
setRegistrant
public void setRegistrant(java.lang.String newRegistrant)
Set registrant for the change mode- Parameters:
newRegistrant- java.lang.String
-
setForwardTo
public void setForwardTo(java.lang.String newForwardTo)
Set forwardTo Address for the change mode- Parameters:
newForwardTo- java.lang.String
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-