Package com.verisign.epp.codec.launch
Class EPPLaunchChkData
- java.lang.Object
-
- com.verisign.epp.codec.launch.EPPLaunchChkData
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPLaunchChkData extends java.lang.Object implements EPPCodecComponent
The extension to a response to a claims check command.- See Also:
EPPLaunchCheck,EPPLaunchCheckResult, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEConstant for the launch phase check responsestatic java.lang.StringELM_NAMEConstant for the launch phase info extension tag
-
Constructor Summary
Constructors Constructor Description EPPLaunchChkData()EPPLaunchCheckRespdefault constructor.EPPLaunchChkData(EPPLaunchCheckResult aResult)EPPLaunchCheckRespconstructor that will set the result of an individual domain without a phase.EPPLaunchChkData(EPPLaunchPhase aPhase)EPPLaunchCheckRespconstructor that takes only thetransIdattribute.EPPLaunchChkData(EPPLaunchPhase aPhase, EPPLaunchCheckResult aResult)EPPLaunchCheckRespconstructor that will set the result of an individual domain.EPPLaunchChkData(EPPLaunchPhase aPhase, java.util.List<EPPLaunchCheckResult> aResults)EPPLaunchCheckRespconstructor that will set the result of multiple domains.EPPLaunchChkData(java.util.List<EPPLaunchCheckResult> aResults)EPPLaunchCheckRespconstructor that will set the result of multiple domains without a phase.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCheckResult(EPPLaunchCheckResult aResult)Add a claims check result to the list of results.java.lang.Objectclone()CloneEPPLaunchCheckResp.voiddecode(org.w3c.dom.Element aElement)Decode theEPPLaunchCheckRespattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPLaunchCheckRespinstance.booleanequals(java.lang.Object aObject)implements a deepEPPLaunchCheckRespcompare.java.util.List<EPPLaunchCheckResult>getCheckResults()Get the results of aEPPLaunchCheckRespResponse.java.lang.StringgetNamespace()Get the EPP command Namespace associated withEPPLaunchCheckResp.EPPLaunchPhasegetPhase()Gets phase of the check response.java.lang.StringgetType()Get the EPP response type associated withEPPLaunchCheckResp.booleanhasPhase()Is the phase defined?voidsetCheckResult(EPPLaunchCheckResult aResult)Sets the claims result of an individual domain name.voidsetCheckResults(java.util.List<EPPLaunchCheckResult> aResults)Set the results of aEPPLaunchCheckRespResponse.voidsetPhase(EPPLaunchPhase aPhase)Sets the phase of the check response.voidsetPhase(java.lang.String aPhaseString)Sets the phase with one of theEPPLaunchPhasePHASEconstants.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
Constant for the launch phase check response- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the launch phase info extension tag- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPLaunchChkData
public EPPLaunchChkData()
EPPLaunchCheckRespdefault constructor. The results list will be empty.
-
EPPLaunchChkData
public EPPLaunchChkData(EPPLaunchPhase aPhase)
EPPLaunchCheckRespconstructor that takes only thetransIdattribute.- Parameters:
aPhase- One of theEPPLaunchPhasePHASEconstants.
-
EPPLaunchChkData
public EPPLaunchChkData(EPPLaunchCheckResult aResult)
EPPLaunchCheckRespconstructor that will set the result of an individual domain without a phase.- Parameters:
aResult- Result of a single domain name.
-
EPPLaunchChkData
public EPPLaunchChkData(java.util.List<EPPLaunchCheckResult> aResults)
EPPLaunchCheckRespconstructor that will set the result of multiple domains without a phase.- Parameters:
aResults- List of claims check results
-
EPPLaunchChkData
public EPPLaunchChkData(EPPLaunchPhase aPhase, EPPLaunchCheckResult aResult)
EPPLaunchCheckRespconstructor that will set the result of an individual domain.- Parameters:
aPhase- One of theEPPLaunchPhasePHASEconstants.aResult- Result of a single domain name.
-
EPPLaunchChkData
public EPPLaunchChkData(EPPLaunchPhase aPhase, java.util.List<EPPLaunchCheckResult> aResults)
EPPLaunchCheckRespconstructor that will set the result of multiple domains.- Parameters:
aPhase- One of theEPPLaunchPhasePHASEconstants.aResults- List of claims check results
-
-
Method Detail
-
getType
public java.lang.String getType()
Get the EPP response type associated withEPPLaunchCheckResp.- Returns:
- EPPLaunchCheckResp.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Get the EPP command Namespace associated withEPPLaunchCheckResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
EPPLaunchMapFactory.NS
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPLaunchCheckRespcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPLaunchCheckRespinstance to compare with- Returns:
- true if equal false otherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPLaunchCheckResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPLaunchCheckResp - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
hasPhase
public boolean hasPhase()
Is the phase defined?- Returns:
trueif the phase is defined;falseotherwise.
-
getPhase
public EPPLaunchPhase getPhase()
Gets phase of the check response.- Returns:
- phase of the check response if set;
nullotherwise.
-
setPhase
public void setPhase(EPPLaunchPhase aPhase)
Sets the phase of the check response.- Parameters:
aPhase- One of theEPPLaunchPhasePHASEconstants.
-
setPhase
public void setPhase(java.lang.String aPhaseString)
Sets the phase with one of theEPPLaunchPhasePHASEconstants.- Parameters:
aPhaseString- One of theEPPLaunchPhasePHASEconstants.
-
getCheckResults
public java.util.List<EPPLaunchCheckResult> getCheckResults()
Get the results of aEPPLaunchCheckRespResponse. There is oneEPPLaunchCheckResultinstance inthis.resultsfor each domain requested in the Claims Check Command.- Returns:
- List of results if defined; empty list otherwise.
-
setCheckResults
public void setCheckResults(java.util.List<EPPLaunchCheckResult> aResults)
Set the results of aEPPLaunchCheckRespResponse. There is oneEPPLaunchCheckResultinstance inthis.resultsfor each domain requested in the Claims Check Command.- Parameters:
aResults- List of claims check results
-
addCheckResult
public void addCheckResult(EPPLaunchCheckResult aResult)
Add a claims check result to the list of results.- Parameters:
aResult- Claims check result to add to the list.
-
setCheckResult
public void setCheckResult(EPPLaunchCheckResult aResult)
Sets the claims result of an individual domain name.- Parameters:
aResult- Claims check result to set
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPLaunchCheckRespinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPLaunchCheckRespinstance. - Throws:
EPPEncodeException- Unable to encodeEPPLaunchCheckRespinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPLaunchCheckRespattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPLaunchCheckRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
-