Package com.verisign.epp.codec.host
Class EPPHostInfoResp
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPResponse
-
- com.verisign.epp.codec.host.EPPHostInfoResp
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
public class EPPHostInfoResp extends EPPResponse
Represents an EPP Host <host:infData> response to anEPPHostInfoCmd. When an <info> command has been processed successfully, the EPP <resData> element MUST contain a child <host:infData> element that identifies the host namespace and the location of the host schema. The <host:infData> element contains the following child elements:
- A <host:name> element that contains the fully qualified name of the
host. Use
getNameandsetNameto get and set the element. - A <host:roid> element that contains the Respoitory Object IDentifier assigned to the host object when the object was created.
- One or more <host:status> elements that describe the status of the
host object. Use
getStatusesandsetStatusesto get and set the element. - Zero or more <host:addr> elements that contain the IP addresses
associated with the host object. Use
getAddressesandsetAddressesto get and set the element. - A <host:clID> element that contains the identifier of the
sponsoring client. Use
getClientIdandsetClientIdto get and set the element. - A <host:crID> element that contains the identifier of the client
that created the host name. Use
getCreatedByandsetCreatedByto get and set the element. - A <host:crDate> element that contains the date and time of host
creation. Use
getCreatedDateandsetCreatedDateto get and set the element. - A <host:upID> element that contains the identifier of the client
that last updated the host name. This element MUST NOT be present if the host
has never been modified. Use
getLastUpdatedByandsetLastUpdatedByto get and set the element. - A <host:upDate> element that contains the date and time of the most
recent host modification. This element MUST NOT be present if the host has
never been modified. Use
getUpdatedDateandsetUpdatedDateto get and set the element. - A <host:trDate> element that contains the date and time of the most
recent successful transfer. This element MUST NOT be provided if the host has
never been transferred. Note that host objects MUST NOT be transferred
directly; host objects MUST be transferred implicitly when the host object's
superordinate domain object is transferred. Host objects that are subject to
transfer when transferring a domain object are listed in the response to an
EPP <info> command performed on the domain object. Use
getTrDateandsetTrDateto get and set the element. - A <host:authInfo> element derived from either the original creation
transaction or the most recent successful parent domain transfer transaction.
This element MUST NOT be provided if the querying client is not the current
sponsoring client. Use
getAuthInfoandsetAuthInfoto get and set the element.
- See Also:
EPPHostInfoCmd, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPHostInfoResp.static java.lang.StringELM_NAMEXML Element Name ofEPPHostInfoResproot element.-
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 EPPHostInfoResp()EPPHostInfoRespdefault constructor.EPPHostInfoResp(EPPTransId aTransId, java.lang.String aName, java.lang.String aRoid, EPPHostStatus aHostStatus, java.lang.String aClientId, java.lang.String aCreatedBy, java.util.Date aCreatedDate)EPPHostInfoRespconstuctor that takes the required attribute values as parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddAddress(EPPHostAddress aAddress)Add an address to the list of addresses.voidaddStatus(EPPHostStatus aStatus)Add a status to the list of statuses.java.lang.Objectclone()CloneEPPHostInfoResp.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPHostInfoRespattributes 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 theEPPHostInfoRespinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPHostInfoRespwith this instance.java.util.Vector<EPPHostAddress>getAddresses()Gets the list (Vector) of host addresses.java.lang.StringgetClientId()Gets the host owning Client Id.java.lang.StringgetCreatedBy()Gets Client Id that created the host.java.util.DategetCreatedDate()Gets the date and time the host was created.java.lang.StringgetLastUpdatedBy()Gets the Client Id that last updated the host.java.util.DategetLastUpdatedDate()Gets the date and time of the last host update.java.lang.StringgetName()Gets the host namejava.lang.StringgetNamespace()Gets the EPP command namespace associated withEPPHostInfoResp.java.lang.StringgetRoid()Get roid.java.util.Vector<EPPHostStatus>getStatuses()Get host statuses.java.util.DategetTrDate()Get transfer date.java.lang.StringgetType()Gets the EPP response type associated withEPPHostInfoResp.booleanhasAddresses()Are addresses set?booleanhasStatuses()Are statuses set?voidsetAddresses(java.util.Vector<EPPHostAddress> aAddresses)Sets the list (Vector) of host addresses.voidsetClientId(java.lang.String aClientId)Sets the host owning Client Id.voidsetCreatedBy(java.lang.String aCreatedBy)Sets Client Id that created the host.voidsetCreatedDate(java.util.Date aDate)Sets the date and time the host was created.voidsetLastUpdatedBy(java.lang.String aLastUpdatedBy)Sets the Client Id that last updated the host.voidsetLastUpdatedDate(java.util.Date aLastUpdatedDate)Sets the last date and time the host was updated.voidsetName(java.lang.String aName)Sets the host name.voidsetRoid(java.lang.String newRoid)Set roid.voidsetStatuses(EPPHostStatus aHostStatus)Deprecated.voidsetStatuses(java.util.Vector<EPPHostStatus> newStatuses)Set host statuses.voidsetTrDate(java.util.Date newTrDate)Set transfer date.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
-
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPHostInfoResp.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML Element Name ofEPPHostInfoResproot element.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPHostInfoResp
public EPPHostInfoResp()
EPPHostInfoRespdefault constructor. Must call required setter methods before invokingencode, which include:
- name -
setName - roid -
setRoid - status -
setStatuses - client id -
setClientId - created by -
setCreatedBy - created date -
setCreatedDate
- name -
-
EPPHostInfoResp
public EPPHostInfoResp(EPPTransId aTransId, java.lang.String aName, java.lang.String aRoid, EPPHostStatus aHostStatus, java.lang.String aClientId, java.lang.String aCreatedBy, java.util.Date aCreatedDate)
EPPHostInfoRespconstuctor that takes the required attribute values as parameters. The setter methods of the optional attributes can be called before invokingencode.- Parameters:
aTransId- Transaction Id associated with response.aName- Host nameaRoid- roidaHostStatus- EPP Host StatusaClientId- Owning Client IdaCreatedBy- Client Id of Registrar that created the hostaCreatedDate- Date the host was created
-
-
Method Detail
-
getType
public java.lang.String getType()
Gets the EPP response type associated withEPPHostInfoResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPHostInfoResp.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command namespace associated withEPPHostInfoResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPHostMapFactory.NS
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPHostInfoRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the EPPHostPingMap instance.
- Throws:
EPPEncodeException- Unable to encode EPPHostPingMap instance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPHostInfoRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPHostInfoRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPHostInfoRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPHostInfoResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPHostInfoResp - 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 host name- Returns:
- Host Name if defined;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
Sets the host name.- Parameters:
aName- Host Name
-
getClientId
public java.lang.String getClientId()
Gets the host owning Client Id.- Returns:
- Client Id if defined;
nullotherwise.
-
setClientId
public void setClientId(java.lang.String aClientId)
Sets the host owning Client Id.- Parameters:
aClientId- Client Id
-
hasAddresses
public boolean hasAddresses()
Are addresses set?- Returns:
trueif addresses are set;falseotherwise.
-
addAddress
public void addAddress(EPPHostAddress aAddress)
Add an address to the list of addresses.- Parameters:
aAddress- Address to add
-
getAddresses
public java.util.Vector<EPPHostAddress> getAddresses()
Gets the list (Vector) of host addresses. Each host address is an instance ofEPPHostAddress.- Returns:
VectorofEPPHostAddressinstances if defined;nullotherwise.
-
setAddresses
public void setAddresses(java.util.Vector<EPPHostAddress> aAddresses)
Sets the list (Vector) of host addresses. Each host address is an instance ofEPPHostAddress.- Parameters:
aAddresses-VectorofEPPHostAddressinstances
-
getCreatedBy
public java.lang.String getCreatedBy()
Gets Client Id that created the host.- Returns:
- Client Id if defined;
nullotherwise.
-
setCreatedBy
public void setCreatedBy(java.lang.String aCreatedBy)
Sets Client Id that created the host.- Parameters:
aCreatedBy- Client Id that created the host.
-
getCreatedDate
public java.util.Date getCreatedDate()
Gets the date and time the host was created.- Returns:
- Date and time the host was created if defined;
nullotherwise.
-
setCreatedDate
public void setCreatedDate(java.util.Date aDate)
Sets the date and time the host was created.- Parameters:
aDate- Date and time the host was created.
-
getLastUpdatedBy
public java.lang.String getLastUpdatedBy()
Gets the Client Id that last updated the host. This will be null if the host has not been updated since creation.- Returns:
- Client Id that last updated the host has been updated;
nullotherwise.
-
setLastUpdatedBy
public void setLastUpdatedBy(java.lang.String aLastUpdatedBy)
Sets the Client Id that last updated the host.- Parameters:
aLastUpdatedBy- Client Id String that last updated the host.
-
getLastUpdatedDate
public java.util.Date getLastUpdatedDate()
Gets the date and time of the last host update. This will benullif the host has not been updated since creation.- Returns:
- date and time of the last host update if defined;
nullotherwise.
-
setLastUpdatedDate
public void setLastUpdatedDate(java.util.Date aLastUpdatedDate)
Sets the last date and time the host was updated.- Parameters:
aLastUpdatedDate- Date and time of the last host update.
-
getTrDate
public java.util.Date getTrDate()
Get transfer date.- Returns:
- java.util.Date
-
hasStatuses
public boolean hasStatuses()
Are statuses set?- Returns:
trueif statuses are set;falseotherwise.
-
getStatuses
public java.util.Vector<EPPHostStatus> getStatuses()
Get host statuses.- Returns:
VectorofEPPHostStatusif defined;nullif undefined.
-
addStatus
public void addStatus(EPPHostStatus aStatus)
Add a status to the list of statuses.- Parameters:
aStatus- Status to add
-
setStatuses
@Deprecated public void setStatuses(EPPHostStatus aHostStatus)
Deprecated.Add an individual status to the list of statuses.- Parameters:
aHostStatus- com.verisign.epp.codec.host.EPPHostStatus
-
setStatuses
public void setStatuses(java.util.Vector<EPPHostStatus> newStatuses)
Set host statuses.- Parameters:
newStatuses- Vector
-
setTrDate
public void setTrDate(java.util.Date newTrDate)
Set transfer date.- Parameters:
newTrDate- java.util.Date
-
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
-
-