public class EPPLaunchChkData extends java.lang.Object implements EPPCodecComponent
EPPLaunchCheck
,
EPPLaunchCheckResult
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the launch phase check response
|
static java.lang.String |
ELM_NAME
Constant for the launch phase info extension tag
|
Constructor and Description |
---|
EPPLaunchChkData()
EPPLaunchCheckResp default constructor. |
EPPLaunchChkData(EPPLaunchCheckResult aResult)
EPPLaunchCheckResp constructor that will set the result of
an individual domain without a phase. |
EPPLaunchChkData(EPPLaunchPhase aPhase)
EPPLaunchCheckResp constructor that takes only the
transId attribute. |
EPPLaunchChkData(EPPLaunchPhase aPhase,
EPPLaunchCheckResult aResult)
EPPLaunchCheckResp constructor that will set the result of
an individual domain. |
EPPLaunchChkData(EPPLaunchPhase aPhase,
java.util.List<EPPLaunchCheckResult> aResults)
EPPLaunchCheckResp constructor that will set the result of
multiple domains. |
EPPLaunchChkData(java.util.List<EPPLaunchCheckResult> aResults)
EPPLaunchCheckResp constructor that will set the result of
multiple domains without a phase. |
Modifier and Type | Method and Description |
---|---|
void |
addCheckResult(EPPLaunchCheckResult aResult)
Add a claims check result to the list of results.
|
java.lang.Object |
clone()
Clone
EPPLaunchCheckResp . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPLaunchCheckResp attributes from the aElement
DOM Element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPLaunchCheckResp instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPLaunchCheckResp compare. |
java.util.List<EPPLaunchCheckResult> |
getCheckResults()
Get the results of a
EPPLaunchCheckResp Response. |
java.lang.String |
getNamespace()
Get the EPP command Namespace associated with
EPPLaunchCheckResp . |
EPPLaunchPhase |
getPhase()
Gets phase of the check response.
|
java.lang.String |
getType()
Get the EPP response type associated with
EPPLaunchCheckResp
. |
boolean |
hasPhase()
Is the phase defined?
|
void |
setCheckResult(EPPLaunchCheckResult aResult)
Sets the claims result of an individual domain name.
|
void |
setCheckResults(java.util.List<EPPLaunchCheckResult> aResults)
Set the results of a
EPPLaunchCheckResp Response. |
void |
setPhase(EPPLaunchPhase aPhase)
Sets the phase of the check response.
|
void |
setPhase(java.lang.String aPhaseString)
Sets the phase with one of the
EPPLaunchPhase
PHASE constants. |
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public static final java.lang.String ELM_LOCALNAME
public static final java.lang.String ELM_NAME
public EPPLaunchChkData()
EPPLaunchCheckResp
default constructor. The results list
will be empty.public EPPLaunchChkData(EPPLaunchPhase aPhase)
EPPLaunchCheckResp
constructor that takes only the
transId
attribute.aPhase
- One of the EPPLaunchPhase
PHASE
constants.public EPPLaunchChkData(EPPLaunchCheckResult aResult)
EPPLaunchCheckResp
constructor that will set the result of
an individual domain without a phase.aResult
- Result of a single domain name.public EPPLaunchChkData(java.util.List<EPPLaunchCheckResult> aResults)
EPPLaunchCheckResp
constructor that will set the result of
multiple domains without a phase.aResults
- List of claims check resultspublic EPPLaunchChkData(EPPLaunchPhase aPhase, EPPLaunchCheckResult aResult)
EPPLaunchCheckResp
constructor that will set the result of
an individual domain.aPhase
- One of the EPPLaunchPhase
PHASE
constants.aResult
- Result of a single domain name.public EPPLaunchChkData(EPPLaunchPhase aPhase, java.util.List<EPPLaunchCheckResult> aResults)
EPPLaunchCheckResp
constructor that will set the result of
multiple domains.aPhase
- One of the EPPLaunchPhase
PHASE
constants.aResults
- List of claims check resultspublic java.lang.String getType()
EPPLaunchCheckResp
.public java.lang.String getNamespace()
EPPLaunchCheckResp
.getNamespace
in interface EPPCodecComponent
EPPLaunchMapFactory.NS
public boolean equals(java.lang.Object aObject)
EPPLaunchCheckResp
compare.equals
in class java.lang.Object
aObject
- EPPLaunchCheckResp
instance to compare withpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPLaunchCheckResp
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPLaunchCheckResp
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean hasPhase()
true
if the phase is defined; false
otherwise.public EPPLaunchPhase getPhase()
null
otherwise.public void setPhase(EPPLaunchPhase aPhase)
aPhase
- One of the EPPLaunchPhase
PHASE
constants.public void setPhase(java.lang.String aPhaseString)
EPPLaunchPhase
PHASE
constants.aPhaseString
- One of the EPPLaunchPhase
PHASE
constants.public java.util.List<EPPLaunchCheckResult> getCheckResults()
EPPLaunchCheckResp
Response. There is
one EPPLaunchCheckResult
instance in
this.results
for each domain requested in the Claims Check
Command.public void setCheckResults(java.util.List<EPPLaunchCheckResult> aResults)
EPPLaunchCheckResp
Response. There is
one EPPLaunchCheckResult
instance in
this.results
for each domain requested in the Claims Check
Command.aResults
- List of claims check resultspublic void addCheckResult(EPPLaunchCheckResult aResult)
aResult
- Claims check result to add to the list.public void setCheckResult(EPPLaunchCheckResult aResult)
aResult
- Claims check result to setpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPLaunchCheckResp
instance.encode
in interface EPPCodecComponent
aDocument
- DOM Document that is being built. Used as an Element factory.EPPLaunchCheckResp
instance.EPPEncodeException
- Unable to encode EPPLaunchCheckResp
instance.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPLaunchCheckResp
attributes from the aElement
DOM Element tree.decode
in interface EPPCodecComponent
aElement
- Root DOM Element to decode EPPLaunchCheckResp
from.EPPDecodeException
- Unable to decode aElementpublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class java.lang.Object
String
if successful;
ERROR
otherwise.