Package com.verisign.epp.codec.emailFwd
Class EPPEmailFwdInfoResp
java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.emailFwd.EPPEmailFwdInfoResp
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP EmailFwd <emailFwd:infData> response to an
EPPEmailFwdInfoCmd. When an <info> command has been
processed successfully, the EPP <resData> element MUST contain a
child <emailFwd:infData> element that identifies the emailFwd
namespace and the location of the emailFwd schema. The
<emailFwd:infData> element contains the following child elements:
-
A <emailFwd:name> element that contains the fully qualified name of
the emailFwd. Use
getNameandsetNameto get and set the element. -
A <emailFwd:fwdTo> element that contains the emailFwd forwardTo
addresses.. Use
getForwardToandsetForwardToto get and set the forwardTo addresses. -
A <emailFwd:roid> element that contains the Repository Object
IDentifier assigned to the emailFwd object when the object was created. Use
getRoidandsetRoidto get and set the element. -
One or more <emailFwd:status> elements that contain the current status
descriptors associated with the emailFwd. See the
EPPEmailFwdStatusdescription for a list of valid status values. UsegetStatusandsetStatusto get and set the elements. -
If supported by the server, one <emailFwd:registrant> element and one
or more <emailFwd:contact> elements that contain identifiers for the
human or organizational social information objects associated with the
emailFwd object. Use
getContactsandsetContactsto get and set the elements. Contacts should only be specified if the Contact Mapping is supported. -
A <emailFwd:clID> element that contains the identifier of the
sponsoring client. Use
getClientIdandsetClientIdto get and set the element. -
A <emailFwd:crID> element that contains the identifier of the client
that created the emailFwd name. Use
getCreatedByandsetCreatedByto get and set the element. -
A <emailFwd:crDate> element that contains the date and time of
emailFwd creation. Use
getCreatedDateandsetCreatedDateto get and set the element. -
A <emailFwd:exDate> element that contains the date and time
identifying the end of the emailFwd's registration period. Use
getExpirationDateandsetExpirationDateto get and set the element. -
A <emailFwd:upID> element that contains the identifier of the client
that last updated the emailFwd name. This element MUST NOT be present if
the emailFwd has never been modified. Use
getLastUpdatedByandsetLastUpdatedByto get and set the element. -
A <emailFwd:upDate> element that contains the date and time of the
most recent emailFwd modification. This element MUST NOT be present if the
emailFwd has never been modified. Use
getLastUpdatedDateandsetLastUpdatedDateto get and set the element. -
A <emailFwd:trDate> elements that contains the date and time of the
most recent successful transfer. This element MUST NOT be provided if the
emailFwd has never been transferred. Use
getLastTransferDateandsetLastTransferDateto get and set the element. -
An OPTIONAL <emailFwd:authInfo> element that contains authorization
information associated with the emailFwd object. This element MUST NOT be
provided if the querying client is not the current sponsoring client. Use
getAuthInfoandsetAuthInfoto get and set the elements.
- See Also:
-
Field Summary
Fields inherited from class com.verisign.epp.codec.gen.EPPResponse
ELM_EXTENSION, ELM_MESSAGE_QUEUE, ELM_MESSAGE_QUEUE_QDATE, ELM_RESPONSE_DATA, extensions, TRANSFER_CLIENT_APPROVED, TRANSFER_CLIENT_CANCELLED, TRANSFER_CLIENT_REJECTED, TRANSFER_PENDING, TRANSFER_SERVER_APPROVED, TRANSFER_SERVER_CANCELLED -
Constructor Summary
ConstructorsConstructorDescriptionEPPEmailFwdInfoRespdefault constructor.EPPEmailFwdInfoResp(EPPTransId aTransId, String aRoid, String aName, String aClientId) EPPEmailFwdInfoRespconstuctor that takes the required attribute values as paramters.EPPEmailFwdInfoResp(EPPTransId aTransId, String aRoid, String aName, String aForwardTo, String aClientId, Vector someStatuses, String aCreatedBy, Date aCreatedDate, EPPAuthInfo aAuthInfo) EPPEmailFwdInfoRespconstuctor that takes the required and the most common optional attribute values as paramters. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPEmailFwdInfoResp.protected voidDecode theEPPEmailFwdInfoRespattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPEmailFwdInfoRespinstance.booleanCompare an instance ofEPPEmailFwdInfoRespwith this instance.Get authorization informationGets the emailFwd owning Client Id.Gets the ContactsGets Client Id that created the emailFwd.Gets the date and time the emailFwd was created.Gets the expiration date and time of the emailFwd.Gets the emailFwd ToGets the date and time of the last successful emailFwd transfer.Gets the Client Id that last updated the emailFwd.Gets the date and time of the last emailFwd update.getName()Gets the emailFwd nameGets the EPP command namespace associated withEPPEmailFwdInfoResp.Get registrantgetRoid()Get roid.Get the current associated statusesgetType()Gets the EPP response type associated withEPPEmailFwdInfoResp.voidsetAuthInfo(EPPAuthInfo newAuthInfo) Set authorization informationvoidsetClientId(String aClientId) Sets the emailFwd owning Client Id.voidsetContacts(Vector someContacts) Sets the Contacts.voidsetCreatedBy(String aCreatedBy) Sets Client Id that created the emailFwd.voidsetCreatedDate(Date aDate) Sets the date and time the emailFwd was created.voidsetExpirationDate(Date aExpirationDate) Sets the expiration date and time of the emailFwd.voidsetForwardTo(String aForwardTo) Sets the emailFwd name.voidsetLastTransferDate(Date aLastTransferDate) Sets the last date and time the emailFwd was successfully transferred.voidsetLastUpdatedBy(String aLastUpdatedBy) Sets the Client Id that last updated the emailFwd.voidsetLastUpdatedDate(Date aLastUpdatedDate) Sets the last date and time the emailFwd was updated.voidSets the emailFwd name.voidsetRegistrant(String newRegistrant) Set registrants.voidSet roid.voidsetStatuses(Vector newStatuses) Set associated statuses.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPResponse
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getMessageQueue, getMsgQueue, getMsgQueueCount, getMsgQueueDate, getMsgQueueMsg, getQDate, getResult, getResults, getTransId, hasExtension, hasExtensions, hasMessageQueue, hasMsgQueue, hasResultCode, isSuccess, setExtension, setExtensions, setMsgQueue, setResult, setResult, setResult, setResult, setResults, setTransId
-
Constructor Details
-
EPPEmailFwdInfoResp
public EPPEmailFwdInfoResp()EPPEmailFwdInfoRespdefault constructor. Must call required setter methods before invokingencode, which include:
-
name -
setName -
roid -
setRoid -
client id -
setClientId
-
name -
-
EPPEmailFwdInfoResp
EPPEmailFwdInfoRespconstuctor that takes the required attribute values as paramters. The setter methods of the optional attributes can be called before invokingencode.- Parameters:
aTransId- Transaction Id associated with response.aRoid- roidaName- EmailFwd nameaClientId- Owning Client Id
-
EPPEmailFwdInfoResp
public EPPEmailFwdInfoResp(EPPTransId aTransId, String aRoid, String aName, String aForwardTo, String aClientId, Vector someStatuses, String aCreatedBy, Date aCreatedDate, EPPAuthInfo aAuthInfo) EPPEmailFwdInfoRespconstuctor that takes the required and the most common optional attribute values as paramters. The setter methods of the additional optional attributes can be called before invokingencode.- Parameters:
aTransId- Transaction Id associated with response.aRoid- roidaName- EmailFwd nameaForwardTo- EmailFwdTo addressaClientId- Owning Client IdsomeStatuses- Current status descriptors associated with the emailFwd.aCreatedBy- Client Id of Registrar that created the emailFwdaCreatedDate- Date the emailFwd was createdaAuthInfo- Expirate date of the emailFwd
-
-
Method Details
-
getStatuses
Get the current associated statuses- Returns:
- java.util.Vector
-
setStatuses
Set associated statuses.- Parameters:
newStatuses- java.util.Vector
-
getType
Gets the EPP response type associated withEPPEmailFwdInfoResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPEmailFwdInfoResp.ELM_NAME
-
getNamespace
Gets the EPP command namespace associated withEPPEmailFwdInfoResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPEmailFwdMapFactory.NS
-
equals
Compare an instance ofEPPEmailFwdInfoRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPEmailFwdInfoResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPEmailFwdInfoResp - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPResponse- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getName
Gets the emailFwd name- Returns:
- EmailFwd Name if defined;
nullotherwise.
-
setName
Sets the emailFwd name.- Parameters:
aName- EmailFwd Name
-
setForwardTo
Sets the emailFwd name.- Parameters:
aForwardTo- EmailFwd Name
-
getForwardTo
Gets the emailFwd To- Returns:
- EmailFwd forwardTo if defined;
nullotherwise.
-
getClientId
Gets the emailFwd owning Client Id.- Returns:
- Client Id
-
setClientId
Sets the emailFwd owning Client Id.- Parameters:
aClientId- Client Id
-
getContacts
Gets the Contacts- Returns:
- Vector of
EPPEmailFwdContactinstances if defined;nullotherwise.
-
setContacts
Sets the Contacts. This method should only be called if the Contact Namespace supported.- Parameters:
someContacts- - Vector ofEPPEmailFwdContactinstances
-
getCreatedBy
Gets Client Id that created the emailFwd.- Returns:
- Client Id if defined;
nullotherwise.
-
setCreatedBy
Sets Client Id that created the emailFwd.- Parameters:
aCreatedBy- Client Id that created the emailFwd.
-
getCreatedDate
Gets the date and time the emailFwd was created.- Returns:
- Date and time the emailFwd was created if defined;
nullotherwise.
-
setCreatedDate
Sets the date and time the emailFwd was created.- Parameters:
aDate- Date and time the emailFwd was created.
-
getExpirationDate
Gets the expiration date and time of the emailFwd.- Returns:
- Expiration date and time of the emailFwd if defined;
nullotherwise.
-
setExpirationDate
Sets the expiration date and time of the emailFwd.- Parameters:
aExpirationDate- Expiration date and time of the emailFwd.
-
getLastUpdatedBy
Gets the Client Id that last updated the emailFwd. This will be null if the emailFwd has not been updated since creation.- Returns:
- Client Id that last updated the emailFwd has been updated;
nullotherwise.
-
setLastUpdatedBy
Sets the Client Id that last updated the emailFwd.- Parameters:
aLastUpdatedBy- Client Id String that last updated the emailFwd.
-
getLastUpdatedDate
Gets the date and time of the last emailFwd update. This will benullif the emailFwd has not been updated since creation.- Returns:
- date and time of the last emailFwd update if defined;
nullotherwise.
-
setLastUpdatedDate
Sets the last date and time the emailFwd was updated.- Parameters:
aLastUpdatedDate- Date and time of the last emailFwd update.
-
getLastTransferDate
Gets the date and time of the last successful emailFwd transfer. This will benullif the emailFwd has not been successfully transferred since creation.- Returns:
- date and time of the last successful transfer if defined;
nullotherwise.
-
setLastTransferDate
Sets the last date and time the emailFwd was successfully transferred.- Parameters:
aLastTransferDate- Date and time of the last succesful transfer
-
getAuthInfo
Get authorization information- Returns:
- Authorization information if defined;
nullotherwise;
-
getRegistrant
Get registrant- Returns:
- String
-
setRegistrant
Set registrants.- Parameters:
newRegistrant- String
-
setAuthInfo
Set authorization information- Parameters:
newAuthInfo- EPPAuthInfo
-
getRoid
Get roid.- Returns:
- java.lang.String
-
setRoid
Set roid.- Parameters:
newRoid- java.lang.String
-
doEncode
Encode a DOM Element tree from the attributes of theEPPEmailFwdInfoRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the EPPEmailFwdInfoResp instance.
- Throws:
EPPEncodeException- Unable to encode EPPEmailFwdInfoResp instance.
-
doDecode
Decode theEPPEmailFwdInfoRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPEmailFwdInfoRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-