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,java.io.Serializable,java.lang.Cloneable
public class EPPEmailFwdInfoResp extends EPPResponse
Represents an EPP EmailFwd <emailFwd:infData> response to anEPPEmailFwdInfoCmd. 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:
EPPEmailFwdInfoCmd, Serialized Form
-
-
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
Constructors Constructor Description EPPEmailFwdInfoResp()EPPEmailFwdInfoRespdefault constructor.EPPEmailFwdInfoResp(EPPTransId aTransId, java.lang.String aRoid, java.lang.String aName, java.lang.String aClientId)EPPEmailFwdInfoRespconstuctor that takes the required attribute values as paramters.EPPEmailFwdInfoResp(EPPTransId aTransId, java.lang.String aRoid, java.lang.String aName, java.lang.String aForwardTo, java.lang.String aClientId, java.util.Vector someStatuses, java.lang.String aCreatedBy, java.util.Date aCreatedDate, EPPAuthInfo aAuthInfo)EPPEmailFwdInfoRespconstuctor that takes the required and the most common optional attribute values as paramters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPEmailFwdInfoResp.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPEmailFwdInfoRespattributes from the aElement DOM Element tree.protected org.w3c.dom.ElementdoEncode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPEmailFwdInfoRespinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPEmailFwdInfoRespwith this instance.EPPAuthInfogetAuthInfo()Get authorization informationjava.lang.StringgetClientId()Gets the emailFwd owning Client Id.java.util.VectorgetContacts()Gets the Contactsjava.lang.StringgetCreatedBy()Gets Client Id that created the emailFwd.java.util.DategetCreatedDate()Gets the date and time the emailFwd was created.java.util.DategetExpirationDate()Gets the expiration date and time of the emailFwd.java.lang.StringgetForwardTo()Gets the emailFwd Tojava.util.DategetLastTransferDate()Gets the date and time of the last successful emailFwd transfer.java.lang.StringgetLastUpdatedBy()Gets the Client Id that last updated the emailFwd.java.util.DategetLastUpdatedDate()Gets the date and time of the last emailFwd update.java.lang.StringgetName()Gets the emailFwd namejava.lang.StringgetNamespace()Gets the EPP command namespace associated withEPPEmailFwdInfoResp.java.lang.StringgetRegistrant()Get registrantjava.lang.StringgetRoid()Get roid.java.util.VectorgetStatuses()Get the current associated statusesjava.lang.StringgetType()Gets the EPP response type associated withEPPEmailFwdInfoResp.voidsetAuthInfo(EPPAuthInfo newAuthInfo)Set authorization informationvoidsetClientId(java.lang.String aClientId)Sets the emailFwd owning Client Id.voidsetContacts(java.util.Vector someContacts)Sets the Contacts.voidsetCreatedBy(java.lang.String aCreatedBy)Sets Client Id that created the emailFwd.voidsetCreatedDate(java.util.Date aDate)Sets the date and time the emailFwd was created.voidsetExpirationDate(java.util.Date aExpirationDate)Sets the expiration date and time of the emailFwd.voidsetForwardTo(java.lang.String aForwardTo)Sets the emailFwd name.voidsetLastTransferDate(java.util.Date aLastTransferDate)Sets the last date and time the emailFwd was successfully transferred.voidsetLastUpdatedBy(java.lang.String aLastUpdatedBy)Sets the Client Id that last updated the emailFwd.voidsetLastUpdatedDate(java.util.Date aLastUpdatedDate)Sets the last date and time the emailFwd was updated.voidsetName(java.lang.String aName)Sets the emailFwd name.voidsetRegistrant(java.lang.String newRegistrant)Set registrants.voidsetRoid(java.lang.String newRoid)Set roid.voidsetStatuses(java.util.Vector newStatuses)Set associated statuses.java.lang.StringtoString()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 Detail
-
EPPEmailFwdInfoResp
public EPPEmailFwdInfoResp()
EPPEmailFwdInfoRespdefault constructor. Must call required setter methods before invokingencode, which include:
-
name -
setName -
roid -
setRoid -
client id -
setClientId
-
name -
-
EPPEmailFwdInfoResp
public EPPEmailFwdInfoResp(EPPTransId aTransId, java.lang.String aRoid, java.lang.String aName, java.lang.String aClientId)
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, java.lang.String aRoid, java.lang.String aName, java.lang.String aForwardTo, java.lang.String aClientId, java.util.Vector someStatuses, java.lang.String aCreatedBy, java.util.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 Detail
-
getStatuses
public java.util.Vector getStatuses()
Get the current associated statuses- Returns:
- java.util.Vector
-
setStatuses
public void setStatuses(java.util.Vector newStatuses)
Set associated statuses.- Parameters:
newStatuses- java.util.Vector
-
getType
public java.lang.String getType()
Gets the EPP response type associated withEPPEmailFwdInfoResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPEmailFwdInfoResp.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command namespace associated withEPPEmailFwdInfoResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPEmailFwdMapFactory.NS
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPEmailFwdInfoRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPEmailFwdInfoResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPEmailFwdInfoResp - 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 classEPPResponse- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getName
public java.lang.String getName()
Gets the emailFwd name- Returns:
- EmailFwd Name if defined;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
Sets the emailFwd name.- Parameters:
aName- EmailFwd Name
-
setForwardTo
public void setForwardTo(java.lang.String aForwardTo)
Sets the emailFwd name.- Parameters:
aForwardTo- EmailFwd Name
-
getForwardTo
public java.lang.String getForwardTo()
Gets the emailFwd To- Returns:
- EmailFwd forwardTo if defined;
nullotherwise.
-
getClientId
public java.lang.String getClientId()
Gets the emailFwd owning Client Id.- Returns:
- Client Id
-
setClientId
public void setClientId(java.lang.String aClientId)
Sets the emailFwd owning Client Id.- Parameters:
aClientId- Client Id
-
getContacts
public java.util.Vector getContacts()
Gets the Contacts- Returns:
- Vector of
EPPEmailFwdContactinstances if defined;nullotherwise.
-
setContacts
public void setContacts(java.util.Vector someContacts)
Sets the Contacts. This method should only be called if the Contact Namespace supported.- Parameters:
someContacts- - Vector ofEPPEmailFwdContactinstances
-
getCreatedBy
public java.lang.String getCreatedBy()
Gets Client Id that created the emailFwd.- Returns:
- Client Id if defined;
nullotherwise.
-
setCreatedBy
public void setCreatedBy(java.lang.String aCreatedBy)
Sets Client Id that created the emailFwd.- Parameters:
aCreatedBy- Client Id that created the emailFwd.
-
getCreatedDate
public java.util.Date getCreatedDate()
Gets the date and time the emailFwd was created.- Returns:
- Date and time the emailFwd was created if defined;
nullotherwise.
-
setCreatedDate
public void setCreatedDate(java.util.Date aDate)
Sets the date and time the emailFwd was created.- Parameters:
aDate- Date and time the emailFwd was created.
-
getExpirationDate
public java.util.Date getExpirationDate()
Gets the expiration date and time of the emailFwd.- Returns:
- Expiration date and time of the emailFwd if defined;
nullotherwise.
-
setExpirationDate
public void setExpirationDate(java.util.Date aExpirationDate)
Sets the expiration date and time of the emailFwd.- Parameters:
aExpirationDate- Expiration date and time of the emailFwd.
-
getLastUpdatedBy
public java.lang.String 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
public void setLastUpdatedBy(java.lang.String aLastUpdatedBy)
Sets the Client Id that last updated the emailFwd.- Parameters:
aLastUpdatedBy- Client Id String that last updated the emailFwd.
-
getLastUpdatedDate
public java.util.Date 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
public void setLastUpdatedDate(java.util.Date aLastUpdatedDate)
Sets the last date and time the emailFwd was updated.- Parameters:
aLastUpdatedDate- Date and time of the last emailFwd update.
-
getLastTransferDate
public java.util.Date 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
public void setLastTransferDate(java.util.Date aLastTransferDate)
Sets the last date and time the emailFwd was successfully transferred.- Parameters:
aLastTransferDate- Date and time of the last succesful transfer
-
getAuthInfo
public EPPAuthInfo getAuthInfo()
Get authorization information- Returns:
- Authorization information if defined;
nullotherwise;
-
getRegistrant
public java.lang.String getRegistrant()
Get registrant- Returns:
- String
-
setRegistrant
public void setRegistrant(java.lang.String newRegistrant)
Set registrants.- Parameters:
newRegistrant- String
-
setAuthInfo
public void setAuthInfo(EPPAuthInfo newAuthInfo)
Set authorization information- Parameters:
newAuthInfo- EPPAuthInfo
-
getRoid
public java.lang.String getRoid()
Get roid.- Returns:
- java.lang.String
-
setRoid
public void setRoid(java.lang.String newRoid)
Set roid.- Parameters:
newRoid- java.lang.String
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPEmailFwdInfoRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPEmailFwdInfoRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
-