Class NSDomain
java.lang.Object
com.verisign.epp.interfaces.EPPDomain
com.verisign.epp.interfaces.EPPRelatedDomain
com.verisign.epp.namestore.interfaces.NSDomain
NameStore Domain interface that extends that standard
EPPDomain
by adding new operations like restore request, restore report, and sync.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ListConstant used to remove all DS data usingaRemDsDataparameter of the methodsetSecDNSUpdate(List, List).static final ListConstant used to remove all key data usingaRemKeyDataof the methodsetSecDNSKeyUpdate(List, List).Fields inherited from class com.verisign.epp.interfaces.EPPRelatedDomain
DOMAIN_INFO_FORM, RELATED_INFO_FORMFields inherited from class com.verisign.epp.interfaces.EPPDomain
ADD, CHANGE, CONTACT, CONTACT_ADMINISTRATIVE, CONTACT_BILLING, CONTACT_TECHNICAL, HOST, HOSTS_ALL, HOSTS_DELEGATED, HOSTS_SUBORDINATE, PERIOD_MONTH, PERIOD_YEAR, REMOVE, STATUS, STATUS_CLIENT_DELETE_PROHIBITED, STATUS_CLIENT_HOLD, STATUS_CLIENT_RENEW_PROHIBITED, STATUS_CLIENT_TRANSFER_PROHIBITED, STATUS_CLIENT_UPDATE_PROHIBITED, STATUS_INACTIVE, STATUS_OK, STATUS_PENDING_CREATE, STATUS_PENDING_DELETE, STATUS_PENDING_RENEW, STATUS_PENDING_TRANSFER, STATUS_PENDING_UPDATE, STATUS_SERVER_DELETE_PROHIBITED, STATUS_SERVER_HOLD, STATUS_SERVER_RENEW_PROHIBITED, STATUS_SERVER_TRANSFER_PROHIBITED, STATUS_SERVER_UPDATE_PROHIBITED, TRANSFER_APPROVE, TRANSFER_CANCEL, TRANSFER_QUERY, TRANSFER_REJECT, TRANSFER_REQUEST -
Constructor Summary
ConstructorsConstructorDescriptionNSDomain(EPPSession aSession) Creates anNSDomainwith an establishedEPPSession. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrgId(EPPOrgExtId aOrgId) Adds an org identifier for use withsendCreate().voidaddUpdateOrgId(int aAction, EPPOrgExtId aOrgId) Updates the org identifier used withsendUpdate().intgetDay()Gets the day of sync.intgetMonth()Gets the month of sync.Gets the report information for the restore report.protected voidResets the domain attributes for the next command.Sends a Domain Name Create Command to the server.
The required attributes have been set with the following methods:
addDomainName- Sets the domain name to create.Send a restore report.
The required attributes have been set with the following methods:
addDomainName- Sets the domain name for report.Send a restore request.
The required attributes have been set with the following methods:
addDomainName- Sets the domain name to restore.sendSync()Send a sync command for a domain with a specified expiration month and day
The required attributes have been set with the following methods:
addDomainName- Sets the domain name for report.Sends a Domain Name Update Command to the server.
The required attributes have been set with the following methods:
addDomainName- Sets the domain name to update.voidsetAllocationToken(String aAllocationToken) Sets the allocation token extension with the token value to be passed along with eithersendCheck,sendCreate(),sendUpdate, orsendTransfer.voidsetCoaCreate(List aAttrs) Sets the list ofEPPCoaExtAttrinstances to associate Client Object Attributes with the object being created.voidsetCoaUpdateForPut(List aAttrs) Sets the list ofEPPCoaExtAttrinstances to associate Client Object Attributes with the object being updated.voidsetCoaUpdateForRem(List aKeys) Sets the list ofEPPCoaExtKeyinstances to specify Client Object Attributes to be removed from the object being updated.voidsetDay(int aDay) Sets the day of sync.voidsetIDNLangTag(String aLangTag) Set the IDN language tag used withsendCreate.voidSet the IDN Map used withsendCreate, which includes the IDN table identifer and optionally the uname.voidsetMonth(int aMonth) Sets the month of sync.voidsetReport(EPPRgpExtReport aReport) Sets the report information for the restore report.voidsetSecDNSCreate(List aDsData) Sets the list ofEPPSecDNSExtDsDatainstances in order to create delegation signer (DS) information.voidsetSecDNSKeyCreate(List aKeyData) Sets the list ofEPPSecDNSExtKeyDatainstances in order to create DNSSEC key information.voidsetSecDNSKeyUpdate(List aAddKeyData, List aRemKeyData) Sets the list ofEPPSecDNSExtKeyDatainstances to add along with the list ofEPPSecDNSExtKeyDatainstances to remove.voidsetSecDNSUpdate(List aAddDsData, List aRemDsData) Sets the list ofEPPSecDNSExtDsDatainstances to add along with the list ofEPPSecDNSExtDsDatainstances to remove.voidsetSecDNSUpdateForAdd(List aAddDsData, boolean aUrgent) Deprecated.voidsetSecDNSUpdateForChg(List aChgDsData, boolean aUrgent) Deprecated.Only supported with secDNS-1.0.voidsetSecDNSUpdateForRem(List aRemDsData, boolean aUrgent) Deprecated.Supports secDNS-1.0 and secDNS-1.1, but use the secDNS-1.1 methodsetSecDNSUpdate(List, List).voidsetSubProductID(String aSubProductID) Sets the domain sub-product id which specifies which is the target registry for the domain operation.voidsetWhoisInfo(boolean aWhoisInfo) Sets if whois information is desired in the response to a call tosendInfo().Methods inherited from class com.verisign.epp.interfaces.EPPRelatedDomain
addRelatedDomain, addRelatedName, sendRelatedCreate, sendRelatedDelete, sendRelatedInfo, sendRelatedRenew, sendRelatedTransfer, sendRelatedUpdate, setInfoFormMethods inherited from class com.verisign.epp.interfaces.EPPDomain
addContact, addDomainName, addExtension, addHostAttr, addHostName, getAuthInfo, getAuthRoid, getAuthString, getExpirationDate, getExtensions, getHosts, getPeriodLength, getPeriodUnit, getRegistrant, getResponse, sendCheck, sendDelete, sendInfo, sendRenew, sendTransfer, setAuthInfo, setAuthRoid, setAuthString, setExpirationDate, setExtension, setExtensions, setHosts, setPeriodLength, setPeriodUnit, setRegistrant, setTransferOpCode, setTransId, setUpdateAttrib, setUpdateAttrib, setUpdateAttrib
-
Field Details
-
REM_ALL_DS
Constant used to remove all DS data usingaRemDsDataparameter of the methodsetSecDNSUpdate(List, List). -
REM_ALL_KEY
Constant used to remove all key data usingaRemKeyDataof the methodsetSecDNSKeyUpdate(List, List).
-
-
Constructor Details
-
NSDomain
Creates anNSDomainwith an establishedEPPSession.- Parameters:
aSession- Established session
-
-
Method Details
-
sendRestoreRequest
Send a restore request.
The required attributes have been set with the following methods:
addDomainName- Sets the domain name to restore. Only one domain name is valid.setSubProductID- Sets the sub-product id
The optional attributes have been set with the following:
setTransId- Sets the client transaction identifier
- Returns:
EPPResponsecontaining the Domain restore request result.- Throws:
EPPCommandException- Error executing the restore request command. UsegetResponseto get the associated server error response.
-
sendRestoreReport
Send a restore report.
The required attributes have been set with the following methods:
addDomainName- Sets the domain name for report. Only one domain name is valid.setSubProductID- Sets the sub-product idsetReport- Sets the report information
The optional attributes have been set with the following:
setTransId- Sets the client transaction identifier
- Returns:
EPPResponsecontaining the Domain restore report result.- Throws:
EPPCommandException- Error executing the restore report command. UsegetResponseto get the associated server error response.
-
sendSync
Send a sync command for a domain with a specified expiration month and day
The required attributes have been set with the following methods:
addDomainName- Sets the domain name for report. Only one domain name is valid.setSubProductID- Sets the sub-product idsetMonth- Month to set expiration datesetDay- Day to set expiration date
The optional attributes have been set with the following:
setTransId- Sets the client transaction identifier
- Returns:
EPPResponsecontaining the Domain sync result.- Throws:
EPPCommandException- Error executing the sync command. UsegetResponseto get the associated server error response.
-
sendCreate
Sends a Domain Name Create Command to the server.
The required attributes have been set with the following methods:
addDomainName- Sets the domain name to create. Only one domain name is valid.setAuthString- Sets the domain name authorization string.
The optional attributes have been set with the following:
setTransId- Sets the client transaction identifiersetPeriodLength- Sets the registration period (default = 1)setPeriodUnit- Sets the registration period unit (default =PERIOD_YEAR)setRegistrant- Sets the Registrant for the domain. This is required for thick registries.addContact- Add domain contactaddHostName- Add domain delegation hostaddOrgId- Add an organization identifier with a role
- Overrides:
sendCreatein classEPPDomain- Returns:
EPPDomainCreateRespcontaining the Domain create result.- Throws:
EPPCommandException- Error executing the create command. UsegetResponseto get the associated server error response.
-
sendUpdate
Sends a Domain Name Update Command to the server.
The required attributes have been set with the following methods:
addDomainName- Sets the domain name to update. Only one domain name is valid.
The optional attributes have been set with the following:
setTransId- Sets the client transaction identifiersetUpdateAttrib(int,String,int)- Adds/removes hostssetUpdateAttrib(int,DomainStatus,int)- Adds/removes statusessetUpdateAttrib(int,String,String,int)- Adds/removes contactssetRegistrant- Sets the Registrant for the domain.setAuthString- Sets the domain name authorization string.addUpdateOrgId- Add an update to organization identifier
- Overrides:
sendUpdatein classEPPDomain- Returns:
EPPResponsecontaining the Domain update result.- Throws:
EPPCommandException- Error executing the update command. UsegetResponseto get the associated server error response.
-
getDay
public int getDay()Gets the day of sync.- Returns:
- Returns the day of sync if set;
-1otherwise
-
setDay
public void setDay(int aDay) Sets the day of sync.- Parameters:
aDay- The day to set.
-
getMonth
public int getMonth()Gets the month of sync.- Returns:
- the month using a
java.util.Calendarmonth constant if defined;-1otherwise
-
setMonth
public void setMonth(int aMonth) Sets the month of sync.- Parameters:
aMonth- the month using ajava.util.Calendarmonth constant
-
getReport
Gets the report information for the restore report.- Returns:
- Returns the report if defined;
nullotherwise.
-
setReport
Sets the report information for the restore report.- Parameters:
aReport- Report information
-
setIDNLangTag
Set the IDN language tag used withsendCreate.- Parameters:
aLangTag- Valid XML schema language value as defined by <a href="http://www.w3.org/TR/xmlschema-2/#language"/>. For example, use a two letter language tag likeenorfr.
-
setIDNMap
Set the IDN Map used withsendCreate, which includes the IDN table identifer and optionally the uname.- Parameters:
aTable- IDN table identifieraUname- OPTIONAL domain name in Unicode NFC. Set tonullif undefined.
-
setSubProductID
Sets the domain sub-product id which specifies which is the target registry for the domain operation. Some possible values include CC, TV, COM, NET. This results in aEPPNamestoreExtNamestoreExtextension being added to the command.- Parameters:
aSubProductID- Sub-product id of domain operation. Some constants for the sub-product id are defined inNSSubProduct. Passingnullwill not add any extension.
-
setWhoisInfo
public void setWhoisInfo(boolean aWhoisInfo) Sets if whois information is desired in the response to a call tosendInfo(). Iftrueis specified, thecom.verisign.epp.codec.whois.EPPWhoisInfDataextension will be added to thecom.verisign.epp.codec.domain.EPPDomainInfoRespwhen the server supports it.- Parameters:
aWhoisInfo-trueto include the whois response information;falseotherwise.
-
setSecDNSUpdate
Sets the list ofEPPSecDNSExtDsDatainstances to add along with the list ofEPPSecDNSExtDsDatainstances to remove. This method only supports secDNS-1.1. This method can be used to remove all DS data by passing theREM_ALL_DSconstant with theaRemDsDataparameter, and can be used to replace all DS data by passing theREM_ALL_DSconstant with theaRemDsDataparameter and setting theaAddDsDatato a non-null, non-empty list.- Parameters:
aAddDsData- - List ofEPPSecDNSExtDsDatainstances to add;nullif there is nothing to add.aRemDsData- - List ofEPPSecDNSExtDsDatainstances to remove;nullif there is nothing to remove. Set toREM_ALL_DSconstant to remove all DS data.- Throws:
EPPCommandException- Error with parameters passed in.
-
setSecDNSCreate
Sets the list ofEPPSecDNSExtDsDatainstances in order to create delegation signer (DS) information.- Parameters:
aDsData- - List ofEPPSecDNSExtDsDatainstances
-
setSecDNSKeyUpdate
Sets the list ofEPPSecDNSExtKeyDatainstances to add along with the list ofEPPSecDNSExtKeyDatainstances to remove. This method only supports secDNS-1.1. This method can be used to remove all key data by passing theREM_ALL_KEYconstant with theaRemKeyDataparameter, and can be used to replace all key data by passing theREM_ALL_KEYconstant with theaRemKeyDataparameter and setting theaAddKeyDatato a non-null, non-empty list.- Parameters:
aAddKeyData- List ofEPPSecDNSExtKeyDatainstances to add;nullif there is nothing to add.aRemKeyData- List ofEPPSecDNSExtKeyDatainstances to remove;nullif there is nothing to remove. Set toREM_ALL_KEYconstant to remove all key data.- Throws:
EPPCommandException- Error with parameters passed in.
-
setSecDNSKeyCreate
Sets the list ofEPPSecDNSExtKeyDatainstances in order to create DNSSEC key information.- Parameters:
aKeyData- List ofEPPSecDNSExtKeyDatainstances- Throws:
EPPCommandException- Error with parameters passed in.
-
setCoaCreate
Sets the list ofEPPCoaExtAttrinstances to associate Client Object Attributes with the object being created.- Parameters:
aAttrs- - List ofEPPCoaExtAttrinstances
-
setCoaUpdateForPut
Sets the list ofEPPCoaExtAttrinstances to associate Client Object Attributes with the object being updated.- Parameters:
aAttrs- - List ofEPPCoaExtAttrinstances
-
setCoaUpdateForRem
Sets the list ofEPPCoaExtKeyinstances to specify Client Object Attributes to be removed from the object being updated.- Parameters:
aKeys- - List ofEPPCoaExtKeyinstances
-
setSecDNSUpdateForAdd
Deprecated.Supports secDNS-1.0 and secDNS-1.1, but use the secDNS-1.1 methodsetSecDNSUpdate(List, List).Sets the list ofEPPSecDNSExtDsDatainstances in order to add delegation signer (DS) information.- Parameters:
aAddDsData- - List ofEPPSecDNSExtDsDatainstancesaUrgent- - boolean value indicates whether it is a high priority request
-
setSecDNSUpdateForChg
Deprecated.Only supported with secDNS-1.0. Look to use the secDNS-1.1 methodsetSecDNSUpdate(List, List).Sets the list ofEPPSecDNSExtDsDatainstances in order to change delegation signer (DS) information. This method is only used for secDNS-1.0.- Parameters:
aChgDsData- - List ofEPPSecDNSExtDsDatainstancesaUrgent- - boolean value indicates whether it is a high priority request
-
setSecDNSUpdateForRem
Deprecated.Supports secDNS-1.0 and secDNS-1.1, but use the secDNS-1.1 methodsetSecDNSUpdate(List, List).Sets the list ofIntegerinstances in order to remove delegation signer (DS) information.- Parameters:
aRemDsData- - List ofIntegerinstances for secDNS-1.0 orEPPSecDNSExtDsDatainstances for secDNS-1.1.aUrgent- - boolean value indicates whether it is a high priority request
-
setAllocationToken
Sets the allocation token extension with the token value to be passed along with eithersendCheck,sendCreate(),sendUpdate, orsendTransfer. The allocation token is used to allocation a domain name that be held or reserved for use.- Parameters:
aAllocationToken- Allocation token value
-
addOrgId
Adds an org identifier for use withsendCreate().- Parameters:
aOrgId- Org identifier with role to add
-
addUpdateOrgId
Updates the org identifier used withsendUpdate(). There are three possible actions that can be used includingEPPDomain.ADD,EPPDomain.REMOVE, andEPPDomain.CHANGEfor the org identifier.- Parameters:
aAction- One of theEPPDomain.ADD,EPPDomain.REMOVE, andEPPDomain.CHANGEfor the org identifier.aOrgId- Org identifier to add, remove, or change
-
resetDomain
protected void resetDomain()Resets the domain attributes for the next command.- Overrides:
resetDomainin classEPPRelatedDomain
-
setSecDNSUpdate(List, List).