Package com.verisign.epp.interfaces
Class EPPIdnTable
- java.lang.Object
-
- com.verisign.epp.interfaces.EPPIdnTable
-
public class EPPIdnTable extends java.lang.ObjectEPPIdnTableis the primary client interface class used for the IDN Table EPP mapping. An instance ofEPPIdnTableis created with an initializedEPPSession, 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 ofEPPResponseor instances of response classes in thecom.verisign.epp.codec.idntablepackage.- See Also:
EPPIdnTableCheckResp,EPPIdnTableInfoResp
-
-
Constructor Summary
Constructors Constructor Description EPPIdnTable(EPPSession aSession)Constructs anEPPIdnTablegiven an initialized EPP session.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDomain(java.lang.String aDomain, EPPIdnTableDomainLabel.Form aForm)Adds a domain for use with asendmethod.voidaddExtension(EPPCodecComponent aExtension)Adds a command extension object.voidaddTable(java.lang.String aTable)Adds a table identifier for use with asendmethod.java.util.VectorgetExtensions()Gets the command extensions.EPPResponsegetResponse()Gets the response associated with the last command.protected voidresetIdnTable()Resets the IDN Table instance to its initial state.EPPIdnTableCheckRespsendDomainCheck()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.EPPIdnTableInfoRespsendDomainInfo()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.EPPIdnTableInfoRespsendListInfo()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.EPPIdnTableCheckRespsendTableCheck()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.EPPIdnTableInfoRespsendTableInfo()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(java.util.Vector aExtensions)Sets the command extension objects.voidsetTransId(java.lang.String aTransId)Sets the client transaction identifier.
-
-
-
Constructor Detail
-
EPPIdnTable
public EPPIdnTable(EPPSession aSession)
Constructs anEPPIdnTablegiven an initialized EPP session.- Parameters:
aSession- Server session to use.
-
-
Method Detail
-
addExtension
public void addExtension(EPPCodecComponent aExtension)
Adds a command extension object.- Parameters:
aExtension- command extension object associated with the command
-
setExtensions
public void setExtensions(java.util.Vector aExtensions)
Sets the command extension objects.- Parameters:
aExtensions- command extension objects associated with the command
-
getExtensions
public java.util.Vector getExtensions()
Gets the command extensions.- Returns:
Vectorof concreteEPPCodecComponentassociated with the command if exists;nullotherwise.
-
setTransId
public void setTransId(java.lang.String aTransId)
Sets the client transaction identifier.- Parameters:
aTransId- Client transaction identifier
-
addDomain
public void addDomain(java.lang.String aDomain, EPPIdnTableDomainLabel.Form aForm)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
public void addTable(java.lang.String aTable)
Adds a table identifier for use with asendmethod. Adding more than one table is only supported bysendCheck.- Parameters:
aTable- Table identifier to add.
-
sendDomainCheck
public EPPIdnTableCheckResp sendDomainCheck() throws EPPCommandException
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
public EPPIdnTableCheckResp sendTableCheck() throws EPPCommandException
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
public EPPIdnTableInfoResp sendDomainInfo() throws EPPCommandException
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
public EPPIdnTableInfoResp sendTableInfo() throws EPPCommandException
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
public EPPIdnTableInfoResp sendListInfo() throws EPPCommandException
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
public EPPResponse 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
-
-