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,Serializable,Cloneable
Represents an EPP Host <host:infData> response to an
EPPHostInfoCmd. 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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPHostInfoResp.static final StringXML 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
ConstructorsConstructorDescriptionEPPHostInfoRespdefault constructor.EPPHostInfoResp(EPPTransId aTransId, String aName, String aRoid, EPPHostStatus aHostStatus, String aClientId, String aCreatedBy, Date aCreatedDate) EPPHostInfoRespconstuctor that takes the required attribute values as parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAddress(EPPHostAddress aAddress) Add an address to the list of addresses.voidaddStatus(EPPHostStatus aStatus) Add a status to the list of statuses.clone()CloneEPPHostInfoResp.protected voidDecode theEPPHostInfoRespattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPHostInfoRespinstance.booleanCompare an instance ofEPPHostInfoRespwith this instance.Gets the list (Vector) of host addresses.Gets the host owning Client Id.Gets Client Id that created the host.Gets the date and time the host was created.Gets the Client Id that last updated the host.Gets the date and time of the last host update.getName()Gets the host nameGets the EPP command namespace associated withEPPHostInfoResp.getRoid()Get roid.Get host statuses.Get transfer date.getType()Gets the EPP response type associated withEPPHostInfoResp.booleanAre addresses set?booleanAre statuses set?voidsetAddresses(Vector<EPPHostAddress> aAddresses) Sets the list (Vector) of host addresses.voidsetClientId(String aClientId) Sets the host owning Client Id.voidsetCreatedBy(String aCreatedBy) Sets Client Id that created the host.voidsetCreatedDate(Date aDate) Sets the date and time the host was created.voidsetLastUpdatedBy(String aLastUpdatedBy) Sets the Client Id that last updated the host.voidsetLastUpdatedDate(Date aLastUpdatedDate) Sets the last date and time the host was updated.voidSets the host name.voidSet roid.voidsetStatuses(EPPHostStatus aHostStatus) Deprecated.voidsetStatuses(Vector<EPPHostStatus> newStatuses) Set host statuses.voidSet transfer date.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
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPHostInfoResp.- See Also:
-
ELM_NAME
XML Element Name ofEPPHostInfoResproot element.- See Also:
-
-
Constructor Details
-
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, String aName, String aRoid, EPPHostStatus aHostStatus, String aClientId, String aCreatedBy, 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 Details
-
getType
Gets the EPP response type associated withEPPHostInfoResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPHostInfoResp.ELM_NAME
-
getNamespace
Gets the EPP command namespace associated withEPPHostInfoResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPHostMapFactory.NS
-
doEncode
Encode 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
Decode theEPPHostInfoRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPHostInfoRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
Compare an instance ofEPPHostInfoRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise
-
clone
CloneEPPHostInfoResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPHostInfoResp - 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 host name- Returns:
- Host Name if defined;
nullotherwise.
-
setName
Sets the host name.- Parameters:
aName- Host Name
-
getClientId
Gets the host owning Client Id.- Returns:
- Client Id if defined;
nullotherwise.
-
setClientId
Sets the host owning Client Id.- Parameters:
aClientId- Client Id
-
hasAddresses
public boolean hasAddresses()Are addresses set?- Returns:
trueif addresses are set;falseotherwise.
-
addAddress
Add an address to the list of addresses.- Parameters:
aAddress- Address to add
-
getAddresses
Gets the list (Vector) of host addresses. Each host address is an instance ofEPPHostAddress.- Returns:
VectorofEPPHostAddressinstances if defined;nullotherwise.
-
setAddresses
Sets the list (Vector) of host addresses. Each host address is an instance ofEPPHostAddress.- Parameters:
aAddresses-VectorofEPPHostAddressinstances
-
getCreatedBy
Gets Client Id that created the host.- Returns:
- Client Id if defined;
nullotherwise.
-
setCreatedBy
Sets Client Id that created the host.- Parameters:
aCreatedBy- Client Id that created the host.
-
getCreatedDate
Gets the date and time the host was created.- Returns:
- Date and time the host was created if defined;
nullotherwise.
-
setCreatedDate
Sets the date and time the host was created.- Parameters:
aDate- Date and time the host was created.
-
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
Sets the Client Id that last updated the host.- Parameters:
aLastUpdatedBy- Client Id String that last updated the host.
-
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
Sets the last date and time the host was updated.- Parameters:
aLastUpdatedDate- Date and time of the last host update.
-
getTrDate
Get transfer date.- Returns:
- java.util.Date
-
hasStatuses
public boolean hasStatuses()Are statuses set?- Returns:
trueif statuses are set;falseotherwise.
-
getStatuses
Get host statuses.- Returns:
VectorofEPPHostStatusif defined;nullif undefined.
-
addStatus
Add a status to the list of statuses.- Parameters:
aStatus- Status to add
-
setStatuses
Deprecated.Add an individual status to the list of statuses.- Parameters:
aHostStatus- com.verisign.epp.codec.host.EPPHostStatus
-
setStatuses
Set host statuses.- Parameters:
newStatuses- Vector
-
setTrDate
Set transfer date.- Parameters:
newTrDate- java.util.Date
-
getRoid
Get roid.- Returns:
- java.lang.String
-
setRoid
Set roid.- Parameters:
newRoid- java.lang.String
-
addStatus(EPPHostStatus)