public class EPPRelatedDomain extends EPPDomain
EPPRelatedDomain
is the client interface specific to the Related
Domain EPP Extension to support sending the info command in both the Domain
Info Form and the Related Info Form via the EPPDomain.sendInfo()
method. The
form is defined by the type
attribute using one of the two
constants of TYPE_DOMAIN
for the Domain Info Form and
TYPE_RELATED
for the Related Info Form. The default form is the
Domain Info Form.EPPResponse
,
EPPRelatedDomainExtInfData
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DOMAIN_INFO_FORM
Use the Domain Info Form for the info command.
|
static java.lang.String |
RELATED_INFO_FORM
Use the Related Info Form for the info command.
|
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 and Description |
---|
EPPRelatedDomain(EPPSession aSession)
Constructs an
EPPRelatedDomain given an initialized EPP
session. |
Modifier and Type | Method and Description |
---|---|
void |
addRelatedDomain(EPPRelatedDomainExtDomain aRelatedDomain)
Add a related domain for a call to either
sendRelatedCreate() ,
sendRelatedRenew() , or sendRelatedTransfer() . |
void |
addRelatedName(java.lang.String aRelatedName)
Add a related domain for a call to either
sendRelatedDelete() ,
or sendRelatedUpdate() . |
protected void |
resetDomain()
Resets the domain instance to its initial state.
|
EPPDomainCreateResp |
sendRelatedCreate()
Send the related domain create, which allows for the create of more than
one domain name.
|
EPPResponse |
sendRelatedDelete()
Send the related domain delete, which allows for the deletion of more
than one domain name.
|
EPPResponse |
sendRelatedInfo()
Send the related domain info, which which supports two different forms
set with the
setInfoForm(String) method. |
EPPDomainRenewResp |
sendRelatedRenew()
Send the related domain renew, which allows for the renewal of more than
one domain name.
|
EPPDomainTransferResp |
sendRelatedTransfer()
Send the related domain transfer, which allows for the transfer of more
than one domain name.
|
EPPResponse |
sendRelatedUpdate()
Send the related domain update, which allows for the update of more than
one domain name.
|
void |
setInfoForm(java.lang.String aType)
Sets the info form type.
|
addContact, addDomainName, addExtension, addHostAttr, addHostName, getAuthRoid, getAuthString, getExpirationDate, getExtensions, getHosts, getPeriodLength, getPeriodUnit, getRegistrant, getResponse, sendCheck, sendCreate, sendDelete, sendInfo, sendRenew, sendTransfer, sendUpdate, setAuthRoid, setAuthString, setExpirationDate, setExtension, setExtensions, setHosts, setPeriodLength, setPeriodUnit, setRegistrant, setTransferOpCode, setTransId, setUpdateAttrib, setUpdateAttrib, setUpdateAttrib
public static final java.lang.String DOMAIN_INFO_FORM
public static final java.lang.String RELATED_INFO_FORM
public EPPRelatedDomain(EPPSession aSession)
EPPRelatedDomain
given an initialized EPP
session.aSession
- Server session to use.public void addRelatedDomain(EPPRelatedDomainExtDomain aRelatedDomain)
sendRelatedCreate()
,
sendRelatedRenew()
, or sendRelatedTransfer()
.aRelatedDomain
- Related domain to add to the list of related domains.public void addRelatedName(java.lang.String aRelatedName)
sendRelatedDelete()
,
or sendRelatedUpdate()
.aRelatedName
- Related domain name to add to the list of related domain
names.public EPPResponse sendRelatedInfo() throws EPPCommandException
setInfoForm(String)
method. The two constants
DOMAIN_INFO_FORM
and RELATED_INFO_FORM
are used
for the form values, with the default being DOMAIN_INFO_FORM
. The attributes of EPPDomain
must be set based on the
requirements for calling EPPDomain.sendInfo()
.EPPDomainInfoResp
for
DOMAIN_INFO_FORM
and a standard EPPResponse
for RELATED_INFO_FORM
with a
EPPRelatedDomainExtInfData
extension attached.EPPCommandException
- Error creating and sending the command.public EPPDomainCreateResp sendRelatedCreate() throws EPPCommandException
addRelatedDomain(EPPRelatedDomainExtDomain)
method. The
attributes of EPPDomain
must be set based on the requirements for
calling EPPDomain.sendCreate()
.EPPDomainCreateResp
with a
EPPRelatedDomainExtCreateResp
extension attached.EPPCommandException
- Error creating and sending the command.public EPPResponse sendRelatedDelete() throws EPPCommandException
addRelatedName(String)
method. The attributes of
EPPDomain
must be set based on the requirements for calling
EPPDomain.sendDelete()
.EPPResponse
with a
EPPRelatedDomainExtDeleteResp
extension attached.EPPCommandException
- Error creating and sending the command.public EPPDomainTransferResp sendRelatedTransfer() throws EPPCommandException
addRelatedDomain(EPPRelatedDomainExtDomain)
method. The
attributes of EPPDomain
must be set based on the requirements for
calling EPPDomain.sendTransfer()
.EPPDomainTransferResp
with a
EPPRelatedDomainExtTransferResp
extension attached.EPPCommandException
- Error creating and sending the command.public EPPDomainRenewResp sendRelatedRenew() throws EPPCommandException
addRelatedDomain(EPPRelatedDomainExtDomain)
method. The
attributes of EPPDomain
must be set based on the requirements for
calling EPPDomain.sendRenew()
.EPPDomainRenewResp
with a
EPPRelatedDomainExtRenewResp
extension attached.EPPCommandException
- Error creating and sending the command.public EPPResponse sendRelatedUpdate() throws EPPCommandException
addRelatedName(String)
method. The attributes of
EPPDomain
must be set based on the requirements for calling
EPPDomain.sendUpdate()
.EPPResponse
.EPPCommandException
- Error creating and sending the command.protected void resetDomain()
resetDomain
in class EPPDomain
public void setInfoForm(java.lang.String aType)
DOMAIN_INFO_FORM
if undefined.aType
- DOMAIN_INFO_FORM
or RELATED_INFO_FORM
Copyright © VeriSign Inc. All Rights Reserved.