Package com.verisign.epp.interfaces
Class EPPContact
java.lang.Object
com.verisign.epp.interfaces.EPPContact
- Direct Known Subclasses:
NSContact
EPPContact is the primary client interface class used for
contact management. An instance of EPPContact is created with an
initialized EPPSession, and can be used for more than one
request within a single thread. A set of setter methods are provided to set
the attributes before a call to one of the send action methods. The responses
returned from the send action methods are either instances of
EPPResponse or instances of response classes in the
com.verisign.epp.codec.contact package. - See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringclientDeleteProhibited statusstatic final StringclientTransferProhibited statusstatic final StringclientUpdateProhibited statusstatic final StringStatus constantsstatic final StringpendingDelete statusstatic final StringpendingTransfer statusstatic final StringserverDeleteProhibited statusstatic final StringserverTransferProhibited statusstatic final StringserverUpdateProhibited statusstatic final Stringlinked statusstatic final StringTransfer approve constantstatic final StringTransfer cancel constantstatic final StringTransfer query constantstatic final StringTransfer reject constantstatic final StringTransfer request constant -
Constructor Summary
ConstructorsConstructorDescriptionEPPContact(EPPSession aSession) Constructs anEPPContactwith an initializedEPPSessioninstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContactId(String newContactId) This method set the myContactInfo attribute.voidaddExtension(EPPCodecComponent aExtension) Adds a command extension object.voidaddPostalInfo(EPPContactPostalDefinition newPostalContact) This is a Setter Method for PostalContact private Attribute This Attribute maintains This Object Contains Information about the ContactvoidAdds a status to the host.voidAdds a status to the host with a description.This is a Getter Method for AddStatus private Attribute This Attribute maintains Vector of Add Status for Update Commandgets the authorization identifier for transfer operations using theencodeTransfermethod.Get disclose information.getEmail()This is a Getter Method for Email private Attribute This Attribute maintains Email AddressGets the command extensions.Gets the fax extension.This is a Getter Method for FaxNumber private Attribute This Attribute maintains Fax NumberGets the first postal info object.This is a Getter Method for PostalContact private Attribute This Attribute maintains This Object Contains Information about the ContactThis is a Getter Method for RemoveStatus private Attribute This Attribute maintains Vector of Remove Status for Update CommandGets the response associated with the last command.Getter method for TransID instance variableThis is a Getter Method for VoicePhone private Attribute This Attribute maintains Voice Phone NumbervoidremoveStatus(String aStatus) Removes a status from the host.voidremoveStatus(String aStatus, String aDesc, String aLang) Removes a status from the host with a description.protected voidResets the contact instance to its initial state.Sends a Contact Check Command to the server.
The required attributes have been set with the following methods:
addContactName- Adds a contact to check.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 Delete Command to the server.
The required attributes have been set with the following methods:
addContactId- Sets the contact to delete.sendInfo()Sends a Contact Info Command to the server.
The required attributes have been set with the following methods:
addContactId- Sets the contact to get info for.Sends a Contact Transfer Command to the server.
The required attributes have been set with the following methods:
addContactId- Sets the contact for transfer command.Sends a Contact Update Command to the server.
The required attributes have been set with the following methods:
addContactId- Sets the contact to update.voidsetAuthorizationId(String newAuthorizationId) Sets the authorization identifier for transfer operations using theencodeTransfermethod.voidsetDisclose(EPPContactDisclose newDisclose) Set disclose information.voidThis is a Setter Method for Email private Attribute This Attribute maintains Email AddressvoidsetExtension(EPPCodecComponent aExtension) Deprecated.voidsetExtensions(Vector aExtensions) Sets the command extension objects.voidSets the fax extension number.voidsetFaxNumber(String newFaxNumber) Sets the fax number.voidsetPostalInfo(Vector newPostalContacts) Set contact postalInfo.voidsetTransferOpCode(String aTransferOpCode) Sets the transfer operation for a call toencodeTransfer.voidsetTransId(String newTransId) Setter method for TransID instance variablevoidsetVoiceExt(String newVoiceExt) Sets the voice extension number.voidsetVoicePhone(String newVoicePhone) Sets the voice phone number.
-
Field Details
-
STAT_OK
Status constants- See Also:
-
STAT_PENDING_DELETE
pendingDelete status- See Also:
-
STAT_PENDING_TRANSFER
pendingTransfer status- See Also:
-
STAT_CLIENT_DELETE_PROHIBITED
clientDeleteProhibited status- See Also:
-
STAT_CLIENT_UPDATE_PROHIBITED
clientUpdateProhibited status- See Also:
-
STAT_STATUS_LINKED
linked status- See Also:
-
STAT_SERVER_DELETE_PROHIBITED
serverDeleteProhibited status- See Also:
-
STAT_SERVER_UPDATE_PROHIBITED
serverUpdateProhibited status- See Also:
-
STAT_CLIENT_TRANSFER_PROHIBITED
clientTransferProhibited status- See Also:
-
STAT_SERVER_TRANSFER_PROHIBITED
serverTransferProhibited status- See Also:
-
TRANSFER_APPROVE
Transfer approve constant- See Also:
-
TRANSFER_CANCEL
Transfer cancel constant- See Also:
-
TRANSFER_QUERY
Transfer query constant- See Also:
-
TRANSFER_REJECT
Transfer reject constant- See Also:
-
TRANSFER_REQUEST
Transfer request constant- See Also:
-
-
Constructor Details
-
EPPContact
Constructs anEPPContactwith an initializedEPPSessioninstance.- Parameters:
aSession- Session to use to send contact commands
-
-
Method Details
-
addExtension
Adds a command extension object.- Parameters:
aExtension- command extension object associated with the command
-
setExtension
Deprecated.Replaced byaddExtension(EPPCodecComponent). This method will add the extension as is done inaddExtension(EPPCodecComponent).Sets a command extension object.- Parameters:
aExtension- command extension object associated with the command
-
setExtensions
Sets the command extension objects.- Parameters:
aExtensions- command extension objects associated with the command
-
getExtensions
Gets the command extensions.- Returns:
Vectorof concreteEPPCodecComponentassociated with the command if exists;nullotherwise.
-
setTransferOpCode
Sets the transfer operation for a call toencodeTransfer. The transfer code must be set to one of theEPPContact.TRANSFER_constants.- Parameters:
aTransferOpCode- One of theEPPContact.TRANSFER_constants
-
getPostalInfo
This is a Getter Method for PostalContact private Attribute This Attribute maintains This Object Contains Information about the Contact- Returns:
- Gets the
VectorofEPPContactPostalDefinitionobjects if set;nullotherwise.
-
getFirstPostalInfo
Gets the first postal info object.- Returns:
- First postal info object (
EPPContactPostalDefinition) if it exists;nullotherwise.
-
setPostalInfo
Set contact postalInfo.- Parameters:
newPostalContacts- java.util.Vector
-
addPostalInfo
This is a Setter Method for PostalContact private Attribute This Attribute maintains This Object Contains Information about the Contact- Parameters:
newPostalContact- DOCUMENT ME!
-
getDisclose
Get disclose information.- Returns:
- Disclose information if defined;
nullotherwise;
-
setDisclose
Set disclose information.- Parameters:
newDisclose- com.verisign.epp.codec.gen.EPPContactDisclose
-
setVoicePhone
Sets the voice phone number.- Parameters:
newVoicePhone- Voice phone number.
-
setVoiceExt
Sets the voice extension number.- Parameters:
newVoiceExt- Voice extension number
-
setFaxNumber
Sets the fax number.- Parameters:
newFaxNumber- Fax number.
-
setFaxExt
Sets the fax extension number.- Parameters:
newFaxExt- Fax extension number
-
setEmail
This is a Setter Method for Email private Attribute This Attribute maintains Email Address- Parameters:
newEmail- DOCUMENT ME!
-
getVoicePhone
This is a Getter Method for VoicePhone private Attribute This Attribute maintains Voice Phone Number- Returns:
- DOCUMENT ME!
-
getFaxNumber
This is a Getter Method for FaxNumber private Attribute This Attribute maintains Fax Number- Returns:
- DOCUMENT ME!
-
getFaxExt
Gets the fax extension.- Returns:
- Fax extension if defined;
nullotherwise.
-
getEmail
This is a Getter Method for Email private Attribute This Attribute maintains Email Address- Returns:
- DOCUMENT ME!
-
addStatus
Adds a status to the host.- Parameters:
aStatus- One of theSTAT_constants
-
removeStatus
Removes a status from the host.- Parameters:
aStatus- One of theSTAT_constants
-
addStatus
Adds a status to the host with a description.- Parameters:
aStatus- One of theSTAT_constantsaDesc- Description of the rationale for the status changeaLang- Language ofaDescUseDEFAULT_LANGfor the default language ("us").
-
removeStatus
Removes a status from the host with a description.- Parameters:
aStatus- One of theSTAT_constantsaDesc- Description of the rationale for the status changeaLang- Language ofaDescUseDEFAULT_LANGfor the default language ("us").
-
getAddStatus
This is a Getter Method for AddStatus private Attribute This Attribute maintains Vector of Add Status for Update Command- Returns:
- DOCUMENT ME!
-
getRemoveStatus
This is a Getter Method for RemoveStatus private Attribute This Attribute maintains Vector of Remove Status for Update Command- Returns:
- DOCUMENT ME!
-
addContactId
This method set the myContactInfo attribute.- Parameters:
newContactId- DOCUMENT ME!
-
setAuthorizationId
Sets the authorization identifier for transfer operations using theencodeTransfermethod.- Parameters:
newAuthorizationId- unique daily client codeString.
-
setTransId
Setter method for TransID instance variable- Parameters:
newTransId- DOCUMENT ME!
-
getTransId
Getter method for TransID instance variable- Returns:
- DOCUMENT ME!
-
getAuthorizationId
gets the authorization identifier for transfer operations using theencodeTransfermethod.- Returns:
- DOCUMENT ME!
-
getResponse
Gets the response associated with the last command. This method can be used to retrieve the server error response in the catch block of EPPCommandException.- Returns:
- Response associated with the last command
-
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 information
- Returns:
EPPContactCreateRespcontaining the contact create result.- Throws:
EPPCommandException- Error executing the update command. UsegetResponseto get the associated server error response.
-
sendCheck
Sends a Contact Check Command to the server.
The required attributes have been set with the following methods:
addContactName- Adds a contact to check. More than one contact can be checked insendCheck
The optional attributes have been set with the following:
setTransId- Sets the client transaction identifiersetExtension- Command extension to send with command
- Returns:
EPPContactCheckRespcontaining the contact check information.- Throws:
EPPCommandException- Error executing the check command. UsegetResponseto get the associated server error response.
-
sendInfo
Sends a Contact Info Command to the server.
The required attributes have been set with the following methods:
addContactId- Sets the contact to get info for. 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 command
- Returns:
EPPContactInfoRespcontaining the contact information.- Throws:
EPPCommandException- Error executing the info 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.
- Returns:
EPPResponsecontaining the contact update result.- Throws:
EPPCommandException- Error executing the update command. UsegetResponseto get the associated server error response.
-
sendTransfer
Sends a Contact Transfer Command to the server.
The required attributes have been set with the following methods:
addContactId- Sets the contact for transfer command. Only one contact is valid.setTransferOpCode- Sets the contact transfer operation.setAuthString- 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 command
- Returns:
EPPContactTransferRespcontaining the contact transfer result.- Throws:
EPPCommandException- Error executing the create command. UsegetResponseto get the associated server error response.
-
sendDelete
Sends a Contact Delete Command to the server.
The required attributes have been set with the following methods:
addContactId- Sets the contact to delete. 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 command
- Returns:
EPPResponsecontaining the delete result information.- Throws:
EPPCommandException- Error executing the delete command. UsegetResponseto get the associated server error response.
-
resetContact
protected void resetContact()Resets the contact instance to its initial state.
-
addExtension(EPPCodecComponent).