Package com.verisign.epp.interfaces
Class EPPDefReg
java.lang.Object
com.verisign.epp.interfaces.EPPDefReg
EPPDefReg is the primary client interface class used for
defReg management. An instance of EPPDefReg 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.defReg package. - See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDOCUMENT ME!static final intDOCUMENT ME!static final intThe Following are add to encapsulate the Update Commandstatic final StringPremium level of Defensive Registration.static final StringStandard level of Defensive Registration.static final StringCurrently Only two Priod Type is supported.static final StringDOCUMENT ME!static final intDOCUMENT ME!static final intDOCUMENT 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
ConstructorsConstructorDescriptionEPPDefReg(EPPSession newSession) Constructs anEPPDefReggiven an initialized EPP session. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDefRegName(String newLevel, String newName) Adds a defReg name for use with asendmethod.voidaddExtension(EPPCodecComponent aExtension) Adds a command extension object.voidaddStatus(EPPDefRegStatus aStatus) Adds a status for use in callingsendUpdate.Get the AdminContact informnation.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 DefReg expiration date.Gets the command extensions.intThis is a Getter Method for PriodLength private Attribute This Attribute maintains Validity Period : duration which defReg is registered for.This is a Getter Method for PeriodUnit private Attribute This Attribute maintains Validity Unit :time unit where Period Length is mussured by.Gets the DefReg Registrant.Gets the response associated with the last command.getRoid()Gets the DefReg Roid.getTm()Get the trademark informnation.Get the trademark country informnation.Get the trademark date informnation.voidremoveStatus(EPPDefRegStatus aStatus) Removes a status for use in callingsendUpdate.Sends a Defensive Registration Check Command to the server.Sends a Defensive Registration Create Command to the server.Sends a Defensive Registration Delete Command to the server.sendInfo()Sends a Defensive Registration Info Command to the server.Sends a Defensive Registration Renew Command to the server.Sends a Defensive Registration Transfer Command to the server.Sends a Defensive Registration Update Command to the server.voidsetAdminContact(String aAdminContact) Sets the DefReg Admin Contact.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 DefReg expiration date.voidsetExtension(EPPCodecComponent aExtension) Deprecated.voidsetExtensions(Vector aExtensions) Sets the command extension objects.voidsetPeriodLength(int newPeriodLength) This is a Setter Method for PriodLength private Attribute This Attribute maintains Validity Period : duration which defReg is registered for.voidsetPeriodUnit(String newPeriodUnit) This is a Setter Method for PeriodUnit private Attribute This Attribute maintains Validity Unit :time unit where Period Length is mussured by.voidsetRegistrant(String aRegistrant) Sets the DefReg Registrant.voidSets the DefReg Roid.voidSet the trademark informnation.voidsetTmCountry(String aTmCountry) Set the trademark country informnation.voidSet the trademark date informnation.voidsetTransferOpCode(String newTransferOpCode) Sets the transfer operation for a call toencodeTransfer.voidsetTransId(String newTransId) Sets the client transaction identifier.
-
Field Details
-
CONTACT
public static final int CONTACTThe Following are add to encapsulate the Update Command- See Also:
-
STATUS
public static final int STATUSDOCUMENT ME!- See Also:
-
ADD
public static final int ADDDOCUMENT ME!- See Also:
-
REMOVE
public static final int REMOVEDOCUMENT ME!- See Also:
-
CHANGE
public static final int CHANGEDOCUMENT ME!- See Also:
-
STATUS_OK
Status constants- 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_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:
-
STATUS_PENDING_VERIFICATION
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:
-
LEVEL_STANDARD
Standard level of Defensive Registration. For example, use this level when checking or creating name "john.smith".- See Also:
-
LEVEL_PREMIUM
Premium level of Defensive Registration. For example, use this level when checking or creating name "smith".- See Also:
-
PERIOD_MONTH
Currently Only two Priod Type is supported.- See Also:
-
PERIOD_YEAR
DOCUMENT ME!- See Also:
-
-
Constructor Details
-
EPPDefReg
Constructs anEPPDefReggiven 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(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.
-
addDefRegName
Adds a defReg name for use with asendmethod. Adding more than one defReg names is only supported bysendCheck.- Parameters:
newLevel- EitherLEVEL_STANDARDorLEVEL_PREMIUMnewName- Defensive Registration Name
-
setRoid
Sets the DefReg Roid.- Parameters:
aRoid- DefReg expiration date
-
getRoid
Gets the DefReg Roid.- Returns:
- DefReg Roid
-
getTm
Get the trademark informnation.- Returns:
- DefReg tradeMark
-
setTm
Set the trademark informnation.- Parameters:
aTm- DefReg registrant
-
getTmCountry
Get the trademark country informnation.- Returns:
- DefReg trademark country
-
setTmCountry
Set the trademark country informnation.- Parameters:
aTmCountry- DefReg trademark country
-
getTmDate
Get the trademark date informnation.- Returns:
- DefReg trademark date
-
setTmDate
Set the trademark date informnation.- Parameters:
aTmDate- DefReg trademark date
-
getAdminContact
Get the AdminContact informnation.- Returns:
- DefReg AdminContact
-
setRegistrant
Sets the DefReg Registrant.- Parameters:
aRegistrant- DefReg Registrant.
-
setAdminContact
Sets the DefReg Admin Contact.- Parameters:
aAdminContact- DefReg Admin Contact.
-
getRegistrant
Gets the DefReg Registrant.- Returns:
- DefReg Registrant
-
setExpirationDate
Sets the DefReg expiration date.- Parameters:
newExpirationDate- DefReg expiration date
-
getExpirationDate
Gets the DefReg expiration date.- Returns:
- DefReg expiration date
-
setTransferOpCode
Sets the transfer operation for a call toencodeTransfer. The transfer code must be set to one of theEPPDefReg.TRANSFER_constants.- Parameters:
newTransferOpCode- One of theEPPDefReg.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
-
sendCreate
Sends a Defensive Registration Create Command to the server.
The required attributes have been set with the following methods:
-
addDefRegName- Sets the defensive registration name to create. Only one defensive registration name is valid. -
setAuthString- Sets the defensive registration authorization string.
The optional attributes have been set with the following:
-
setTransId- Sets the client transaction identifier -
setPeriodLength- Sets the registration period (default = 1) -
setPeriodUnit- Sets the registration period unit (default =PERIOD_YEAR) -
setRegistrant- Sets the Registrant for the defensive registration. This is required for thick registries. -
setAdminContact- Sets the adminitrator contact -
setTm- Sets the trademark -
setTmCountry- Sets the trademark country -
setTmDate- Sets the trademark date
- Returns:
EPPDefRegCreateRespcontaining the defensive registration create result. UseEPPDefRegCreateResp.getRoidto get the ROID required for the rest of theEPPDefRegoperations.- Throws:
EPPCommandException- Error executing the create command. UsegetResponseto get the associated server error response.
-
-
sendUpdate
Sends a Defensive Registration Update Command to the server.
The required attributes have been set with the following methods:
-
setRoid- Sets the defensive registration ROID.
The optional attributes have been set with the following:
-
setTransId- Sets the client transaction identifier -
addStatus- Adds a status to the defensive registration. More than one status can be added. -
removeStatus- Removes a status from the defensive registration. More than one status can be removed. -
setRegistrant- Sets the Registrant for the defensive registration. -
setAuthString- Sets the defensive registration name authorization -
setRegistrant- Sets the Registrant for the defensive registration. -
setAdminContact- Sets the adminitrator contact -
setTm- Sets the trademark -
setTmCountry- Sets the trademark country -
setTmDate- Sets the trademark date string.
- Returns:
EPPResponsecontaining the defensive registration update result.- Throws:
EPPCommandException- Error executing the update command. UsegetResponseto get the associated server error response.
-
-
sendTransfer
Sends a Defensive Registration Transfer Command to the server.
The required attributes have been set with the following methods:
-
setRoid- Sets the defensive registration ROID. -
setTransferOpCode- Sets the defensive registration transfer operation.
-
setAuthString- Sets the defensive registration authorization string.
The optional attributes have been set with the following:
-
setTransId- Sets the client transaction identifier -
setPeriodLength- Sets the registration period (default = 1) -
setPeriodUnit- Sets the registration period unit (default =PERIOD_YEAR)
- Returns:
EPPDefRegTransferRespcontaining the defensive registration transfer result.- Throws:
EPPCommandException- Error executing the create command. UsegetResponseto get the associated server error response.
-
-
sendRenew
Sends a Defensive Registration Renew Command to the server.
The required attributes have been set with the following methods:
-
setRoid- Sets the defensive registration ROID. -
setExpirationDate- Sets current expiration date.
The optional attributes have been set with the following:
-
setTransId- Sets the client transaction identifier -
setPeriodLength- Sets the registration period (default = 1) -
setPeriodUnit- Sets the registration period unit (default =PERIOD_YEAR)
- Returns:
EPPDefRegRenewRespcontaining the defensive registration renew result.- Throws:
EPPCommandException- Error executing the renew command. UsegetResponseto get the associated server error response.
-
-
sendInfo
Sends a Defensive Registration Info Command to the server.
The required attributes have been set with the following methods:
-
setRoid- Sets the defensive registration ROID.
The optional attributes have been set with the following:
-
setTransId- Sets the client transaction identifier
- Returns:
EPPDefRegInfoRespcontaining the defensive registration information.- Throws:
EPPCommandException- Error executing the info command. UsegetResponseto get the associated server error response.
-
-
sendCheck
Sends a Defensive Registration Check Command to the server.
The required attributes have been set with the following methods:
-
addDefRegName- Adds a defensive registration name to check. More than one defensive registration name can be checked insendCheck
The optional attributes have been set with the following:
-
setTransId- Sets the client transaction identifier
- Returns:
EPPDefRegCheckRespcontaining the DefReg check information.- Throws:
EPPCommandException- Error executing the check command. UsegetResponseto get the associated server error response.
-
-
sendDelete
Sends a Defensive Registration Delete Command to the server.
The required attributes have been set with the following methods:
-
setRoid- Sets the defensive registration 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.
-
-
addStatus
Adds a status for use in callingsendUpdate.- Parameters:
aStatus- Status to add to defensive registration.
-
removeStatus
Removes a status for use in callingsendUpdate.- Parameters:
aStatus- Status to add to defensive registration.
-
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
-
setPeriodLength
public void setPeriodLength(int newPeriodLength) This is a Setter Method for PriodLength private Attribute This Attribute maintains Validity Period : duration which defReg is registered for.- Parameters:
newPeriodLength- DOCUMENT ME!
-
setPeriodUnit
This is a Setter Method for PeriodUnit private Attribute This Attribute maintains Validity Unit :time unit where Period Length is mussured by. ie. year / month- Parameters:
newPeriodUnit- DOCUMENT ME!
-
getPeriodLength
public int getPeriodLength()This is a Getter Method for PriodLength private Attribute This Attribute maintains Validity Period : duration which defReg is registered for.- Returns:
- DOCUMENT ME!
-
getPeriodUnit
This is a Getter Method for PeriodUnit private Attribute This Attribute maintains Validity Unit :time unit where Period Length is mussured by. ie. year / month- Returns:
- DOCUMENT ME!
-
addExtension(EPPCodecComponent).