Class NSContact
java.lang.Object
com.verisign.epp.interfaces.EPPContact
com.verisign.epp.namestore.interfaces.NSContact
NameStore Contact interface that extends that standard
EPPContact by adding new methods
like @link{#setSubProductID(String)}. EPPContact could be used
directly, but NSContact can be enhanced independent of the EPP
specification.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUsed to specify the addition of an attribute withaddUpdateOrgId.static final intUsed to specify the change of an attribute withaddUpdateOrgId.static final intUsed to specify the removal of an attribute withaddUpdateOrgId.Fields inherited from class com.verisign.epp.interfaces.EPPContact
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 Summary
ConstructorsConstructorDescriptionNSContact(EPPSession aSession) Creates anNSContactwith 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().protected voidResets the contact attributes for the next command.Sends a Contact Create Command to the server.
The required attributes have been set with the following methods:
addContactId- Sets the contact to update.Sends a Contact Update Command to the server.
The required attributes have been set with the following methods:
addContactId- Sets the contact to update.voidsetSubProductID(String aSubProductID) Sets the contact sub-product id which specifies which is the target registry for the contact operation.Methods inherited from class com.verisign.epp.interfaces.EPPContact
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
-
Field Details
-
ADD
public static final int ADDUsed to specify the addition of an attribute withaddUpdateOrgId.- See Also:
-
REMOVE
public static final int REMOVEUsed to specify the removal of an attribute withaddUpdateOrgId.- See Also:
-
CHANGE
public static final int CHANGEUsed to specify the change of an attribute withaddUpdateOrgId.- See Also:
-
-
Constructor Details
-
NSContact
Creates anNSContactwith an establishedEPPSession.- Parameters:
aSession- Established session
-
-
Method Details
-
setSubProductID
Sets the contact sub-product id which specifies which is the target registry for the contact operation. Some possible values included in @link{NSSubProduct}. This results in aEPPNamestoreExtNamestoreExtextension being added to the command.- Parameters:
aSubProductID- Sub-product id of host operation. Should use one of the @link{NSSubProduct} constants or using the TLD value. Passingnullwill not add any extension.
-
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 includingNSContact.ADD,NSContact.REMOVE, andNSContact.CHANGEfor the org identifier.- Parameters:
aAction- One of theNSContact.ADD,NSContact.REMOVE, andNSContact.CHANGEfor the org identifier.aOrgId- Org identifier to add, remove, or change
-
sendCreate
Sends a Contact Create Command to the server.
The required attributes have been set with the following methods:
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.
The optional attributes have been set with the following:
setTransId- Sets the client transaction identifiersetExtension- Command extension to send with commandsetVoicePhone- Set the voice phonesetFaxNumber- Set the fax numbersetInterPostalPostalContact- Set the international postal informationaddOrgId- Add an organization identifier with a role
- Overrides:
sendCreatein classEPPContact- Returns:
EPPContactCreateRespcontaining the contact create result.- Throws:
EPPCommandException- Error executing the update command. UsegetResponseto get the associated server error response.
-
sendUpdate
Sends a Contact Update Command to the server.
The required attributes have been set with the following methods:
addContactId- Sets the contact to update. Only one contact is valid.
The optional attributes have been set with the following:
setTransId- Sets the client transaction identifiersetExtension- Command extension to send with commandaddStatus- 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
- Overrides:
sendUpdatein classEPPContact- Returns:
EPPResponsecontaining the contact update result.- Throws:
EPPCommandException- Error executing the update command. UsegetResponseto get the associated server error response.
-
resetContact
protected void resetContact()Resets the contact attributes for the next command.- Overrides:
resetContactin classEPPContact
-