public class NSHost extends EPPHost
EPPHost
by
adding new methods like @link{#setSubProductID(String)}. EPPHost
could be used directly, but NSHost
can be enhanced independent
of the EPP specification.Modifier and Type | Field and Description |
---|---|
static int |
ADD
Used to specify the addition of an attribute with
addUpdateOrgId . |
static int |
CHANGE
Used to specify the change of an attribute with
addUpdateOrgId . |
static int |
REMOVE
Used to specify the removal of an attribute with
addUpdateOrgId . |
DEFAULT_LANG, STAT_CLIENT_DELETE_PROHIBITED, STAT_CLIENT_UPDATE_PROHIBITED, STAT_LINKED, STAT_OK, STAT_PENDING_CREATE, STAT_PENDING_DELETE, STAT_PENDING_TRANSFER, STAT_PENDING_UPDATE, STAT_SERVER_DELETE_PROHIBITED, STAT_SERVER_UPDATE_PROHIBITED
Constructor and Description |
---|
NSHost(EPPSession aSession)
Creates an
NSHost with an established EPPSession
. |
Modifier and Type | Method and Description |
---|---|
void |
addOrgId(EPPOrgExtId aOrgId)
Adds an org identifier for use with
sendCreate() . |
void |
addUpdateOrgId(int aAction,
EPPOrgExtId aOrgId)
Updates the org identifier used with
sendUpdate() . |
protected void |
resetHost()
Resets the host attributes for the next command.
|
EPPResponse |
sendCreate()
Sends a Host Create Command to the server.
|
EPPResponse |
sendUpdate()
Sends a Host Update Command to the server.
|
void |
setSubProductID(java.lang.String aSubProductID)
Sets the host sub-product id which specifies which is the target registry
for the host operation.
|
addExtension, addHostName, addIPV4Address, addIPV6Address, addStatus, addStatus, getExtensions, getNewName, getResponse, removeIPV4Address, removeIPV6Address, removeStatus, removeStatus, sendCheck, sendDelete, sendInfo, setExtension, setExtensions, setNewName, setTransId
public static final int ADD
addUpdateOrgId
.public static final int REMOVE
addUpdateOrgId
.public static final int CHANGE
addUpdateOrgId
.public NSHost(EPPSession aSession)
NSHost
with an established EPPSession
.aSession
- Established sessionpublic void setSubProductID(java.lang.String aSubProductID)
EPPNamestoreExtNamestoreExt
extension being added to the command.aSubProductID
- Sub-product id of host operation. Should use one of
the @link{NSSubProduct} constants. Passing null
will not add any extension.public void addOrgId(EPPOrgExtId aOrgId)
sendCreate()
.aOrgId
- Org identifier with role to addpublic void addUpdateOrgId(int aAction, EPPOrgExtId aOrgId)
sendUpdate()
. There are
three possible actions that can be used including NSHost.ADD
,
NSHost.REMOVE
, and NSHost.CHANGE
for the org
identifier.aAction
- One of the NSHost.ADD
, NSHost.REMOVE
,
and NSHost.CHANGE
for the org identifier.aOrgId
- Org identifier to add, remove, or changepublic EPPResponse sendCreate() throws EPPCommandException
addHostName
- Sets the host name to create. Only one host
name is valid.setTransId
- Sets the client transaction identifieraddIPV4Address
- Add an IPV4 AddressaddIPV6Address
- Add an IPV6 AddressaddOrgId
- Add an organization identifier with a role
sendCreate
in class EPPHost
EPPResponse
containing the Host create result.EPPCommandException
- Error executing the create command. Use
getResponse
to get the associated server error
response.public EPPResponse sendUpdate() throws EPPCommandException
addHostName
- Sets the domain name to update. Only one
domain name is valid.setTransId
- Sets the client transaction identifieraddIPV4Address
- Adds IPV4 AddressaddIPV6Address
- Adds IPV6 AddressremoveIPV4Address
- Removes IPV4 AddressremoveIPV6Address
- Removes IPV6 AddressaddStatus
- Add statusremoveStatus
- Remove statussetNewName
- Renames the hostaddUpdateOrgId
- Add an update to organization identifier
sendUpdate
in class EPPHost
EPPResponse
containing the Host update result.EPPCommandException
- Error executing the update command. Use
getResponse
to get the associated server error
response.Copyright © VeriSign Inc. All Rights Reserved.