Package com.verisign.epp.codec.idntable
Class EPPIdnTableInfoCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPInfoCmd
com.verisign.epp.codec.idntable.EPPIdnTableInfoCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP Internationalized Domain Name (IDN) Table <info>
command, which support three different forms:
- Domain Info Form - Used to validate the domain name code points against the IDN Tables and IDN Policies, and to return the matching IDN Table meta-data.
- Table Info Form - Used to retrieve information associated with an IDN Table object.
- List Info Form - Used to retrieve the list of IDN Tables supported by the server.
EPPIdnTableInfoResp is the concrete EPPReponse
associated with EPPIdnTableInfoCmd.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumInfo form types, that include:
UNDEFINED_FORMthat represents an undefined state, where none of the forms can be determined.DOMAIN_FORMthat represents the "Domain Info Form".TABLE_FORMthat represents the "Table Info Form".LIST_FORMthat represents the "List Info Form". -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPIdnTableInfoCmd.static final StringXML root tag forEPPIdnTableInfoCmd.Fields inherited from class com.verisign.epp.codec.gen.EPPCommand
extensions, OP_APPROVE, OP_CANCEL, OP_QUERY, OP_REJECT, OP_REQUEST, transId, TYPE_CHECK, TYPE_CREATE, TYPE_DELETE, TYPE_INFO, TYPE_LOGIN, TYPE_LOGOUT, TYPE_POLL, TYPE_RENEW, TYPE_TRANSFER, TYPE_UPDATE -
Constructor Summary
ConstructorsConstructorDescriptionEPPIdnTableInfoCmddefault constructor.EPPIdnTableInfoCmd(String aTransId) EPPIdnTableInfoCmdconstructor that only takes the client transaction identifierEPPIdnTableInfoCmd(String aTransId, EPPIdnTableInfoCmd.Form aForm, String aValue) EPPIdnTableInfoCmdconstructor for setting an individual table identifier to check in Table Check Form. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPIdnTableInfoCmd.protected voidDecode theEPPIdnTableInfoCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPIdnTableInfoCmdinstance.booleanCompare an instance ofEPPIdnTableInfoCmdwith this instance.Gets the domain name for Domain Info Form.getForm()What inform is being used?Gets the EPP command Namespace associated withEPPIdnTableInfoCmd.getTable()Gets the table identifier for Table Info Form.booleanIs the domain defined?booleanhasTable()Is the table defined?voidSets the domain name for Domain Info Form.voidsetForm(EPPIdnTableInfoCmd.Form aForm) Set the form of the info command using one of theFormenumerated values.voidSets the table identifier for Table Info Form.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPInfoCmd
doGenDecode, doGenEncode, getTypeMethods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getKey, getOp, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPIdnTableInfoCmd.- See Also:
-
ELM_NAME
XML root tag forEPPIdnTableInfoCmd.- See Also:
-
-
Constructor Details
-
EPPIdnTableInfoCmd
public EPPIdnTableInfoCmd()EPPIdnTableInfoCmddefault constructor. -
EPPIdnTableInfoCmd
EPPIdnTableInfoCmdconstructor that only takes the client transaction identifier- Parameters:
aTransId- Transaction Id associated with command.
-
EPPIdnTableInfoCmd
EPPIdnTableInfoCmdconstructor for setting an individual table identifier to check in Table Check Form.- Parameters:
aTransId- Transaction Id associated with command.aForm- What is the form of the info command?aValue- Value of the string passed with the form. Pass domain name for theForm.DOMAIN_FORM, table identifier for theForm.TABLE_FORM, andnullfor theForm.LIST_FORM.
-
-
Method Details
-
getNamespace
Gets the EPP command Namespace associated withEPPIdnTableInfoCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPIdnTableMapFactory.NS
-
hasDomain
public boolean hasDomain()Is the domain defined?- Returns:
trueif the domain is defined;falseotherwise.
-
getDomain
Gets the domain name for Domain Info Form.- Returns:
- The domain name if defined;
nullotherwise.
-
setDomain
Sets the domain name for Domain Info Form. The form will be automatically set toForm.DOMAIN_FORMfor a non-null domain value.- Parameters:
aDomain- Domain name in Domain Info Form.
-
hasTable
public boolean hasTable()Is the table defined?- Returns:
trueif the table is defined;falseotherwise.
-
getTable
Gets the table identifier for Table Info Form.- Returns:
- The table identifier if defined;
nullotherwise.
-
setTable
Sets the table identifier for Table Info Form. The form will be automatically set toForm.TABLE_FORMfor a non-null table identifier value.- Parameters:
aTable- Table identifier
-
getForm
What inform is being used?- Returns:
- One of the
Formenumerated values, whereUNDEFINED_FORMis used when the form has not been set.
-
setForm
Set the form of the info command using one of theFormenumerated values.- Parameters:
aForm- One of theFormenumerated values.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPIdnTableInfoCmdinstance.- Specified by:
doEncodein classEPPInfoCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPIdnTableInfoCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPIdnTableInfoCmdinstance.
-
doDecode
Decode theEPPIdnTableInfoCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPInfoCmd- Parameters:
aElement- Root DOM Element to decodeEPPIdnTableInfoCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
Compare an instance ofEPPIdnTableInfoCmdwith this instance.- Overrides:
equalsin classEPPInfoCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif this object is the same as the aObject argument;falseotherwise.
-
clone
CloneEPPIdnTableInfoCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- Deep copy clone of
EPPIdnTableInfoCmd - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-