public class EPPValidate
extends java.lang.Object
EPPValidate
is the primary client interface class used
for the Validate EPP mapping. An instance of
EPPValidate
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.validate
package.EPPValidateCheckResp
Constructor and Description |
---|
EPPValidate(EPPSession aSession)
Constructs an
EPPValidate given an initialized EPP
session. |
Modifier and Type | Method and Description |
---|---|
void |
addContact(EPPValidateContact aContact)
Add a contact to the list of contacts.
|
void |
addExtension(EPPCodecComponent aExtension)
Adds a command extension object.
|
java.util.Vector |
getExtensions()
Gets the command extensions.
|
EPPResponse |
getResponse()
Gets the response associated with the last command.
|
protected void |
resetValidate()
Resets the Validate instance to its initial state.
|
EPPValidateCheckResp |
sendCheck()
Sends an Validate Check Command to the server.
The required attributes that must be set prior to executing sendCheck() 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.
|
void |
setExtensions(java.util.Vector aExtensions)
Sets the command extension objects.
|
void |
setTransId(java.lang.String aTransId)
Sets the client transaction identifier.
|
public EPPValidate(EPPSession aSession)
EPPValidate
given an initialized EPP
session.aSession
- Server session to use.public void addExtension(EPPCodecComponent aExtension)
aExtension
- command extension object associated with the commandpublic void setExtensions(java.util.Vector aExtensions)
aExtensions
- command extension objects associated with the commandpublic java.util.Vector getExtensions()
Vector
of concrete EPPCodecComponent
associated with the command if exists; null
otherwise.public void setTransId(java.lang.String aTransId)
aTransId
- Client transaction identifierpublic void addContact(EPPValidateContact aContact)
aContact
- Contact to add to list of contacts to validate.public EPPValidateCheckResp sendCheck() throws EPPCommandException
sendCheck()
include:addLabel(String)
- Add at least one domain label to
check.setTransId
- Sets the client transaction identifier.EPPValidateCheckResp
.EPPCommandException
- On errorprotected void resetValidate()
public EPPResponse getResponse()