Package com.verisign.epp.codec.launch
Class EPPLaunchCheck
java.lang.Object
com.verisign.epp.codec.launch.EPPLaunchCheck
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Extension to the domain check command to implement the check in three
different forms, which include Claims Check Form, Availability Check Form, or
Trademark Check Form.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for the launch phase check extension local namestatic final StringConstant for the launch phase info extension tagstatic final StringConstant used to specify the availability check form typestatic final StringConstant used to specify the claims check form typestatic final StringConstant used to specify the trademark check form type -
Constructor Summary
ConstructorsConstructorDescriptionCreate an EPPLaunchInf instanceEPPLaunchCheck(EPPLaunchPhase aPhase) Create aEPPLaunchCheckinstance with the required phase attribute value.EPPLaunchCheck(EPPLaunchPhase aPhase, String aType) Create aEPPLaunchCheckinstance with the phase and optional type attribute value.EPPLaunchCheck(String aType) Create aEPPLaunchCheckinstance with the type attribute value. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPLaunchCheck.voidDecode the DOM element to theEPPLaunchCheck.Encode theEPPLaunchCheckto a DOM Elementbooleanimplements a deepEPPLaunchCheckcompare.Returns the XML namespace associated with theEPPCodecComponent.getPhase()Gets phase of the check command.getType()Gets the check form type, which should be eitherTYPE_CLAIMS,TYPE_AVAILABILITY, ornullfor undefined.booleanhasPhase()Is the phase defined?booleanhasType()Is the check form type defined?booleanIs the Availability Check Form being used?booleanIs the Claims Check Form being used?booleanIs the Trademark Check Form being used?voidsetPhase(EPPLaunchPhase aPhase) Sets the phase of the check command.voidSets the phase with one of theEPPLaunchPhasePHASEconstants.voidSets the check form type.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
TYPE_CLAIMS
Constant used to specify the claims check form type- See Also:
-
TYPE_AVAILABILITY
Constant used to specify the availability check form type- See Also:
-
TYPE_TRADEMARK
Constant used to specify the trademark check form type- See Also:
-
ELM_LOCALNAME
Constant for the launch phase check extension local name- See Also:
-
ELM_NAME
Constant for the launch phase info extension tag- See Also:
-
-
Constructor Details
-
EPPLaunchCheck
public EPPLaunchCheck()Create an EPPLaunchInf instance -
EPPLaunchCheck
Create aEPPLaunchCheckinstance with the required phase attribute value.- Parameters:
aPhase- The phase with the value of to execute the check against.
-
EPPLaunchCheck
Create aEPPLaunchCheckinstance with the phase and optional type attribute value.- Parameters:
aPhase- The phase with the value of to execute the check against.aType- Claims form type using eitherTYPE_CLAIMSorTYPE_AVAILABILITYorTYPE_TRADEMARK.
-
EPPLaunchCheck
Create aEPPLaunchCheckinstance with the type attribute value.- Parameters:
aType- Claims form type using eitherTYPE_CLAIMSorTYPE_AVAILABILITYorTYPE_TRADEMARK.
-
-
Method Details
-
hasType
public boolean hasType()Is the check form type defined?- Returns:
trueif the type is defined;falseotherwise.
-
getType
Gets the check form type, which should be eitherTYPE_CLAIMS,TYPE_AVAILABILITY, ornullfor undefined.- Returns:
TYPE_CLAIMS,TYPE_AVAILABILITY, ornullfor undefined.
-
setType
Sets the check form type. The XML schema defines the default asTYPE_CLAIMSif undefined.- Parameters:
aType-TYPE_CLAIMSorTYPE_AVAILABILITY
-
hasPhase
public boolean hasPhase()Is the phase defined?- Returns:
trueif the phase is defined;falseotherwise.
-
getPhase
Gets phase of the check command.- Returns:
- phase of the check command if set;
nullotherwise.
-
setPhase
Sets the phase of the check command.- Parameters:
aPhase- The phase with the value of to execute the check against.
-
setPhase
Sets the phase with one of theEPPLaunchPhasePHASEconstants.- Parameters:
aPhaseString- One of theEPPLaunchPhasePHASEconstants.
-
isClaimsCheckForm
public boolean isClaimsCheckForm()Is the Claims Check Form being used?- Returns:
trueif Claims Check Form is defined;falseotherwise.
-
isAvailabilityCheckForm
public boolean isAvailabilityCheckForm()Is the Availability Check Form being used?- Returns:
trueif Availability Check Form is defined;falseotherwise.
-
isTrademarkCheckForm
public boolean isTrademarkCheckForm()Is the Trademark Check Form being used?- Returns:
trueif Trademark Check Form is defined;falseotherwise.
-
clone
CloneEPPLaunchCheck.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPLaunchCheck - Throws:
CloneNotSupportedException- standard Object.clone exception
-
encode
Encode theEPPLaunchCheckto a DOM Element- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- a DOM Document to attach data to.- Returns:
- The root element of this component.
- Throws:
EPPEncodeException- Thrown if any errors prevent encoding.
-
decode
Decode the DOM element to theEPPLaunchCheck.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- DOM Element to decode the attribute values- Throws:
EPPDecodeException- Error decoding the DOM Element
-
equals
implements a deepEPPLaunchCheckcompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-