Package com.verisign.epp.interfaces
Class EPPNameWatch
java.lang.Object
com.verisign.epp.interfaces.EPPNameWatch
EPPNameWatch is the primary client interface class used for
nameWatch management. An instance of EPPNameWatch 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.nameWatch package. - See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringFrequency type constantsstatic final StringDOCUMENT ME!static final StringDOCUMENT ME!static final StringPeriod in Unit Monthstatic final StringPeriod in Unit Yearstatic final StringDOCUMENT ME!static final StringDOCUMENT ME!static final StringDOCUMENT ME!static final StringDOCUMENT ME!static final StringDOCUMENT ME!static final StringStatus constantsstatic final StringDOCUMENT ME!static final StringDOCUMENT ME!static final StringDOCUMENT ME!static final StringDOCUMENT ME!static final StringDOCUMENT ME!static final StringDOCUMENT ME!static final StringDOCUMENT ME!static final StringTransfer Operation constantsstatic final StringDOCUMENT ME!static final StringDOCUMENT ME!static final StringDOCUMENT ME!static final StringDOCUMENT ME! -
Constructor Summary
ConstructorsConstructorDescriptionEPPNameWatch(EPPSession newSession) Constructs anEPPNameWatchgiven an initialized EPP session. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtension(EPPCodecComponent aExtension) Adds a command extension object.voidaddStatus(EPPNameWatchStatus aStatus) Adds a status for use in callingsendUpdate.Sets the authorization roid that is used to identify the registrant or contact object if and only if the value of authInfo, set bysetAuthString(String), is associated with the registrant or contact object.Sets the authorization string associated with ansendCreateandsendTransfer.Gets the NameWatch expiration date.Gets the command extensions.getFreq()Gets NameWatch report frequency, which should be one of theFREQ_constant values.getName()Gets the NameWatch NameintGets the registration period.Gets the registration period unit.Gets the registrant.Gets the response associated with the last command.getRoid()Gets the NameWatch RoidgetRptTo()Gets NameWatch e-mail address to report to.voidremoveStatus(EPPNameWatchStatus aStatus) Removes a status for use in callingsendUpdate.Sends a NameWatch Create Command to the server.Sends a NameWatch Delete Command to the server.sendInfo()Sends a NameWatch Info Command to the server.Sends a NameWatch Renew Command to the server.Sends a NameWatch Transfer Command to the server.Sends a NameWatch Update Command to the server.voidsetAuthRoid(String aAuthRoid) Gets the authorization roid that is used to identify the registrant or contact object if and only if the value of authInfo, set bysetAuthString(String), is associated with the registrant or contact object.voidsetAuthString(String newAuthString) Sets the authorization string associated with ansendCreateandsendTransfer.voidsetExpirationDate(Date newExpirationDate) Sets the NameWatch expiration date.voidsetExtension(EPPCodecComponent aExtension) Deprecated.voidsetExtensions(Vector aExtensions) Sets the command extension objects.voidSets the NameWatch report frequency, which should be one of theFREQ_constant values.voidSets the NameWatch NamevoidsetPeriodLength(int newPeriodLength) Sets the registration period.voidsetPeriodUnit(String newPeriodUnit) Sets the registration period unit.voidsetRegistrant(String newRegistrant) Sets the registrant.voidSets the NameWatch roidvoidSets NameWatch e-mail address to report to.voidsetTransferOpCode(String newTransferOpCode) Sets the transfer operation for a call toencodeTransfer.voidsetTransId(String newTransId) Sets the client transaction identifier.
-
Field Details
-
STATUS_OK
Status constants- See Also:
-
STATUS_SERVER_HOLD
DOCUMENT ME!- See Also:
-
STATUS_SERVER_RENEW_PROHIBITED
DOCUMENT ME!- See Also:
-
STATUS_SERVER_TRANSFER_PROHIBITED
DOCUMENT ME!- See Also:
-
STATUS_SERVER_UPDATE_PROHIBITED
DOCUMENT ME!- See Also:
-
STATUS_SERVER_DELETE_PROHIBITED
DOCUMENT ME!- See Also:
-
STATUS_CLIENT_HOLD
DOCUMENT ME!- See Also:
-
STATUS_CLIENT_RENEW_PROHIBITED
DOCUMENT ME!- See Also:
-
STATUS_CLIENT_TRANSFER_PROHIBITED
DOCUMENT ME!- See Also:
-
STATUS_CLIENT_UPDATE_PROHIBITED
DOCUMENT ME!- See Also:
-
STATUS_CLIENT_DELETE_PROHIBITED
DOCUMENT ME!- See Also:
-
STATUS_PENDING_DELETE
DOCUMENT ME!- See Also:
-
STATUS_PENDING_TRANSFER
DOCUMENT ME!- See Also:
-
TRANSFER_APPROVE
Transfer Operation constants- See Also:
-
TRANSFER_CANCEL
DOCUMENT ME!- See Also:
-
TRANSFER_QUERY
DOCUMENT ME!- See Also:
-
TRANSFER_REJECT
DOCUMENT ME!- See Also:
-
TRANSFER_REQUEST
DOCUMENT ME!- See Also:
-
FREQ_DAILY
Frequency type constants- See Also:
-
FREQ_WEEKLY
DOCUMENT ME!- See Also:
-
FREQ_MONTHLY
DOCUMENT ME!- See Also:
-
PERIOD_MONTH
Period in Unit Month- See Also:
-
PERIOD_YEAR
Period in Unit Year- See Also:
-
-
Constructor Details
-
EPPNameWatch
Constructs anEPPNameWatchgiven an initialized EPP session.- Parameters:
newSession- Server session to use.
-
-
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(EPPCodecComponet).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.
-
setRoid
Sets the NameWatch roid- Parameters:
newRoid- NameWatch roid
-
getRoid
Gets the NameWatch Roid- Returns:
- NameWatch Roid
-
setExpirationDate
Sets the NameWatch expiration date.- Parameters:
newExpirationDate- NameWatch expiration date
-
getExpirationDate
Gets the NameWatch expiration date.- Returns:
- NameWatch expiration date
-
getName
Gets the NameWatch Name- Returns:
- NameWatch Name
-
setName
Sets the NameWatch Name- Parameters:
newName- NameWatch Name
-
setTransferOpCode
Sets the transfer operation for a call toencodeTransfer. The transfer code must be set to one of theEPPNameWatch.TRANSFER_constants.- Parameters:
newTransferOpCode- One of theEPPNameWatch.TRANSFER_constants
-
setTransId
Sets the client transaction identifier.- Parameters:
newTransId- Client transaction identifier
-
setAuthString
Sets the authorization string associated with ansendCreateandsendTransfer.- Parameters:
newAuthString- Authorization string
-
getAuthString
Sets the authorization string associated with ansendCreateandsendTransfer.- Returns:
- Authorization string if defined;
nullotherwise.
-
getAuthRoid
Sets the authorization roid that is used to identify the registrant or contact object if and only if the value of authInfo, set bysetAuthString(String), is associated with the registrant or contact object. This can be used withsendTransferalong with setting the authInfo with thesetAuthString(String)method.- Returns:
- Roid of registrant or contact object if defined;
nullotherwise.
-
setAuthRoid
Gets the authorization roid that is used to identify the registrant or contact object if and only if the value of authInfo, set bysetAuthString(String), is associated with the registrant or contact object. This can be used withsendTransferalong with setting the authInfo with thesetAuthString(String)method.- Parameters:
aAuthRoid- Roid of registrant or contact object
-
getRegistrant
Gets the registrant.- Returns:
- registrant if defined;
nullotherwise.
-
setRegistrant
Sets the registrant.- Parameters:
newRegistrant- NameWatch registrant
-
getRptTo
Gets NameWatch e-mail address to report to.- Returns:
- E-mail address if defined;
nullotherwise.
-
setRptTo
Sets NameWatch e-mail address to report to.- Parameters:
aRptTo- addressString.
-
getFreq
Gets NameWatch report frequency, which should be one of theFREQ_constant values.- Returns:
- Report frequency if defined;
nullotherwise.
-
setFreq
Sets the NameWatch report frequency, which should be one of theFREQ_constant values.- Parameters:
aFreq- One of theFREQ_constant values.
-
sendCreate
Sends a NameWatch Create Command to the server.
The required attributes have been set with the following methods:
setName- Sets the namewatch name to create.setAuthString- Sets the namewatch authorizationsetRegistrant- Sets the Registrant for the namewatch. string.setRptTo- Sets e-mail address to report to.setFreq- Sets the frequency of the report
The optional attributes have been set with the following:
setTransId- Sets the client transaction identifiersetPeriodLength- Sets the registration period (default = 1)setPeriodUnit- Sets the registration period unit (default =PERIOD_YEAR)
- Returns:
EPPNameWatchCreateRespcontaining the namewatch create result. UseEPPNameWatchCreateResp.getRoidto get the ROID required for the rest of theEPPNameWatchoperations.- Throws:
EPPCommandException- Error executing the create command. UsegetResponseto get the associated server error response.
-
sendUpdate
Sends a NameWatch Update Command to the server.
The required attributes have been set with the following methods:
setRoid- Sets the namewatch ROID. string.
The optional attributes have been set with the following:
setTransId- Sets the client transaction identifieraddStatus- Adds a status to the namewatch. More than one status can be added.removeStatus- Removes a status from the namewatch. More than one status can be removed.setRegistrant- Sets the Registrant for the namewatch.setAuthString- Sets the namewatch authorizationsetRptTo- Sets e-mail address to report to.setFreq- Sets the frequency of the report
- Returns:
EPPNameWatchCreateRespcontaining the namewatch create result. UseEPPNameWatchCreateResp.getRoidto get the ROID required for the rest of theEPPNameWatchoperations.- Throws:
EPPCommandException- Error executing the create command. UsegetResponseto get the associated server error response.
-
sendTransfer
Sends a NameWatch Transfer Command to the server.
The required attributes have been set with the following methods:
setRoid- Sets the namewatch ROID.setTransferOpCode- Sets the namewatch transfer operation.setAuthString- Sets the namewatch authorization string.
The optional attributes have been set with the following:
setTransId- Sets the client transaction identifiersetPeriodLength- Sets the registration period (default = 1)setPeriodUnit- Sets the registration period unit (default =PERIOD_YEAR)
- Returns:
EPPNameWatchTransferRespcontaining the namewatch transfer result.- Throws:
EPPCommandException- Error executing the create command. UsegetResponseto get the associated server error response.
-
sendRenew
Sends a NameWatch Renew Command to the server.
The required attributes have been set with the following methods:
setRoid- Sets the namewatch ROID.setExpirationDate- Sets current expiration date.
The optional attributes have been set with the following:
setTransId- Sets the client transaction identifiersetPeriodLength- Sets the registration period (default = 1)setPeriodUnit- Sets the registration period unit (default =PERIOD_YEAR)
- Returns:
EPPNameWatchRenewRespcontaining the namewatch renew result.- Throws:
EPPCommandException- Error executing the renew command. UsegetResponseto get the associated server error response.
-
sendInfo
Sends a NameWatch Info Command to the server.
The required attributes have been set with the following methods:
setRoid- Sets the namewatch ROID.
The optional attributes have been set with the following:
setTransId- Sets the client transaction identifier
- Returns:
EPPNameWatchInfoRespcontaining the namewatch information.- Throws:
EPPCommandException- Error executing the info command. UsegetResponseto get the associated server error response.
-
sendDelete
Sends a NameWatch Delete Command to the server.
The required attributes have been set with the following methods:
setRoid- Sets the namewatch ROID.
The optional attributes have been set with the following:
setTransId- Sets the client transaction identifier
- Returns:
EPPResponsecontaining the delete result information.- Throws:
EPPCommandException- Error executing the delete command. UsegetResponseto get the associated server error response.
-
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
-
getPeriodLength
public int getPeriodLength()Gets the registration period. The unit can be retrieved by callinggetPeriodUnit.- Returns:
- registration period if defined;
0otherwise
-
setPeriodLength
public void setPeriodLength(int newPeriodLength) Sets the registration period. The default unit is years, but this can be overriden by callingsetPeriodUnit.- Parameters:
newPeriodLength- DOCUMENT ME!
-
getPeriodUnit
Gets the registration period unit. If defined, this should be eitherPERIOD_MONTHorPERIOD_YEAR.- Returns:
- registration period unit if defined;
0otherwise
-
setPeriodUnit
Sets the registration period unit.- Parameters:
newPeriodUnit- DOCUMENT ME!
-
addStatus
Adds a status for use in callingsendUpdate.- Parameters:
aStatus- Status to add to namewatch.
-
removeStatus
Removes a status for use in callingsendUpdate.- Parameters:
aStatus- Status to add to namewatch.
-
addExtension(EPPCodecComponent).