public class NSContact extends EPPContact
EPPContact
by adding new methods
like @link{#setSubProductID(String)}. EPPContact
could be used
directly, but NSContact
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 . |
STAT_CLIENT_DELETE_PROHIBITED, STAT_CLIENT_TRANSFER_PROHIBITED, STAT_CLIENT_UPDATE_PROHIBITED, STAT_OK, STAT_PENDING_DELETE, STAT_PENDING_TRANSFER, STAT_SERVER_DELETE_PROHIBITED, STAT_SERVER_TRANSFER_PROHIBITED, STAT_SERVER_UPDATE_PROHIBITED, STAT_STATUS_LINKED, TRANSFER_APPROVE, TRANSFER_CANCEL, TRANSFER_QUERY, TRANSFER_REJECT, TRANSFER_REQUEST
Constructor and Description |
---|
NSContact(EPPSession aSession)
Creates an
NSContact 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 |
resetContact()
Resets the contact attributes for the next command.
|
EPPResponse |
sendCreate()
Sends a Contact Create Command to the server.
|
EPPResponse |
sendUpdate()
Sends a Contact Update Command to the server.
|
void |
setSubProductID(java.lang.String aSubProductID)
Sets the contact sub-product id which specifies which is the target
registry for the contact operation.
|
addContactId, addExtension, addPostalInfo, addStatus, addStatus, getAddStatus, getAuthorizationId, getDisclose, getEmail, getExtensions, getFaxExt, getFaxNumber, getFirstPostalInfo, getPostalInfo, getRemoveStatus, getResponse, getTransId, getVoicePhone, removeStatus, removeStatus, sendCheck, sendDelete, sendInfo, sendTransfer, setAuthorizationId, setDisclose, setEmail, setExtension, setExtensions, setFaxExt, setFaxNumber, setPostalInfo, setTransferOpCode, setTransId, setVoiceExt, setVoicePhone
public static final int ADD
addUpdateOrgId
.public static final int REMOVE
addUpdateOrgId
.public static final int CHANGE
addUpdateOrgId
.public NSContact(EPPSession aSession)
NSContact
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 or using the TLD value.
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
NSContact.ADD
, NSContact.REMOVE
, and
NSContact.CHANGE
for the org identifier.aAction
- One of the NSContact.ADD
,
NSContact.REMOVE
, and NSContact.CHANGE
for the org identifier.aOrgId
- Org identifier to add, remove, or changepublic EPPResponse sendCreate() throws EPPCommandException
addContactId
- Sets the contact to update. Only one
contact is valid.setPostalContact
- Set the postal informationsetEmail
- Set the email addresssetAuthString
- Sets the contact authorization string.
setTransId
- Sets the client transaction identifiersetExtension
- Command extension to send with command
setVoicePhone
- Set the voice phonesetFaxNumber
- Set the fax numbersetInterPostalPostalContact
- Set the international
postal informationaddOrgId
- Add an organization identifier with a role
sendCreate
in class EPPContact
EPPContactCreateResp
containing the contact create
result.EPPCommandException
- Error executing the update command. Use
getResponse
to get the associated server error
response.public EPPResponse sendUpdate() throws EPPCommandException
addContactId
- Sets the contact to update. Only one
contact is valid.setTransId
- Sets the client transaction identifiersetExtension
- Command extension to send with command
addStatus
- Add statusremoveStatus
- Remove statussetPostalContact
- Set the postal informationsetVoicePhone
- Set the voice phonesetFaxNumber
- Set the fax numbersetEmail
- Set the email addresssetInterPostalPostalContact
- Set the international
postal informationsetAuthString
- Sets the contact authorization string.
addUpdateOrgId
- Add an update to organization identifier
sendUpdate
in class EPPContact
EPPResponse
containing the contact update result.EPPCommandException
- Error executing the update command. Use
getResponse
to get the associated server error
response.protected void resetContact()
resetContact
in class EPPContact
Copyright © VeriSign Inc. All Rights Reserved.