Package com.verisign.epp.codec.emailFwd
Class EPPEmailFwdAddRemove
java.lang.Object
com.verisign.epp.codec.emailFwd.EPPEmailFwdAddRemove
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents attributes to add, remove or change with a
The EmailFwdEmailFwd Mapping Specification describes the following attributes:
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.
EPPEmailFwdUpdateCmd. In
EPPEmailFwdUpdateCmd, an instance of
EPPEmailFwdAddRemove is used to specify the attributes to
add; an instance of EPPEmailFwdAddRemove is used to
specify the attributes to remove, and an instance of
EPPEmailFwdAddRemove is used to specify the attributes to changeThe 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.
EPPEmailFwdAddRemove will delegate the
validation of the cardinality of the emailFwd attributes elements to
the EPP Server. - See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPEmailFwdAddRemove.EPPEmailFwdAddRemove(String aRegistrant, String aForwardTo, EPPAuthInfo aAuthInfo) Constructor forEPPEmailFwdAddRemovethat includes the attributes as arguments.EPPEmailFwdAddRemove(Vector someContacts, Vector someStatuses) Constructor forEPPEmailFwdAddRemovethat includes the attributes as arguments. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPEmailFwdAddRemove.booleanReturn if EmailFwd Contacts is supported.voidDecode theEPPEmailFwdAddRemoveattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPEmailFwdAddRemoveinstance.booleanimplements a deepEPPEmailFwdAddRemovecompare.Get authorization information for the change modeGets the contacts to add or remove.Get forwardTo AddressReturns the XML namespace associated with theEPPCodecComponent.Get registrant for the change modeGets the statuses to add or remove.voidsetAuthInfo(EPPAuthInfo newAuthInfo) Set authorization information for the change modevoidsetContacts(Vector aContacts) Sets the contacts to add or remove.voidsetForwardTo(String newForwardTo) Set forwardTo Address for the change modevoidsetRegistrant(String newRegistrant) Set registrant for the change modevoidsetStatuses(Vector aStatuses) Sets the statuses to add or remove.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Constructor Details
-
EPPEmailFwdAddRemove
public EPPEmailFwdAddRemove()Default constructor forEPPEmailFwdAddRemove. All of the attribute default tonullto indicate no modification. -
EPPEmailFwdAddRemove
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
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 Details
-
getContacts
Gets the contacts to add or remove.- Returns:
- Vector of
EPPEmailFwdContactinstances.
-
setContacts
Sets the contacts to add or remove.- Parameters:
aContacts- DOCUMENT ME!
-
getStatuses
Gets the statuses to add or remove. TheEPPEmailFwdInfoResp.STATUS_constants can be used for the statuses.- Returns:
- Vector of status
Stringinstances.
-
setStatuses
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
Encode 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
Decode 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
implements a deepEPPEmailFwdAddRemovecompare. -
clone
CloneEPPEmailFwdAddRemove.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPEmailFwdAddRemove - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getAuthInfo
Get authorization information for the change mode- Returns:
- com.verisign.epp.codec.emailFwd.EPPEmailFwdAuthInfo
-
getRegistrant
Get registrant for the change mode- Returns:
- java.lang.String
-
getForwardTo
Get forwardTo Address- Returns:
- java.lang.String
-
setAuthInfo
Set authorization information for the change mode- Parameters:
newAuthInfo- com.verisign.epp.codec.emailFwd.EPPEmailFwdAuthInfo
-
setRegistrant
Set registrant for the change mode- Parameters:
newRegistrant- java.lang.String
-
setForwardTo
Set forwardTo Address for the change mode- Parameters:
newForwardTo- java.lang.String
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-