Package com.verisign.epp.codec.defReg
Class EPPDefRegStatus
java.lang.Object
com.verisign.epp.codec.defReg.EPPDefRegStatus
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents a defReg Status. A defReg object MUST always have at least one
associated status value. Status values MAY be set only by the client that
sponsors a defReg object and by the server on which the object resides. A
client MAY change the status of a defReg object using the EPP
<update> command. Each status value MAY be accompanied by a string of
human-readable text that describes the rationale for the status applied to
the object.
A client MUST NOT alter status values set by the server. A server MAY alter or override status values set by a client subject to local server policies.
Status values that may be added or removed by a client are prefixed with "client". Corresponding status values that may be added or removed by a server are prefixed with "server". Status values that do not begin with either "client" or "server" are server-managed.
Status Value Descriptions:
A client MUST NOT alter status values set by the server. A server MAY alter or override status values set by a client subject to local server policies.
Status values that may be added or removed by a client are prefixed with "client". Corresponding status values that may be added or removed by a server are prefixed with "server". Status values that do not begin with either "client" or "server" are server-managed.
Status Value Descriptions:
- clientDeleteProhibited, serverDeleteProhibited: Requests to delete the object MUST be rejected.
- clientHold, serverHold: Delegation information MUST be withheld from publication in the object's nominal zone.
- clientRenewProhibited, serverRenewProhibited: Requests to renew the object MUST be rejected.
- clientTransferProhibited, serverTransferProhibited: Requests to transfer the object MUST be rejected.
- clientUpdateProhibited, serverUpdateProhibited: Requests to update the object (other than to remove this status) MUST be rejected.
- ok: This is the nominal status value for an object that has no pending perations or prohibitions.
- pendingDelete: A delete request has been received for the object, but the object has not yet been purged from the server database.
- pendingTransfer: A transfer request has been received for the object, and completion of the request is pending. Transform commands other than <transfer> MUST be rejected while an object is in this state.
- pendingVerification: A create request has been received for the object, and completion of the request is pending.
-
okstatus MUST NOT be combined with any other status. -
pendingDeletestatus MUST NOT be combined with either -
clientDeleteProhibitedorserverDeleteProhibitedstatus. -
pendingTransferstatus MUST NOT be combined with eitherclientTransferProhibitedorserverTransferProhibitedstatus. - Allother status value combinations are valid.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault Language -- English "en"static final StringValue of the client delete prohibited status in defReg mappingstatic final StringValue of the client renew prohibited status in defReg mappingstatic final StringValue of the client transfer prohibited status in defReg mappingstatic final StringValue of the client update prohibited status in defReg mappingstatic final StringValue of the OK status in defReg mappingstatic final StringValue of the pending delete status in defReg mappingstatic final StringValue of the pending transfer status in defReg mappingstatic final StringValue of the pending verification status in defReg mappingstatic final StringValue of the server delete prohibited status in defReg mappingstatic final StringValue of the server renew prohibited status in defReg mappingstatic final StringValue of the server transfer prohibited status in defReg mappingstatic final StringValue of the server update prohibited status in defReg mapping -
Constructor Summary
ConstructorsConstructorDescriptionEPPDefRegStatusdefault constructor.EPPDefRegStatus(String aStatus) EPPDefRegStatusconstructor that takes the defReg status as argument.EPPDefRegStatus(String aStatus, String aDesc) EPPDefRegStatusconstructor that takes the defensive registration status and a status description.EPPDefRegStatus(String aStatus, String aDesc, String aLang) EPPDefRegStatusconstructor that takes the defensive registration status and the language as arguments. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPDefRegStatus.voidDecode the EPPDefRegStatus attributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of the EPPDefRegStatus instance.booleanimplements a deepEPPDefRegStatuscompare.Gets the status description, which is free form text describing the rationale for the status.getLang()Get language of the status.Returns the XML namespace associated with theEPPCodecComponent.Get defReg status.voidsetDescription(String aDesc) Sets the status description, which is free form text describing the rationale for the status.voidSet language of defReg status.voidSet defReg status.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_STATUS_OK
Value of the OK status in defReg mapping- See Also:
-
ELM_STATUS_SERVER_RENEW_PROHIBITED
Value of the server renew prohibited status in defReg mapping- See Also:
-
ELM_STATUS_SERVER_TRANSFER_PROHIBITED
Value of the server transfer prohibited status in defReg mapping- See Also:
-
ELM_STATUS_SERVER_UPDATE_PROHIBITED
Value of the server update prohibited status in defReg mapping- See Also:
-
ELM_STATUS_SERVER_DELETE_PROHIBITED
Value of the server delete prohibited status in defReg mapping- See Also:
-
ELM_STATUS_PENDING_DELETE
Value of the pending delete status in defReg mapping- See Also:
-
ELM_STATUS_PENDING_TRANSFER
Value of the pending transfer status in defReg mapping- See Also:
-
ELM_STATUS_PENDING_VERIFICATION
Value of the pending verification status in defReg mapping- See Also:
-
ELM_STATUS_CLIENT_TRANSFER_PROHIBITED
Value of the client transfer prohibited status in defReg mapping- See Also:
-
ELM_STATUS_CLIENT_UPDATE_PROHIBITED
Value of the client update prohibited status in defReg mapping- See Also:
-
ELM_STATUS_CLIENT_RENEW_PROHIBITED
Value of the client renew prohibited status in defReg mapping- See Also:
-
ELM_STATUS_CLIENT_DELETE_PROHIBITED
Value of the client delete prohibited status in defReg mapping- See Also:
-
ELM_DEFAULT_LANG
Default Language -- English "en"- See Also:
-
-
Constructor Details
-
EPPDefRegStatus
public EPPDefRegStatus()EPPDefRegStatusdefault constructor. -
EPPDefRegStatus
EPPDefRegStatusconstructor that takes the defReg status as argument.- Parameters:
aStatus- String DefReg staus
-
EPPDefRegStatus
EPPDefRegStatusconstructor that takes the defensive registration status and a status description.- Parameters:
aStatus- Defensive Registration status which should be one of theELM_STATUSconstants.aDesc- A description of the status change
-
EPPDefRegStatus
EPPDefRegStatusconstructor that takes the defensive registration status and the language as arguments.- Parameters:
aStatus- Defensive Registration status which should be one of theELM_STATUSconstants.aDesc- A description of the status changeaLang- Language of the status description
-
-
Method Details
-
clone
CloneEPPDefRegStatus.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPDefRegStatus - Throws:
CloneNotSupportedException- standard Object.clone exception
-
decode
Decode the EPPDefRegStatus attributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decode EPPDefRegStatus from.- Throws:
EPPDecodeException- Unable to decode aElement
-
encode
Encode a DOM Element tree from the attributes of the EPPDefRegStatus instance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the EPPDefRegStatus instance.
- Throws:
EPPEncodeException- - Unable to encode EPPDefRegStatus instance.
-
equals
implements a deepEPPDefRegStatuscompare. -
getLang
Get language of the status.- Returns:
- String Language
-
getStatus
Get defReg status.- Returns:
- String DefReg Status
-
setLang
Set language of defReg status.- Parameters:
newLang- String
-
setStatus
Set defReg status.- Parameters:
newStatus- String
-
getDescription
Gets the status description, which is free form text describing the rationale for the status.- Returns:
- DOCUMENT ME!
-
setDescription
Sets the status description, which is free form text describing the rationale for the status.- Parameters:
aDesc- status description
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-