Class EPPValidate
- java.lang.Object
-
- com.verisign.epp.interfaces.validate.v02.EPPValidate
-
public class EPPValidate extends java.lang.ObjectEPPValidateis the primary client interface class used for the Validate EPP mapping. An instance ofEPPValidateis created with an initializedEPPSession, 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 ofEPPResponseor instances of response classes in thecom.verisign.epp.codec.validatepackage.- See Also:
EPPValidateCheckResp
-
-
Constructor Summary
Constructors Constructor Description EPPValidate(EPPSession aSession)Constructs anEPPValidategiven an initialized EPP session.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddContact(EPPValidateContact aContact)Add a contact to the list of contacts.voidaddExtension(EPPCodecComponent aExtension)Adds a command extension object.java.util.VectorgetExtensions()Gets the command extensions.EPPResponsegetResponse()Gets the response associated with the last command.protected voidresetValidate()Resets the Validate instance to its initial state.EPPValidateCheckRespsendCheck()Sends an Validate Check Command to the server.
The required attributes that must be set prior to executingsendCheck()include:
addLabel(String)- Add at least one domain label to check.
The optional attributes can be set with the following:
setTransId- Sets the client transaction identifier.voidsetExtensions(java.util.Vector aExtensions)Sets the command extension objects.voidsetTransId(java.lang.String aTransId)Sets the client transaction identifier.
-
-
-
Constructor Detail
-
EPPValidate
public EPPValidate(EPPSession aSession)
Constructs anEPPValidategiven an initialized EPP session.- Parameters:
aSession- Server session to use.
-
-
Method Detail
-
addExtension
public void addExtension(EPPCodecComponent aExtension)
Adds a command extension object.- Parameters:
aExtension- command extension object associated with the command
-
setExtensions
public void setExtensions(java.util.Vector aExtensions)
Sets the command extension objects.- Parameters:
aExtensions- command extension objects associated with the command
-
getExtensions
public java.util.Vector getExtensions()
Gets the command extensions.- Returns:
Vectorof concreteEPPCodecComponentassociated with the command if exists;nullotherwise.
-
setTransId
public void setTransId(java.lang.String aTransId)
Sets the client transaction identifier.- Parameters:
aTransId- Client transaction identifier
-
addContact
public void addContact(EPPValidateContact aContact)
Add a contact to the list of contacts.- Parameters:
aContact- Contact to add to list of contacts to validate.
-
sendCheck
public EPPValidateCheckResp sendCheck() throws EPPCommandException
Sends an Validate Check Command to the server.
The required attributes that must be set prior to executingsendCheck()include:
addLabel(String)- Add at least one domain label to check.
The optional attributes can be set with the following:
setTransId- Sets the client transaction identifier.
- Returns:
EPPValidateCheckResp.- Throws:
EPPCommandException- On error
-
resetValidate
protected void resetValidate()
Resets the Validate instance to its initial state.
-
getResponse
public EPPResponse 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
-
-