Package com.verisign.epp.interfaces
Class EPPIdnTable
java.lang.Object
com.verisign.epp.interfaces.EPPIdnTable
EPPIdnTable is the primary client interface class used for the
IDN Table EPP mapping. An instance of EPPIdnTable is created
with an initialized EPPSession, and can be used for more than
one request within a single thread. A set of setter methods are provided to
set the attributes before a call to one of the send action methods. The
responses returned from the send action methods are either instances of
EPPResponse or instances of response classes in the
com.verisign.epp.codec.idntable package.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEPPIdnTable(EPPSession aSession) Constructs anEPPIdnTablegiven an initialized EPP session. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDomain(String aDomain, EPPIdnTableDomainLabel.Form aForm) Adds a domain for use with asendmethod.voidaddExtension(EPPCodecComponent aExtension) Adds a command extension object.voidAdds a table identifier for use with asendmethod.Gets the command extensions.Gets the response associated with the last command.protected voidResets the IDN Table instance to its initial state.Sends an IDN Table Check Command in Domain Check Form to the server.
There required attributes that must be set prior to executingsendDomainCheck()include:
addDomain- Sets the domains to check.Sends an IDN Table Info Command in Domain Info Form to the server.
There required attributes that must be set prior to executingsendDomainInfo()include:
addDomain- Sets the domain name to get IDN Table info for.Sends an IDN Table Info Command in List Info Form to the server.
There are no required attributes that must be set prior to executingsendListInfo().
The optional attributes can be set with the following:
setTransId- Sets the client transaction identifier.Sends an IDN Table Check Command in Table Check Form to the server.
There required attributes that must be set prior to executingsendTableCheck()include:
addTable- Sets the table identifiers to check.Sends an IDN Table Info Command in Table Info Form to the server.
There required attributes that must be set prior to executingsendTableInfo()include:
addTable- Sets the table identifier to get info for.voidsetExtensions(Vector aExtensions) Sets the command extension objects.voidsetTransId(String aTransId) Sets the client transaction identifier.
-
Constructor Details
-
EPPIdnTable
Constructs anEPPIdnTablegiven an initialized EPP session.- Parameters:
aSession- Server session to use.
-
-
Method Details
-
addExtension
Adds a command extension object.- Parameters:
aExtension- command extension object associated with the command
-
setExtensions
Sets the command extension objects.- Parameters:
aExtensions- command extension objects associated with the command
-
getExtensions
Gets the command extensions.- Returns:
Vectorof concreteEPPCodecComponentassociated with the command if exists;nullotherwise.
-
setTransId
Sets the client transaction identifier.- Parameters:
aTransId- Client transaction identifier
-
addDomain
Adds a domain for use with asendmethod. Adding more than one domain is only supported bysendCheck.- Parameters:
aDomain- Domain name to addaForm- The form of the domain name, which isEPPIdnTableDomainLabel.A_LABELfor an A-label and // *EPPIdnTableDomainLabel.U_LABELfor a U-label.
-
addTable
Adds a table identifier for use with asendmethod. Adding more than one table is only supported bysendCheck.- Parameters:
aTable- Table identifier to add.
-
sendDomainCheck
Sends an IDN Table Check Command in Domain Check Form to the server.
There required attributes that must be set prior to executingsendDomainCheck()include:
addDomain- Sets the domains to check. At least one domain must be set.
The optional attributes can be set with the following:
setTransId- Sets the client transaction identifier.
- Returns:
EPPIdnTableCheckRespwith form set toEPPIdnTableCheckResp.Form.DOMAIN_FORM.- Throws:
EPPCommandException- On error
-
sendTableCheck
Sends an IDN Table Check Command in Table Check Form to the server.
There required attributes that must be set prior to executingsendTableCheck()include:
addTable- Sets the table identifiers to check. At least one table must be set.
The optional attributes can be set with the following:
setTransId- Sets the client transaction identifier.
- Returns:
EPPIdnTableCheckRespwith form set toEPPIdnTableCheckResp.Form.TABLE_FORM.- Throws:
EPPCommandException- On error
-
sendDomainInfo
Sends an IDN Table Info Command in Domain Info Form to the server.
There required attributes that must be set prior to executingsendDomainInfo()include:
addDomain- Sets the domain name to get IDN Table info for. Only one domain is valid.
The optional attributes can be set with the following:
setTransId- Sets the client transaction identifier.
- Returns:
EPPIdnTableInfoRespwith form set toEPPIdnTableInfoResp.Form.DOMAIN_FORM.- Throws:
EPPCommandException- On error
-
sendTableInfo
Sends an IDN Table Info Command in Table Info Form to the server.
There required attributes that must be set prior to executingsendTableInfo()include:
addTable- Sets the table identifier to get info for. Only one table is valid.
The optional attributes can be set with the following:
setTransId- Sets the client transaction identifier.
- Returns:
EPPIdnTableInfoRespwith form set toEPPIdnTableInfoResp.Form.TABLE_FORM.- Throws:
EPPCommandException- On error
-
sendListInfo
Sends an IDN Table Info Command in List Info Form to the server.
There are no required attributes that must be set prior to executingsendListInfo().
The optional attributes can be set with the following:
setTransId- Sets the client transaction identifier.
- Returns:
EPPIdnTableInfoRespwith form set toEPPIdnTableInfoResp.Form.LIST_FORM.- Throws:
EPPCommandException- On error
-
resetIdnTable
protected void resetIdnTable()Resets the IDN Table instance to its initial state. -
getResponse
Gets the response associated with the last command. This method can be used to retrieve the server error response in the catch block of EPPCommandException.- Returns:
- Response associated with the last command
-