Package com.verisign.epp.codec.domain
Class EPPDomainStatus
java.lang.Object
com.verisign.epp.codec.domain.EPPDomainStatus
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents a domain Status.
A domain object MUST always have at least one associated status value. Status values can be set only by the client that sponsors a domain object and by the server on which the object resides. A client can change the status of a domain 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. The status of an object MAY change as a result of either a client-initiated transform command or an action performed by a server operator.
Status values that can be added or removed by a client are prefixed with "client". Corresponding status values that can 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 domain object MUST always have at least one associated status value. Status values can be set only by the client that sponsors a domain object and by the server on which the object resides. A client can change the status of a domain 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. The status of an object MAY change as a result of either a client-initiated transform command or an action performed by a server operator.
Status values that can be added or removed by a client are prefixed with "client". Corresponding status values that can 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
DNS delegation information MUST NOT be published for the object. - 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. - inactive
Delegation information has not been associated with the object. - ok
This is the normal status value for an object that has no pending operations or prohibitions. This value is set and removed by the server as other status values are added or removed. - pendingCreate, pendingDelete, pendingRenew, pendingTransfer,
pendingUpdate
A transform command has been processed for the object, but the action has not been completed by the server. Server operators can delay action completion for a variety of reasons, such as to allow for human review or third-party action. A transform command that is processed, but whose requested action is pending, is noted with response code 1001.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault Language -- English "en"static final StringXML local name forEPPDomainStatus.static final StringXML Element Name ofEPPDomainStatusroot element.static final StringValue of the client delete prohibited status in domain mappingstatic final StringValue of the client hold status in domain mappingstatic final StringValue of the client renew prohibited status in domain mappingstatic final StringValue of the client transfer prohibited status in domain mappingstatic final StringValue of the client update prohibited status in domain mappingstatic final StringValue of the inactive status in domain mappingstatic final StringValue of the OK status in domain mappingstatic final StringValue of the pending create status in domain mappingstatic final StringValue of the pending delete status in domain mappingstatic final StringValue of the pending renew status in domain mappingstatic final StringValue of the pending transfer status in domain mappingstatic final StringValue of the pending update status in domain mappingstatic final StringValue of the server delete prohibited status in domain mappingstatic final StringValue of the server hold status in domain mappingstatic final StringValue of the server renew prohibited status in domain mappingstatic final StringValue of the server transfer prohibited status in domain mappingstatic final StringValue of the server update prohibited status in domain mapping -
Constructor Summary
ConstructorsConstructorDescriptionEPPDomainStatusdefault constructor.EPPDomainStatus(String aStatus) EPPDomainStatusconstructor that takes the domain status as argument.EPPDomainStatus(String aStatus, String aDesc) EPPDomainStatusconstructor that takes the domain status and a status description.EPPDomainStatus(String aStatus, String aDesc, String aLang) EPPDomainStatusconstructor that takes the domain status and the language as arguments. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPDomainStatus.voidDecode the EPPDomainStatus attributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of the EPPDomainStatus instance.booleanimplements a deepEPPDomainStatuscompare.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 domain status.voidsetDescription(String aDesc) Sets the status description, which is free form text describing the rationale for the status.voidSet language of domain status.voidSet domain status.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPDomainStatus.- See Also:
-
ELM_NAME
XML Element Name ofEPPDomainStatusroot element.- See Also:
-
ELM_STATUS_OK
Value of the OK status in domain mapping- See Also:
-
ELM_STATUS_SERVER_HOLD
Value of the server hold status in domain mapping- See Also:
-
ELM_STATUS_SERVER_RENEW_PROHIBITED
Value of the server renew prohibited status in domain mapping- See Also:
-
ELM_STATUS_SERVER_TRANSFER_PROHIBITED
Value of the server transfer prohibited status in domain mapping- See Also:
-
ELM_STATUS_SERVER_UPDATE_PROHIBITED
Value of the server update prohibited status in domain mapping- See Also:
-
ELM_STATUS_SERVER_DELETE_PROHIBITED
Value of the server delete prohibited status in domain mapping- See Also:
-
ELM_STATUS_INACTIVE
Value of the inactive status in domain mapping- See Also:
-
ELM_STATUS_PENDING_CREATE
Value of the pending create status in domain mapping- See Also:
-
ELM_STATUS_PENDING_DELETE
Value of the pending delete status in domain mapping- See Also:
-
ELM_STATUS_PENDING_RENEW
Value of the pending renew status in domain mapping- See Also:
-
ELM_STATUS_PENDING_TRANSFER
Value of the pending transfer status in domain mapping- See Also:
-
ELM_STATUS_PENDING_UPDATE
Value of the pending update status in domain mapping- See Also:
-
ELM_STATUS_CLIENT_HOLD
Value of the client hold status in domain mapping- See Also:
-
ELM_DEFAULT_LANG
Default Language -- English "en"- See Also:
-
ELM_STATUS_CLIENT_TRANSFER_PROHIBITED
Value of the client transfer prohibited status in domain mapping- See Also:
-
ELM_STATUS_CLIENT_UPDATE_PROHIBITED
Value of the client update prohibited status in domain mapping- See Also:
-
ELM_STATUS_CLIENT_RENEW_PROHIBITED
Value of the client renew prohibited status in domain mapping- See Also:
-
ELM_STATUS_CLIENT_DELETE_PROHIBITED
Value of the client delete prohibited status in domain mapping- See Also:
-
-
Constructor Details
-
EPPDomainStatus
public EPPDomainStatus()EPPDomainStatusdefault constructor. -
EPPDomainStatus
EPPDomainStatusconstructor that takes the domain status as argument.- Parameters:
aStatus- String Domain status
-
EPPDomainStatus
EPPDomainStatusconstructor that takes the domain status and a status description.- Parameters:
aStatus- Domain status which should be one of theELM_STATUSconstants.aDesc- A description of the status change
-
EPPDomainStatus
EPPDomainStatusconstructor that takes the domain status and the language as arguments.- Parameters:
aStatus- Domain status which should be one of theELM_STATUSconstants.aDesc- A description of the status changeaLang- Language of the status description
-
-
Method Details
-
clone
CloneEPPDomainStatus.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPDomainStatus - Throws:
CloneNotSupportedException- standard Object.clone exception
-
decode
Decode the EPPDomainStatus attributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decode EPPDomainStatus from.- Throws:
EPPDecodeException- Unable to decode aElement
-
encode
Encode a DOM Element tree from the attributes of the EPPDomainStatus 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 EPPDomainStatus instance.
- Throws:
EPPEncodeException- - Unable to encode EPPDomainStatus instance.
-
equals
implements a deepEPPDomainStatuscompare. -
getLang
Get language of the status.- Returns:
- String Language
-
getStatus
Get domain status.- Returns:
- String Domain Status
-
setLang
Set language of domain status.- Parameters:
aLang- String
-
setStatus
Set domain status.- Parameters:
aStatus- String
-
getDescription
Gets the status description, which is free form text describing the rationale for the status.- Returns:
- The status description
-
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.
-